Flask backend boilerplate with multiple endpoints and Google Cloud Functions deployment support.
Built with:
- Flask
- Google Cloud Functions (Gen 2)
- Python 3.11
Local development:
pip install -r requirements.txt
python app.pyServer runs at http://localhost:5000
Try the API: See example/demo.ipynb for example requests.
Deploy to Google Cloud Functions:
-
Configure
.env:cp .env.example .env # Edit .env with your GCP settings -
Deploy:
./deploy-gcf.sh # Linux/Mac deploy-gcf.bat # Windows
See docs/deploy-cloud-functions.md for details.
GET /- Hello messageGET /health- Health checkGET /test?lat=<lat>&lon=<lon>- Test endpoint with location parametersPOST /echo- Echo JSON payload
MIT License
