https://github.com/robmarkcole/google-app-engine-flask-example
Working through Building a Python 3 App on App Engine tutorial
https://github.com/robmarkcole/google-app-engine-flask-example
Last synced: 5 months ago
JSON representation
Working through Building a Python 3 App on App Engine tutorial
- Host: GitHub
- URL: https://github.com/robmarkcole/google-app-engine-flask-example
- Owner: robmarkcole
- License: apache-2.0
- Created: 2021-04-08T04:12:23.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-12T07:37:53.000Z (about 5 years ago)
- Last Synced: 2025-03-25T00:07:48.426Z (about 1 year ago)
- Language: Dockerfile
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# google-app-engine-flask-example
Working through [Building a Python 3 App on App Engine tutorial](https://cloud.google.com/appengine/docs/standard/python3/building-app)
TLDR: require an `app.yaml` then `gcloud services enable cloudbuild.googleapis.com` and finally `gcloud app deploy`. To view the app run `gcloud app browse` and to close and delete `gcloud projects delete MY-PROJ-ID`
# docker
Test app in docker
```
# Build
docker build -t test-flask-app .
# Run
docker run -p 5000:5000 test-flask-app:latest
```
## References
- https://medium.com/@dmahugh_70618/deploying-a-flask-app-to-google-app-engine-faa883b5ffab
## Local dev
Run locally and dev:
* `python3 -m venv venv`
* `source venv/bin/activate`
* `(venv) $ pip install -r requirements.txt`
* `(venv) $ python3 app.py`