Cloud Starterkit Flask Appengine

screenshot of Cloud Starterkit Flask Appengine
flask

Starter Kit for Flask on Google App Engine (Python 3 Runtime)

Overview:

The Starter Kit for Flask on Google App Engine is a project template for running a Flask-based application as a Web API on Google App Engine Standard with Python 3.7 Runtime. It is designed to have a minimal and lightweight structure while providing a production-ready configuration and continuous integration workflow. This starter kit includes a Flask API blueprint, App Engine configuration, unit tests, and integration with GitHub Actions.

Features:

  • Minimal Flask API Blueprint: Includes a sample "hello world" handler at app/api/hello.py.
  • Production-ready App Engine configuration: Uses gunicorn and gevent to run the Flask WSGI app.
  • Continuous Integration (CI) workflow: Utilizes GitHub Actions for automated testing and validation.
  • Unit tests via pytest: Includes tests for the API using the pytest framework.
  • Development Setup Requirements: Requires Python 3.7 or later, and supports development environments on Windows, macOS, and Linux.
  • Customizable HTTP Port: The app runs on ports 8000 (for gunicorn) and 8080 (for Waitress) by default, but the port can be customized.
  • Google Cloud Setup Instructions: Provides step-by-step instructions for setting up the Google Cloud SDK and configuring the App Engine project.

Summary:

The Starter Kit for Flask on Google App Engine is a lightweight and minimal template for building Flask-based Web APIs on Google App Engine. It provides essential features such as a Flask API blueprint, production-ready configuration, continuous integration workflow, and unit tests. The installation and setup instructions are straightforward and enable developers to quickly get started with local development. The integration with Google Cloud for deployment further extends the capabilities of this starter kit. Overall, it is a solid foundation for creating Flask-based applications on Google App Engine.

flask
Flask

Flask is a lightweight and popular web framework for Python, known for its simplicity and flexibility. It is widely used to build web applications, providing a minimalistic approach to web development with features like routing, templates, and support for extensions.