Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GMAO MVP (Next.js + Better Auth + Drizzle)

Multi-tenant CMMS-lite MVP with:

  • Workspace-based RBAC (MANAGER, TECHNICIAN)
  • Assets + Work Orders + Notes + Costs + Parts
  • Invite flow for technicians
  • Manager dashboard (status counts, backlog, monthly costs)

Stack

  • Next.js App Router + Route Handlers
  • Better Auth (email/password)
  • Drizzle ORM + PostgreSQL
  • Tailwind + shadcn/ui
  • zod validation

Environment

Use .env.example as template:

DATABASE_URL="postgresql://..."
BETTER_AUTH_SECRET="..."
BETTER_AUTH_URL="http://localhost:3000"

Setup

  1. Install deps
pnpm install
  1. Generate and apply migrations
pnpm db:generate
pnpm db:migrate
  1. Seed sample data
pnpm db:seed
  1. Start dev server
pnpm dev

Seeded users

  • Manager: manager@gmao.local / manager123
  • Technician: tech@gmao.local / tech12345

Main routes

  • /dashboard
  • /assets
  • /work-orders
  • /settings/workspace
  • /invite/accept?token=...

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages