Hub Setup
The hub is the central Next.js application deployed to Vercel. It serves the dashboard UI and all agent/dashboard APIs.
Clone the repository
git clone https://github.com/efzynx/ez-mon.git
cd ez-mon
npm installSet up Neon database
- Go to console.neon.tech and create a new project
- Copy the connection string (pooled, for serverless)
Create environment file
cp .env.example apps/web/.env.localEdit apps/web/.env.local:
.env.local
DATABASE_URL=postgresql://...@...neon.tech/neondb?sslmode=require
NEXTAUTH_SECRET=your-random-secret-minimum-32-chars
NEXTAUTH_URL=https://your-app.vercel.appRun database migrations
npm run --prefix packages/db migrate
# or with pnpm:
pnpm --filter @ezmon/db migrateDeploy to Vercel
npx vercel --cwd apps/webSet these environment variables in the Vercel Dashboard under your project’s Settings → Environment Variables:
DATABASE_URLNEXTAUTH_SECRETNEXTAUTH_URL(set to your deployed URL)
Generate a secure NEXTAUTH_SECRET with: openssl rand -base64 32
Last updated on