shonteag / python-flask-template

A basic template for Python-Flask services, using Docker.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-flask-template

This repository contains a boilerplate quick-start for bootstrapping a Python-Flask application. It includes

  • the flask app itself,
  • dependency management via Poetry,
  • basic python dependencies,
  • a dockerfile,
  • docker-compose integration, including
    • a docker-compose Redis cache,
    • a Postgres database
  • a makefile,
  • a basic GitHub Actions workflow for quality checks

Setup

To get a new project off the ground ASAP, follow these steps:

  1. Clone the repository.
  2. Switch the .git repository origin to your repository details
  3. Run make init to get basic requirements
  4. Rename the python_flask_template directory to your application name.
  5. In docker-compose.yml, replace instances of python_flask_template with the name you used in step 4.
  6. Develop!

About

A basic template for Python-Flask services, using Docker.


Languages

Language:Dockerfile 53.5%Language:Makefile 38.0%Language:Python 8.5%