For the implementation doc, see the content of src/list-instances.ts
- Node.js (Download)
- Google Cloud CLI (Dowlonad)
- Run
gcloud init
- Follow the instructions
- Open the folder in a terminal
- Run
npm install
- Inside the .env file change the variables with the actual values from your account/project
- Repeat this step for the .env.yaml file
- Open the folder in a terminal
- Run
npm start
- Open http://localhost:8080 in a browser
If you want to run another function just set the function name inside the package.json file, in the "start" script (--target parameter)
- Open the folder in a terminal
- Run
npm run deploy
Make sure that the .env and .env.yaml files are configured correctly
TBD
Back-end: Typescript, @google-cloud/functions-framework