# Installation (/docs/getting-started/installation)



<Steps>
  ### Install dependencies [#install-dependencies]

  ```bash
  bun install
  ```

  ### Start Postgres and Redis [#start-postgres-and-redis]

  Use Docker, or any Postgres you already have:

  ```bash
  docker compose up -d                 # Postgres and Redis
  # or
  docker compose up -d redis           # reuse an existing Postgres
  ```

  ### Configure the API [#configure-the-api]

  ```bash
  cp apps/api/.env.example apps/api/.env   # then edit DATABASE_URL and the secrets
  ```

  ### Create the schema and seed sample data [#create-the-schema-and-seed-sample-data]

  ```bash
  bun run db:migrate                   # create the schema
  bun run db:seed                      # a workspace, an admin account, sample decisions, an API key
  ```

  `db:seed` prints an API key **once** — only its hash is stored. It also creates the console
  account below.

  ### Start the development servers [#start-the-development-servers]

  ```bash
  bun run dev                          # API on :3100, console on :5173
  ```
</Steps>

<Callout title="Seeded 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.
</Callout>

To rebuild the sample content after changing the seed, run `SEED_RESET=true bun run db:seed`.
