Interactive dashboard enabling shared decision making for treatment resistance in depression.
This demo uses synthetic data for illustration purposes only. It is not a medical device and must not be used for clinical decisions.
├── backend/
├── frontend/
├── e2e/ # Playwright system tests against the compose stack
├── compose.yml # Production-like local stack
├── compose.dev.yml # Development override with live reload
└── .github/workflows
Backend:
cd backend
uv syncFrontend:
cd frontend
corepack enable
pnpm installBackend:
cd backend
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --reloadFrontend:
cd frontend
VITE_API_BASE_URL=http://localhost:8000 pnpm devAuthentication is configured in the backend. Set the backend env vars below to enable HTTP Basic Auth:
export BACKEND_BASIC_AUTH_USERNAME=dashboard-user
export BACKEND_BASIC_AUTH_PASSWORD=change-meOpen http://localhost:5173 and sign in with the configured backend credentials (when enabled).
Full stack, production-like:
docker compose up --buildAccess the frontend at http://localhost:3000. The backend is not published to
the host: nginx (production) or Vite (development) proxies /api requests to
the backend service over the internal Docker network.
Full stack, development with live reload:
docker compose -f compose.yml -f compose.dev.yml up --buildBackend:
cd backend
uv run pytestFrontend:
cd frontend
pnpm testSystem (Playwright end-to-end against the full compose stack):
cd e2e
pnpm install
npx playwright install --with-deps chromium
pnpm testThe system tests expect the stack to be running with Basic Auth enabled, e.g.:
BACKEND_BASIC_AUTH_USERNAME=e2e-user BACKEND_BASIC_AUTH_PASSWORD=e2e-pass docker compose up --build
E2E_BASE_URL=http://localhost:3000 pnpm test # from the e2e directoryOverride credentials with E2E_AUTH_USERNAME / E2E_AUTH_PASSWORD. The
Playwright HTML report is written to e2e/playwright-report/.
In CI (.github/workflows/ci.yaml) the system tests run in the same workflow
as the unit tests, but only once both the backend and frontend unit-test
suites are green — the job depends on them via needs.
The backend exposes a REST API under /api (health, auth, features, patients,
treatment plans, prediction, explainability, t-SNE). See
backend/README.md for endpoints, configuration,
and database behavior.
This project is licensed under the Apache License 2.0. Redistributions must preserve the attribution in NOTICE, as required by the license. Third-party components and data sources, including those used by the pharmacogenomics feature, are listed with their license texts in THIRD_PARTY_LICENSES.md.
If you use this software in research, please cite it using the metadata in CITATION.cff. All versions are archived on Zenodo under the concept DOI 10.5281/zenodo.22922039.
Questions, feedback, and collaboration inquiries are welcome — reach out via the Psych-STRATA project website.