Commands

All commands run from the monorepo root using pnpm. Nx handles dependency ordering, so pnpm dev starts services in the right sequence.

Everyday commands

CommandWhat it does
pnpm devStart all dev servers (backend + frontend)
pnpm buildProduction build for all apps
pnpm typecheckRun TypeScript checks across the whole repo
pnpm lintLint all apps and packages

Per-app commands

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

Database commands

# 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

Desktop app

# Start the Electron app with hot reload
pnpm --filter @hype-stack/frontend start:app

Docker

# Start Postgres + Redis
docker compose up -d

# Stop services
docker compose down