Repository with the backend portion of no-cost's source code.
NB running the API backend locally is used only for testing the API routes/definitions. Full tenant lifecycle should be tested by deploying to a development/separate server instead.
# .venv
python -m venv .venv
source .venv/bin/activate
# dependencies
pip install -r requirements-dev.txt
pip install -r requirements.txt
# modify env as needed
cp .envrc.template .envrc
# run tests
pytest
# prepare db and run dev server
alembic upgrade head
fastapi devpip install pytest-cov
pytest --cov=./ --cov-report=htmlthen see htmlcov/index.html
See the no-cost/deploy repository.