- Create virtual environment with python 3.10
python3.10 -m venv venv - Install requirements
pip install -r requirements.txt - Configure environment variables
cp .env.example .envand edit environment variables
- Apply migrations
alembic upgrade +1 - Downgrading migrations
alembic downgrade -1 - Generating new migration files
alembic revision -m "Write migration name" --autogenerate
- Install pre-commit
pip install pre-commit - Install mypy
pip install mypy - Apply pre-commit
pre-commit install - Run pre-commit hooks
pre-commit run --all-files
- Run docker-compose
docker-compose up -d
pytest or pytest -vv
http://0.0.0.0:8000/redoc