Scripts Reference
Every pnpm script in the ngXpress package.json.
All scripts are run with pnpm, matching the pinned packageManager field in package.json.
| Command | What it does |
|---|---|
pnpm dev | Starts the dev server (Angular + Express SSR) on port 4200 |
pnpm build | Runs prisma generate and builds the production Angular SSR bundle — does not touch the database |
pnpm start | Applies pending migrations, then serves the built app (port 4000, or PORT) |
pnpm test | Runs unit tests with Vitest |
pnpm db:studio | Opens Prisma Studio |
pnpm db:migrate | Creates and applies a migration locally (prisma migrate dev) |
pnpm db:deploy | Applies committed migrations (prisma migrate deploy) |
pnpm db:push | Pushes the schema without a migration — local prototyping only |
pnpm auth:generate | Regenerates the Better Auth Prisma models |
pnpm build never touches the database — it only generates the Prisma client and compiles the app. pnpm start is what runs prisma migrate deploy before starting the Node server, so a fresh production database gets its auth and task tables automatically.
See Database & Prisma for when to reach for db:migrate versus db:deploy versus db:push.