Just a pre-packaged version of the official Google demo but with Node 12.
- You have a GCP account
- You are logged in through your environment
- You have set your variables as needed in
deploy.sh
- Install dependencies with
npm install
oryarn install
. - Run
npm start
oryarn start
- Call or visit endpoint; should be
http://localhost:8080/
Run deploy.sh
. Your deployed URL will be in the format https://{REGION}-{PROJECT}.cloudfunctions.net/{FUNCTION}
. Logs are available in the Logs view or through the Functions view.
Run teardown.sh
. Make sure that any variables you have changed are updated in that script as well.