Magic Event Manager API (NestJS)
- Stack: NestJS (Node 20, TypeScript strict)
- Port: 5001
- Key env vars:
PORT(default 5001)TEMPLATES_FILE(path for file-based template storage; defaultdata/templates.json)
Scripts
npm run build– compile todist/npm run start:dev– dev modenpm run start:prod– run compiled app
Endpoints (highlights)
GET /eventsbasic in-memory eventsPOST /campaign-templatesCRUD for templatesPOST /campaign-templates/:id/previewrender preview with JSON variables
Docker
Multi-stage build based on node:20-alpine.