pip install -r requirements.txt
uvicorn app.main:app --reload
http://127.0.0.1:8000/docs
alembic revision -m '< message >'
alembic downgrade -1
alembic downgrade < revision number>
- auto build revision based off models file
alembic revision --autogenerate -m '< message >'
git push heroku HEAD:master
heroku apps:info fastapi-jpoulten
heroku run alembic upgrade head
docker build -t < name > .
- run api in docker container
docker-compose -f docker-compose-dev.yml up -d
docker-compose exec < name > alembic upgrade head
docker-compose -f docker-compose-dev.yml down