Documentation Index
Fetch the complete documentation index at: https://monitor-f3599674.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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:
| Variable | Description |
|---|---|
MONGODB_URI | MongoDB connection string |
SESSION_SECRET | Random secret used to sign cookies |
RESEND_API_KEY | Resend API key for email delivery |
NEXT_PUBLIC_APP_URL | Public base URL of the app (used in generated links) |
SMTP_HOST / SMTP_PORT | SMTP fallback for email when Resend is unavailable |
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
| Concern | Library |
|---|---|
| Framework | Next.js 16 with App Router |
| UI components | Radix UI + shadcn/ui |
| Styling | Tailwind CSS v4 |
| Forms | Formik + Yup |
| Database | MongoDB via Mongoose |
| Resend · Nodemailer (fallback) | |
| Charts | Recharts |
| State | Zustand |
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: