In August 2018, Google finally saw fit to bless us with Python 3 on App Engine's standard environment. Goodbye Python 2 and webapp2, hello Python 3 and Flask.
Built with:
Hosted on Google App Engine.
First off, go to Google Cloud Console and create a new project. Then install the Google Cloud SDK.
-
Open a shell.
-
pipenv install
to install Flask to a virtual environment (must have pipenv already installed). -
pipenv shell
to open a new shell with the virtual environment activated. -
python main.py
to start a local development server at http://127.0.0.1:8080/
If Google Cloud SDK is set to this project:
-
Open shell in the directory containing "app.yaml"
-
Run
gcloud app deploy
If Google Cloud SDK is not set to this project you can switch to it with
gcloud config set project PROJECT_ID
Bootstrap's starter template was adapted slightly (navbar made semi-automatic with Jinja2, removed a bunch of stuff).