Master Guides

Dev / Build / Start

Run both halves of your app with one command — like Next.js.

Master orchestrates the backend and frontend together so you never run two terminals. Ports come from master.config.js.

master dev#

Runs the API (watch mode) and the Next.js dev server side by side, with prefixed, colorized output.

terminal
$ master dev
  • [backend]node --watch server.js on :3001
  • [frontend]next dev on :3000, with NEXT_PUBLIC_API_URL set automatically

Ctrl-C stops both cleanly.

master build#

terminal
$ master build

Builds the Next.js frontend for production. The backend is plain ESM — no build step required.

master start#

terminal
$ NODE_ENV=production master start

Runs both services in production mode (node server.js + next start).

Run them separately
Each workspace also has standard scripts, so you can run halves independently — cd backend && npm run dev or cd frontend && npm run dev — useful when deploying the two services to different hosts.