Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryik/app-engine-starter
A basic template for App Engine projects.
https://github.com/bryik/app-engine-starter
appengine boilerplate flask python3
Last synced: 2 months ago
JSON representation
A basic template for App Engine projects.
- Host: GitHub
- URL: https://github.com/bryik/app-engine-starter
- Owner: bryik
- License: mit
- Created: 2018-02-21T23:49:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T01:52:00.000Z (almost 4 years ago)
- Last Synced: 2023-07-31T15:02:20.404Z (over 1 year ago)
- Topics: appengine, boilerplate, flask, python3
- Language: HTML
- Homepage: https://python3-dawg-212823.appspot.com/
- Size: 16.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://cloud.google.com/blog/products/gcp/introducing-app-engine-second-generation-runtimes-and-python-3-7). Goodbye Python 2 and webapp2, hello Python 3 and Flask.
**Built with**:
- [Bootstrap v4.1](https://getbootstrap.com/docs/4.1/getting-started/introduction/)
- [Flask v1.0.2](http://flask.pocoo.org/)
- [Jinja2](http://jinja.pocoo.org/docs/2.10/)Hosted on [Google App Engine](https://cloud.google.com/appengine/).
# Usage
First off, go to [Google Cloud Console](https://console.cloud.google.com/) and create a new project. Then install the [Google Cloud SDK](https://cloud.google.com/sdk/).
## Development
1. Open a shell.
2. `pipenv install` to install Flask to a virtual environment (must have [pipenv](https://docs.pipenv.org/) 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
```bash
gcloud config set project PROJECT_ID
```### References
Bootstrap's [starter template](https://getbootstrap.com/docs/4.1/examples/starter-template/) was adapted slightly (navbar made semi-automatic with Jinja2, removed a bunch of stuff).