Deep DivesWeb
Development
Local development guide for the RawStack Web component.
Setup
cd apps/web
npm install
cp .env.example .env.local
npm run devThe app is available at http://localhost:3000 with Turbopack hot reload.
Project structure
apps/web/
├── app/ # Next.js App Router — layouts, pages, loading states
├── components/ # Shared React components
├── lib/ # API helpers, utilities, hooks
├── public/ # Static assets
├── specs/ # Feature specs / documentation
├── next.config.ts
├── tailwind.config.ts
├── vitest.config.ts
└── DockerfileUseful scripts
| Script | Description |
|---|---|
npm run dev | Start Turbopack dev server |
npm run build | Production build |
npm run start | Run production build |
npm run lint | ESLint |
npm run test | Vitest watch mode |
npm run test:run | Single test run |
npm run test:e2e | Playwright E2E tests |
Regenerating the API client
When the API schema changes, regenerate the shared client from the repo root:
./scripts/generate-api-client.shThen rebuild the web app to pick up the updated types.