Skip to main content
Prerequisites
  • Node.js version 19 or higher
  • MongoDB (local via Docker or Atlas)
  • A Resend API key for transactional email

Running locally

Navigate to the monitor-web directory and start the dev server:
The application runs on port 9100 by default:

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:
The spec is written to 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

Ensure your MONGODB_URI is set correctly in .env and that your MongoDB instance is running. For Atlas, check that your IP is whitelisted.
Verify RESEND_API_KEY is set and valid. If using SMTP fallback, confirm SMTP_HOST and SMTP_PORT are reachable from your machine.
Change the port in monitor-web/package.json under the "dev" script: