Skip to main content

Installation

Prerequisites

  • Node.js >= 25.0.0
  • Yarn 4 via Corepack (npm install -g corepack)

Enable Corepack if you haven't already:

npm install -g corepack
corepack enable

Clone & Install

git clone https://github.com/caverac/ddd-ct-healthcare.git
cd ddd-ct-healthcare
yarn install

Build

yarn workspaces foreach -Apt run build

Test

Run the full test suite (100% coverage):

yarn test

This runs Jest across all workspace packages, including:

  • Unit tests for every module (fragment, semilattice, CRDT, schema, temporal, snapshot)
  • Property-based tests via fast-check (semilattice laws, presheaf functoriality)
  • Chaos tests (sheaf condition verification)
  • Integration scenario tests (Dr. Jane Doe end-to-end)

Lint & Format

yarn lint        # ESLint with zero-warning policy
yarn format # Prettier check
yarn lint:fix # Auto-fix lint issues
yarn format:fix # Auto-fix formatting

Typecheck

yarn typecheck

Runs tsc --noEmit across all workspace packages.

Run the Documentation Site

yarn docs:start

Opens the documentation site at http://localhost:3000.

To build for production:

yarn docs:build