2c5aa01a9a221f4c4bcf9a97e5917b65d3901a55
Track applied schema changes in schema_migrations and run pending migrations on startup. Co-authored-by: Cursor <cursoragent@cursor.com>
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
npm run dev
Production
npm run build
npm run start
Tests
npm run type-check
npm run test:progression
npm run test:integration
Languages
TypeScript
100%