Quickstart
This guide mirrors the repo README.md and adds a minimal “full stack” path using Docker Compose.
Web (Next.js)
Section titled “Web (Next.js)”cd apps/webnpm installnpm run devAPI (FastAPI)
Section titled “API (FastAPI)”cd apps/apipython -m venv .venvsource .venv/bin/activatepip install -r requirements.txt
# Required for DB-backed endpoints (datasets/models/scenarios/runs)export DATABASE_URL='postgresql+psycopg://ammm:ammm@localhost:5433/ammm'
# Storage root for uploads/models/outputs.# IMPORTANT: if you run uvicorn from apps/api, use `storage` so it resolves to# repo-root `ammm-app/storage`.export STORAGE_ROOT='storage'
uvicorn main:app --reload --host 127.0.0.1 --port 8010Local infra (recommended)
Section titled “Local infra (recommended)”Bring up Postgres + Redis + the durable v2 API + worker (built from the sibling ../ammm repo):
# from repo rootdocker compose up -ddocker compose psdocker compose logs -fNotes:
- Compose uses
POSTGRES_PORT(default5432). If you need5433, export it beforeup. - Web uses
NEXT_PUBLIC_API_BASE_URL(see.env.example) to point at the backend.