This is a template project to build api using the FastAPI framework.
You'll need to setup the virtual environment using:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt -r requirements-dev.txt
The run script will start the app with the DEBUG
flag turned on.
make run
The project can be started in production mode using docker-compose
docker-compose up --build
FastAPI projects are self documenting, visit/docs
.
pytest
is used for testing.
make test
flake8
is used for linting.
make lint
The coverage script will create an html file in ./htmlcov
and output a minimal report.
make coverage
FastAPI-template is MIT licensed.