-
Set your
.env
based on theenv-example
-
Install dependencies
npm install --save-dev @google-cloud/functions-framework
- Test the framework:
npm run dev
gcloud functions deploy staking-efficiency-indexer \
--region=europe-west3 --source=. \
--trigger-http --allow-unauthenticated \
--runtime=nodejs14 --env-vars-file=./.env.yaml \
--timeout=540s