watch the demo on youtube
-
build the docker containers:
docker compose build
-
run the containers in detached mode:
docker compose up -d
-
apply database migrations:
docker compose exec api alembic upgrade head
-
visit
http://localhost:8000/docs
to create and get movies -
stop the containers:
docker compose down
note: the application must be up and running before using the following commands
-
create a new migration:
docker compose exec api alembic revision --autogenerate -m "your comment here"
-
apply migrations:
docker compose exec api alembic upgrade head
-
revert a migration:
docker compose exec api alembic downgrade -1