Skip to content

Python Fastapi application with sqlalchemy ORM template

License

Notifications You must be signed in to change notification settings

pog7x/fastapi-arch-tmpl

Repository files navigation

Running app

  1. docker-compose -f docker-compose.yml up -d

Testing app

  1. docker-compose -f docker-compose.test.yml up -d
  2. docker exec -ti fastapi-arch-tmpl_app_1 bash
  3. In docker container console: pytest -vv

alembic revision

alembic revision --autogenerate -m "<ur_revision_message>" --rev-id=<ur_revision_id (ex: 0001)>

alembic migrate

alembic upgrade head