pip install -r requirements.txt
uvicorn app.main:app --reload
http://127.0.0.1:8000/docs
openssl rand -hex 32
black .
- new revision
alembic revision -m '< message >'
- upgrade to latest
alembic upgrade head
- downgrade
alembic downgrade -1
alembic downgrade < revision number>
- auto build revision based off models file
alembic revision --autogenerate -m '< message >'
- Deploy Updates
git push heroku HEAD:master
- Restart app
heroku ps:restart
- App information
heroku apps:info fastapi-jpoulten
heroku run alembic upgrade head
- Build an image
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
- close container
docker-compose -f docker-compose-dev.yml down