Basic template to develop and test an asynchronous API with FastAPI, Postgres, pytest, and Docker using Test-driven Development.
See also
from source
git clone https://github.com/matheuslfarias/fastapi_crud.git
cd fastapi_crud
You have to install docker and docker-compose, then
docker-compose up -d --build
and finally do the tests:.
docker-compose exec web pytest
Test out the following routes: