Development workflow
Scripts
| Command | Description |
|---|---|
npm run dev |
Start Next.js dev server (Turbopack) |
npm run build |
Production build + typecheck |
npm run start |
Serve production build |
npm run lint |
ESLint |
npm run db:push |
Sync Prisma schema |
npm run db:seed |
Run seed script |
npm run db:studio |
Open Prisma Studio |
Typical loop
- Pull latest and run
npm installif dependencies changed - Run
npx prisma db pushifschema.prismachanged npm run devand edit undersrc/- CMS changes appear immediately via
revalidatePathafter server actions
Documentation
Platform docs live in content/docs/ as Markdown. Edit a file and refresh /docs/... — no rebuild required in dev.
Navigation structure is defined in src/lib/docs-nav.ts.
Testing flows manually
See the full Local E2E testing plan for a phased runbook. Quick entry points:
| Flow | Entry point |
|---|---|
| Public site | / |
| Member account | /signup → /account |
| CMS | /admin (staff roles) |
| Research ops | /admin/research |
| Study participation | /studies |
| Docs | /docs |
Code conventions
- Server mutations → React Server Actions in
actions.tsfiles - Data fetching →
src/lib/queries.tsand domain-specific*-queries.ts - Role checks →
src/lib/auth.tsandsrc/lib/roles.ts - Marketing pages →
src/app/(marketing)/ - Admin panel →
src/app/admin/(panel)/