Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
static
templates
.gitignore
README.md
app.yaml
appengine_config.py
main.py
models.py
requirements_cfg.txt
requirements_vnd.txt
tests.py

README.md

Flask on Google App Engine demo

This is an example of using the Flask framework on Google App Engine. I used this in the talk Building Scalable Web Apps with Python and Google Cloud Platform. See the book's website for links to slides and video.

virtualenv venv
source venv/bin/activate

cd flask-demo
pip install -r requirements_cfg.txt
pip install -t lib -r requirements_vnd.txt

To run a GAE development server:

gcloud preview app run app.yaml

To deploy to GAE:

gcloud preview app deploy app.yaml

(When gcloud app graduates from its preview release, use gcloud app instead of gcloud preview app.)

To run tests:

python tests.py