This API works in conjunction with the HomeBird API.
Please review scope here
$ uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8002
$ docker-compose up -d --build
Alembic is used for DB migrations, and seeding is done via project/utils/seed.py
.
To start from scratch:
- Delete the tables (easiest to connect the SQLite DB as a data source in PyCharm)
- Run the Alembic migrations:
$ alembic revision --autogenerate
$ alembic upgrade head
- Run
python project/utils/seed.py
to seed the tables