Skip to content

Local development

python3.12 -m venv .venv312
. .venv312/bin/activate
pip install -r requirements.txt -r requirements_dev.txt

ENVIRONMENT=test python -m pytest
ENVIRONMENT=test python -c "from forge.main import app; print(app.title)"

ENVIRONMENT selects the secrets/DB target: prd / stg / local / test. test and local never touch AWS, RabbitMQ, or a live MySQL instance -- cfg resolves deterministic offline fallbacks and the datastore engine falls back to an in-memory SQLite database when no forge MySQL DSN is configured.

Celery runs in eager mode (task_always_eager=True) under ENVIRONMENT=test, so a job posted through the API drives the full state machine synchronously within the test process -- no broker required.