Skip to content

jacobcui/app-buffalo

Repository files navigation

App Buffalo

App engine + webapp2 + jinja2 + Endpoints + Bootstrap + Google closure.

Live Demo

Installation on Linux/Mac

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

Initialize the SDK:

$ google-cloud-sdk/bin/gcloud init

Install npm for javascript compiling.Google Closure Library

$ npm i -g npm
$ npm install

Set up application in settings.py:

Run Local Server

$ cd <to your application directory>
$ npm run watch
$ ~/google-cloud-sdk/bin/dev_appserver.py .

Deploy

$ ~/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

Other notes

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published