Deployment Guide
NCMDS now runs on a TypeScript + Node.js runtime.
Local
npm install
npm run dev
Default URL: http://localhost:5000
Vercel (Recommended)
This repository includes a ready-to-use vercel.json pointing all routes to api/index.ts with static file passthrough for /static/*.
Steps
- Push your repository to GitHub.
- Import it in Vercel.
- Deploy (no extra build config required).
- Add environment variables if using AI chat:
LLM7_API_KEY
Runtime files
api/index.ts: Serverless entrypoint for Vercelsrc/app.ts: Main Express app and routessrc/server.ts: Local server bootstrapvercel.json: Vercel routing and function settings
Production build
npm install
npm run build
npm start
API routes
GET /api/searchPOST /api/ai-chatGET /api/ai-chat/statusGET /api/ai-chat/modelsGET /export/configGET /export/qmd/all
Notes
- Keep secrets in environment variables, not in
config/config.yaml. - Set
PORTin your hosting provider if required. - Use preview deployments to validate docs before production releases.