Skip to content
no-costPublic

About

no-cost.site backend code

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

no-cost backend

Repository with the backend portion of no-cost's source code.

Local development

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 dev

Coverage

pip install pytest-cov
pytest --cov=./ --cov-report=html

then see htmlcov/index.html

Production deployment

See the no-cost/deploy repository.

About

no-cost.site backend code

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages