brianimmel / app-engine-starter

A basic template for App Engine projects.

Home Page:https://python3-dawg-212823.appspot.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App Engine Starter - Python 3 Edition

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.

Usage

First off, go to Google Cloud Console and create a new project. Then install the Google Cloud SDK.

Development

  1. Open a shell.

  2. pipenv install to install Flask to a virtual environment (must have pipenv already installed).

  3. pipenv shell to open a new shell with the virtual environment activated.

  4. python main.py to start a local development server at http://127.0.0.1:8080/

Deployment

If Google Cloud SDK is set to this project:

  1. Open shell in the directory containing "app.yaml"

  2. 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

References

Bootstrap's starter template was adapted slightly (navbar made semi-automatic with Jinja2, removed a bunch of stuff).

About

A basic template for App Engine projects.

https://python3-dawg-212823.appspot.com/

License:MIT License


Languages

Language:HTML 82.9%Language:Python 9.8%Language:CSS 7.3%