(run this commands after clonning the repository)
$ pip install requirements.txt
$ cd app
$ uvicorn main:app --reload
$ pip install pytest
$ pytest
On production, the code uses the official image uvicorn-gunicorn-fastapi:latest (see Dockerfile) to serve the app on heroku, with Gunicorn managing Uvicorn instances for asyncronous requests.
$ docker build -f Dockerfile -t fastapiimage ./
$ heroku container:push web --app secret-anchorage-17084
$ heroku container:release web --app secret-anchorage-17084