29 lines
700 B
Markdown
29 lines
700 B
Markdown
# Sprint 2.0 — Monorepo foundation
|
|
|
|
**Status:** Done
|
|
|
|
## Goals
|
|
|
|
- npm workspaces monorepo (`apps/api`, `apps/web`, `packages/shared`)
|
|
- Root dev/build/start scripts
|
|
- API CORS (dev) + static SPA hosting (prod)
|
|
- Expose `GET /api/mailboxes/provider-presets`
|
|
|
|
## Deliverables
|
|
|
|
| Item | Notes |
|
|
|------|-------|
|
|
| `apps/api` | Former `src/` moved here |
|
|
| `apps/web` | Vite + React dashboard scaffold |
|
|
| `packages/shared` | Shared enums and API DTO types |
|
|
| `npm run dev` | Concurrent API + Vite |
|
|
| `npm run build` | shared → api → web |
|
|
| `npm run start` | API serves `apps/web/dist` in production |
|
|
|
|
## Verification
|
|
|
|
```bash
|
|
npm install
|
|
npm run build
|
|
npm run dev # API :3000, web :5173
|
|
```
|