This guide covers setting up the project locally for development and testing purposes.
It's recommended to use a Python virtual environment to isolate dependencies:
python -m venv venv
. venv/bin/activate
Copy .env.example to .env and update any credentials, settings, etc.
pip install -r src/requirements.txt
Create migrations from updated database schema:
alembic revision --autogenerate -m "<migrations name>"
Run migrations to setup database schema:
alembic upgrade head
docker-compose up -d
uvicorn apps.main:app --reload
(.venv) ...\sqlalchemy-template> cd .\src\
(.venv) ...\sqlalchemy-template> $env:PYTHONPATH = "."
python apps/users/scripts/create_user.py -un admin -al 3 -pass adminpass
- Admin panel: http://127.0.0.1:8000/admin/
- Swagger UI (API docs): http://127.0.0.1:8000/docs/