Getting started
Installation
Install the stack, migrate the database and start the API and the console.
Install dependencies
bun installStart Postgres and Redis
Use Docker, or any Postgres you already have:
docker compose up -d # Postgres and Redis
# or
docker compose up -d redis # reuse an existing PostgresConfigure the API
cp apps/api/.env.example apps/api/.env # then edit DATABASE_URL and the secretsCreate the schema and seed sample data
bun run db:migrate # create the schema
bun run db:seed # a workspace, an admin account, sample decisions, an API keydb:seed prints an API key once — only its hash is stored. It also creates the console
account below.
Start the development servers
bun run dev # API on :3100, console on :5173Seeded account
The seed creates admin@decision-control.local with the password decision-control, plus a
"Default workspace" and a "Default project". Change that password — or set SEED_ADMIN_EMAIL /
SEED_ADMIN_PASSWORD — before this is anything other than local.
To rebuild the sample content after changing the seed, run SEED_RESET=true bun run db:seed.