A simple example of using Fast API in Python.
- Python 3
git clone https://github.com/marciovrl/fastapi-example.git
pip install -r requirements.txt
uvicorn app.main:app --reload
pytest app/test.py
docker-compose up -d --build
docker-compose exec app pytest test/test.py
http://127.0.0.1:8000/docs
docker-compose exec db psql --username=fastapi --dbname=fastapi_dev