Scripts Reference

Every pnpm script in the ngXpress package.json.


All scripts are run with pnpm, matching the pinned packageManager field in package.json.

CommandWhat it does
pnpm devStarts the dev server (Angular + Express SSR) on port 4200
pnpm buildRuns prisma generate and builds the production Angular SSR bundle — does not touch the database
pnpm startApplies pending migrations, then serves the built app (port 4000, or PORT)
pnpm testRuns unit tests with Vitest
pnpm db:studioOpens Prisma Studio
pnpm db:migrateCreates and applies a migration locally (prisma migrate dev)
pnpm db:deployApplies committed migrations (prisma migrate deploy)
pnpm db:pushPushes the schema without a migration — local prototyping only
pnpm auth:generateRegenerates 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.