Skip to Content
🎉 EZMON v0.1.3 is released. Visit ezmon.web.id →
InstallationHub Setup

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 install

Set up Neon database

  1. Go to console.neon.tech  and create a new project
  2. Copy the connection string (pooled, for serverless)

Create environment file

cp .env.example apps/web/.env.local

Edit 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.app

Run database migrations

npm run --prefix packages/db migrate # or with pnpm: pnpm --filter @ezmon/db migrate

Deploy to Vercel

npx vercel --cwd apps/web

Set these environment variables in the Vercel Dashboard under your project’s Settings → Environment Variables:

  • DATABASE_URL
  • NEXTAUTH_SECRET
  • NEXTAUTH_URL (set to your deployed URL)

Generate a secure NEXTAUTH_SECRET with: openssl rand -base64 32

Last updated on