Building Your AppDevelopment Workflow

Development Workflow

Day-to-day commands for running, generating, testing, and health-checking your SiteKnock project, plus common gotchas.

Everyday commands

Run these from your project root:

pnpm app dev my-app          # Generate + run an app's frontend and backend
pnpm sk:generate             # Regenerate all apps from config
pnpm healthcheck             # Format + typecheck + lint
pnpm test:e2e                # Run Playwright end-to-end tests

Scaffolding (see Scaffolding):

pnpm sk:scaffold feature <name>
pnpm sk:scaffold page <name>
pnpm sk:scaffold route <name>
pnpm sk:scaffold locale <code>

Dev services

Start the shared local backing services once — multiple projects can share them:

pnpm compose:dev:up          # Start Postgres, Mailpit, MinIO, Redis
pnpm compose:dev:down        # Stop them
ServiceURL
Frontendhttp://localhost:3000
Backend healthhttp://localhost:5000/api/health
Mailpit (email)http://localhost:8025
MinIO consolehttp://localhost:9001
Prisma Studiopnpm app db studio my-apphttp://localhost:5555

Before you commit

pnpm healthcheck

This formats, typechecks, and lints your project. Fix any errors before committing.

Common gotchas

Next steps