Skip to content

mgurg/lockerAPI

Repository files navigation

lockerAPI

Migrations

New migration

alembic revision -m "create XXX table"

Note

Run below commands inside a docker container

Check current revision

docker exec -it lockerapi-web .venv/bin/alembic current

To run all of your outstanding migrations, execute the upgrade head command

docker exec -it lockerapi-web .venv/bin/alembic upgrade head

To roll back the latest migration operation, you may use the alembic downgrade command

docker exec -it lockerapi-web .venv/bin/alembic alembic downgrade -1

To run rolled back migration again:

docker exec -it lockerapi-web .venv/bin/alembic alembic downgrade +1

Revision History: Use .venv/bin/alembic history to see the history of migrations and understand the steps involved. Detailed View: Use .venv/bin/alembic show <revision> to get detailed information about specific revision scripts.

Update python dependencies

uv lock --upgrade

Check & format project

ruff check app/
ruff check app/ --fix

Cold start

  • alembic migration
  • insert geo data uv run locations.py

ADR

http://localhost:5000/{language}/r/{room_name} http://localhost:5000/{language}/l/{location} http://localhost:5000/{language}/l/{location}/{tag} http://localhost:5000/{language}/c/{company_name}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors