Initial commit: NestJS backend for Child Gold Land

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-02 08:08:11 +02:00
co-authored by Cursor
commit edb79180a1
93 changed files with 11565 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
# 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
```