Skip to content

Local development

Archive project

The product is no longer live. These steps are for reading or experimenting with the codebase, not for standing up production.

Prerequisites

  • Python 3.11+ (project used 3.11 locally)
  • Postgres
  • Redis
  • Playwright browsers (playwright install)
  • AWS credentials for a KMS key if you exercise encrypt/decrypt paths

Setup

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
playwright install
cp src/env.example src/.env
# edit src/.env — never commit it

Run the API

From the repo root:

python run.py

Or:

uvicorn src.endpoints.main:app --reload --host 0.0.0.0 --port 8000

Health: GET /health.

Run workers

See Running Celery. You need Redis up and the same env as the API for DB/KMS (decrypt keys on the worker).

Docs site

cd docs-site
pip install -r requirements-docs.txt
mkdocs serve

Build: mkdocs build --strict (output in docs-site/site/).

Signoff archive • Material for MkDocs