Running locally
Navigate to themonitor-web directory and start the dev server:
Environment variables
Create a.env file inside monitor-web/ (copy .env.example if present). Required variables:
Project structure
Generating the OpenAPI spec
Monitor auto-generates an OpenAPI JSON spec from its route handlers at build time:docs/api-reference/openapi.json and used by the API Reference tab in these docs.
It also runs automatically before every production build (prebuild hook):
Tech stack
Linting
Troubleshooting
MongoDB connection errors on startup
MongoDB connection errors on startup
Ensure your
MONGODB_URI is set correctly in .env and that your MongoDB instance is running. For Atlas, check that your IP is whitelisted.Emails not sending
Emails not sending
Verify
RESEND_API_KEY is set and valid. If using SMTP fallback, confirm SMTP_HOST and SMTP_PORT are reachable from your machine.Port 9100 already in use
Port 9100 already in use
Change the port in
monitor-web/package.json under the "dev" script: