This is a Cookiecutter template for a simple FastAPI project.
$ pip install --upgrade cookiecutter
Pre-commit should be installed before pulling template.
$ pip install pre-commit
$ cookiecutter gh:devalv/cookiecutter-fastapi
Install pipenv and project dependencies
$ python -m pip install -U pipenv
$ cd backend && pipenv install --dev
Pretty errors for extra verbosity
$ pipenv run python -m pretty_errors
For additional instructions please see README
- Pipenv
- FastAPI
- Alembic
- Gino
- Httpx
- Passlib
- Pytest
For additional instructions please see README
pre-commit:
- isort
- pre-commit-hooks
- black
- flake8
pre-commit run --all-files
GitHub actions located on .github/workflows directory.
- any commit starts linter check
- any PR/MR starts docker-compose docker-compose-test.yml
- any PR/MR starts codecov uploader