Files

42 lines
746 B
Markdown

# Child Gold Land — Nest API (primary backend)
NestJS API for Child Gold Land (primary backend since G2).
Legacy Fastify `backend/` was removed in G4 (2026-08-01).
## Requirements
- Node.js **22+** (`nvm use 22.12.0`)
## Configuration
Copy `.env.example` to `.env` or use the checked-in local `.env` (gitignored):
| Variable | Production cutover |
|----------|-------------------|
| `PORT` | `3000` |
| `DB_PATH` | `backend-nest/data/app.db` |
| `JWT_SECRET` | Same as legacy Fastify |
| `CORS_ORIGIN` | `http://localhost:5173` |
## Development
```powershell
npm run dev
```
## Production
```powershell
npm run build
npm run start
```
## Tests
```powershell
npm run type-check
npm run test:progression
npm run test:integration
```