Local development
Get the full EviMesh workspace running locally - infrastructure, demo data, tests, and the verification gates that keep it honest.
link to this sectionLocal development
link to this sectionPrerequisites
- Node 22 and pnpm 11 (the workspace pins pnpm via
packageManager/CI) - Docker Desktop (for the local infrastructure services)
- A machine that can run the Next.js build (16 GB RAM is comfortable)
link to this sectionWorkspace setup
pnpm install
pnpm infra:up # postgres + minio + mailpit via Docker Compose
pnpm lint # package manifest checks (18 packages)link to this sectionRun the product
Two supported paths:
- With the demo API (no database, no credentials):
pnpm demo:apiin one
terminal and pnpm demo:web in another, then open http://localhost:3000. The demo stack is the real api-edge worker over an in-memory PostgREST simulator seeded with a small protocol story.
- Against hosted services: configure the Supabase/Cloudflare
environment as described in the hosted readiness runbook (docs/hosted-readiness.md) and deploy or preview as usual.
link to this sectionTesting
node --test # in apps/web - web suite, direct node
pnpm --filter @evimesh/protocol test # package-scoped suites are fine via pnpm
pnpm docs:reference:check # generated docs reference is current
node scripts/visual-capture.mjs # docs baseline screenshots (demo stack up)link to this sectionThe pnpm trap
Never run the web app's tests or build through pnpm --filter @evimesh/web test/build: pnpm re-verifies dependencies and reinstalls, which stalls on slow registry mirrors. Run them directly:
cd apps/web
node --test
node node_modules/next/dist/bin/next buildlink to this sectionFrontiers of this document
Deployment, secrets, key rotation, and incident response live in their own runbooks under docs/runbooks/ and docs/infra-*.md - this page stops at the local boundary.