Requirements
- Node ≥ 22
- pnpm 10
- Docker (for local Postgres and integration tests)
Set up
1
Install dependencies
2
Configure environment
Copy the example env file and fill in what you need — most variables are optional in
development.
3
Start Postgres
Local dev and tests run against Dockerized Postgres.
4
Seed data (optional)
Mints a demo org, team, and a virtual key you can use immediately.
5
Run the server and dashboard
Two auth modes for local dev
Spillway’s dashboard authenticates humans through WorkOS AuthKit. You have two options locally:- Real WorkOS auth — set
WORKOS_API_KEYandWORKOS_CLIENT_IDin.env(use WorkOS’s Staging environment’s test keys). - No auth provider at all — integration tests mint their own JWTs directly, so you can work on most of the codebase without ever touching WorkOS.
Quality gates
One command has to pass before a change is done — it’s the same thing CI runs:Integration tests need Docker running. Avoid running
pnpm stress within ~15s of an
integration run — the previous session’s container reaper can sweep the stress harness’s
containers mid-run and produce a confusing failure.Regenerating the API reference
The API reference is generated, not hand-written — the request/response schemas are the single source of truth, so the spec can’t drift from what the server actually validates:Where next
Quickstart
Make your first request against the server you just started.
Architecture
What
pnpm dev actually boots, and how a request flows through it.