Iris
Getting started

Quickstart

Get Iris running locally in five steps.

Prerequisites

1. Clone and install

git clone https://github.com/npx-idk/iris.git
cd iris
pnpm install

2. Set up environment variables

Copy the example files — each one documents where to get every value:

cp apps/api/.env.example apps/api/.env
cp apps/web/.env.example apps/web/.env.local
cp packages/database/.env.example packages/database/.env

At minimum, set:

  • GEMINI_API_KEY — from Google AI Studio
  • BETTER_AUTH_SECRET — generate with openssl rand -hex 32

BETTER_AUTH_SECRET must be identical in apps/api/.env and apps/web/.env.local — it signs session tokens.

3. Start infrastructure

pnpm docker:up

This starts PostgreSQL, Redis, and MinIO via Docker Compose:

ServiceURL
PostgreSQLlocalhost:5432
Redislocalhost:6379
MinIO APIhttp://localhost:9000
MinIO Consolehttp://localhost:9001

4. Run database migrations

pnpm db:generate
pnpm db:migrate

5. Start the dev servers

pnpm dev

Open http://localhost:3001, create an account, and you're ready to write your first test.

On this page