Skip to the content.

Getting Started

This repo is an npm workspaces monorepo: packages/core (the classification engine) is a workspace dependency of apps/api.

Prerequisites

npm install npm@latest -g

Install and build

git clone https://github.com/DOTO-Health/ctg-early-warning-system.git
cd ctg-early-warning-system
npm install

# apps/api depends on this being built first
npm run build --workspace=packages/core

Run the API

cd apps/api
npm run start:dev

Run the web UI

In a second terminal:

cd apps/web
npm run dev

Open http://localhost:5173?org=default. The UI fetches its theme from GET /api/branding/default and applies it as CSS custom properties — a different partner’s theme is just a different ?org= slug, with no rebuild.

Run the tests

# classification engine unit tests
cd packages/core && npm run build && node --test dist/strategies/strategies.spec.js

# API e2e tests (health, guidelines, classify-all, validation, branding)
cd apps/api && npm run test:e2e

These are the same checks that run in CI — see the Contributing Guide for the full pre-PR checklist.

← Back to docs home