Local development

Run wrkin.space locally with Docker, Postgres, MinIO, and the collab server.

Last updated May 27, 2026

Prerequisites

  • Node.js (LTS)
  • pnpm
  • Docker (for Postgres and MinIO)

Quick setup

From the repository root:

pnpm setup

This creates .env, installs dependencies, starts Docker services, pushes the schema, and optionally seeds demo data.

Run the app

In one terminal:

pnpm dev

In another terminal (required for collaborative Docs):

pnpm collab:dev

Open http://localhost:5173.

Environment

Copy variables from .env.example. At minimum you need:

  • DATABASE_URL
  • BETTER_AUTH_SECRET
  • S3_* values for MinIO
  • PUBLIC_COLLAB_WS_URL=ws://localhost:1234 for Docs editing

Useful commands

CommandDescription
pnpm db:startStart Postgres + MinIO
pnpm db:pushSync schema locally
pnpm db:seedLoad demo data
pnpm checkType-check the app

Next steps