Configure the application
ENV=[production|development|test]
DEBUG=[True|False]
DB_HOST=db_host
DB_NAME='db name'
DB_USER='db user'
DB_PASSWORD='db password'
# By default, env = production
uvicorn app:app --host hostdomain --port xxxx
# Or with live reload & env = development
uvicorn app:app --host hostdomain --port xxxx --reload --env-file .env.dev
pytest
# Or
pytest -f --color yes
#Create migration
alembic revision --autogenerate -m "Initial migration"
#Apply migration last migration
alembic upgrade head
#List migrations
alembic show ref
#Show specific migration
alembic show ref
#Restore specific migration
alembic downgrade ref