|
| 1 | +# Developer Chat App |
| 2 | + |
| 3 | +Monorepo bootstrap for the MVP. |
| 4 | + |
| 5 | +## Workspace Layout |
| 6 | + |
| 7 | +- `apps/frontend` — web UI foundation |
| 8 | +- `apps/backend` — API foundation |
| 9 | +- `apps/electron` — desktop shell foundation |
| 10 | + |
| 11 | +## Commands |
| 12 | + |
| 13 | +- `npm run lint` — lint all workspaces |
| 14 | +- `npm run test` — run tests in all workspaces |
| 15 | +- `npm run build` — build all workspaces |
| 16 | + |
| 17 | +## Run Locally (UI + Backend) |
| 18 | + |
| 19 | +- Install dependencies: `npm install` |
| 20 | +- Start backend + frontend together: `npm run dev` |
| 21 | +- Frontend URL: `http://localhost:5173` |
| 22 | +- Backend URL: `http://localhost:4000` |
| 23 | + |
| 24 | +### Optional Single-Service Commands |
| 25 | + |
| 26 | +- Backend only: `npm run dev:backend` |
| 27 | +- Frontend only: `npm run dev:frontend` |
| 28 | + |
| 29 | +## Environment Strategy (dev/staging/prod) |
| 30 | + |
| 31 | +- Backend loads `.env` and then `.env.{APP_ENV}` (`development` by default). |
| 32 | +- Prisma uses the same strategy through `apps/backend/prisma.config.ts`. |
| 33 | +- Use these example files as templates: |
| 34 | + - `apps/backend/.env.example` |
| 35 | + - `apps/backend/.env.development.example` |
| 36 | + - `apps/backend/.env.staging.example` |
| 37 | + - `apps/backend/.env.production.example` |
| 38 | + - `apps/frontend/.env.example` |
| 39 | + - `apps/electron/.env.example` |
| 40 | +- Set `APP_ENV` to one of: `development`, `staging`, `production`. |
0 commit comments