This is a fastapi cookiecutter template, which has the following features:
- uses docker-compose for development (postgres, redis)
- uses makefile for running commands
- has a sample Dockerfile prepared
- uses poetry
- has a linting support
- supports alembic migrations
- includes authentication through the fastapi-users
- includes admin through sqladmin package
- have python 3.11 ready
- install the cookiecutter package
pip install cookiecutter
- have poetry package manager ready
pip install poetry
- generate your
cookiecutter gh:dionysio/cookiecutter-fastapi
- move to your project and install dependencies:
cd <project>
poetry install
- and you can finally run your project
make run
- open http://127.0.0.1:8000