App engine + webapp2 + jinja2 + Endpoints + Bootstrap + Google closure.
Install Google Cloud SDK from https://cloud.google.com/sdk/docs/
$ cd ~
$ tar -jxvf google-cloud-sdk-174.0.0-darwin-x86_64.tar.gz
$ google-cloud-sdk/install.sh
$ google-cloud-sdk/bin/gcloud components install app-engine-python
$ google-cloud-sdk/bin/gcloud init
$ npm i -g npm
$ npm install
- Project name
- reCAPTCHA_SITEKEY & reCAPTCHA_SECRET Read https://www.google.com/recaptcha/admin on how to get the site key and secret.
$ cd <to your application directory>
$ npm run watch
$ ~/google-cloud-sdk/bin/dev_appserver.py .
$ ~/google-cloud-sdk/bin/gcloud app deploy --version prod --project <Your Project Id>
Please note, the Project Id is not the project name that you created via cloud console. It's in the Project Info
tab and it looks like your-project-id
You can stream logs from the command line by running:
$ gcloud app logs tail -s default
To view your application in the web browser run:
$ gcloud app browse
Contact: jacobcui123@gmail.com