All commands run from the monorepo root using pnpm. Nx handles dependency ordering, so pnpm dev starts services in the right sequence.
| Command | What it does |
|---|---|
pnpm dev | Start all dev servers (backend + frontend) |
pnpm build | Production build for all apps |
pnpm typecheck | Run TypeScript checks across the whole repo |
pnpm lint | Lint all apps and packages |
Target a specific app with --filter:
# Backend only
pnpm --filter @hype-stack/backend dev
pnpm --filter @hype-stack/backend typecheck
# Frontend only
pnpm --filter @hype-stack/frontend dev
pnpm --filter @hype-stack/frontend typecheck
# Run pending migrations
pnpm --filter @hype-stack/backend prisma:migrate
# Open Prisma Studio (visual DB browser)
pnpm --filter @hype-stack/backend prisma:studio
# Generate Prisma client after schema changes
pnpm --filter @hype-stack/backend prisma:generate
# Start the Electron app with hot reload
pnpm --filter @hype-stack/frontend start:app
# Start Postgres + Redis
docker compose up -d
# Stop services
docker compose down