https://github.com/tsmx/appenginetest
Test-project for Google-Cloud AppEngine using NodeJS.
https://github.com/tsmx/appenginetest
Last synced: 22 days ago
JSON representation
Test-project for Google-Cloud AppEngine using NodeJS.
- Host: GitHub
- URL: https://github.com/tsmx/appenginetest
- Owner: tsmx
- License: mit
- Created: 2019-08-17T16:53:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2026-05-11T20:03:37.000Z (25 days ago)
- Last Synced: 2026-05-11T22:07:30.110Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 7.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AppEngineTest
This is a (very simple) test project to demonstrate and test the Google Cloud AppEngine with NodeJS.
## Setting up AppEngine:
In the app main folder of your project create the AppEngine deployment decsriptor `app.yaml`. Refer to the [app.yaml reference](https://cloud.google.com/appengine/docs/standard/nodejs/config/appref) for more details.
Then run the following commands:
- `gcloud auth login` (if not already done)
- `cloud config set project [PROJECT-ID]`
- `gcloud app deploy`
- `browse [PROJECT-ID].appspot.com`
## Useful commands / hints:
Creating an IAM user including key file to authenticate for other GCP services such as sotrage buckets (here role = owner for full access!, set to more restrictive role):
```bash
gcloud iam service-accounts create [USER-NAME]
gcloud projects add-iam-policy-binding [PROJECT-ID] --member "serviceAccount:[USER-NAME]@[PROJECT-ID].iam.gserviceaccount.com" --role "roles/owner"
gcloud iam service-accounts keys create [KEY-FILE].json --iam-account [USER-NAME]@[PROJECT-ID].iam.gserviceaccount.com
```
Export full path to [KEY-FILE].json as environment variable GOOGLE_APPLICATION_CREDENTIALS, e.g. in VSCode add to `launch.json` the following entry:
```json
"env": { "GOOGLE_APPLICATION_CREDENTIALS": "[full-path-to][KEY-FILE].json"}
```