Getting Started
Setup
Install, bootstrap, and run the AI Assistant monorepo locally.
Prerequisites
- Bun
1.1.26+ - Docker Desktop
Recommended path
Use bun run setup for a reliable first boot. It validates tooling, creates missing env files, starts Docker, waits for health, runs migrations, and seeds baseline data.
Bootstrap Options
bun run setupUse this first on fresh machines.
bun install
cp .env.example apps/app/.env
cp .env.example apps/admin/.env
cp .env.example apps/web/.env
docker compose up -d
bun db:migrate
bun db:seed
bun devUse this when you want explicit control over each phase.
Setup Flow
Install dependencies
bun installCreate app env files
cp .env.example apps/app/.env
cp .env.example apps/admin/.env
cp .env.example apps/web/.envStart infrastructure
docker compose up -dApply schema and seed data
bun db:migrate
bun db:seedStart apps
bun devAccess URLs (Local)
- App:
http://localhost:3000 - Web:
http://localhost:3001 - Admin:
http://localhost:3002 - MailDev UI:
http://localhost:1080 - MinIO Console:
http://localhost:4001
Development Auth Test Credentials
For local OTP testing without email verification:
- Email:
test@example.com - OTP:
123456
Verify Service Health
bun health
bun health:waitMinimal Development Mode (Optional)
If you only need core features:
docker compose up postgres redis minio createbuckets maildev -dSet in apps/app/.env:
FEATURE_SEARCH_ENABLED=false
FEATURE_MEMORY_ENABLED=false
DEVELOPMENT_MODE=trueMinimal mode tradeoff
Minimal mode keeps auth/chat/uploads fast for local iteration, but intentionally disables search and memory paths.
Common Startup Commands
bun dev
bun dev:app
bun dev:admin
bun dev:web
bun dev:workerSetup Checklist
-
bun installcompleted without errors -
.envfiles exist inapps/app,apps/admin, andapps/web -
docker compose psshows required services running -
bun db:migratesucceeds -
bun devstarts and app loads onlocalhost:3000