Local Development
Run Abacus on your local machine for development.
Prerequisites
- Node.js 18+
- pnpm
- PostgreSQL database (local or remote)
Setup
-
Clone and install dependencies
Terminal window git clone https://github.com/getsentry/abacus.gitcd abacuspnpm install -
Create environment file
Create
.env.localwith your credentials:Terminal window cat > .env.local << 'EOF'POSTGRES_URL=postgres://...BETTER_AUTH_SECRET=your-secret-hereGOOGLE_CLIENT_ID=your-client-idGOOGLE_CLIENT_SECRET=your-client-secretNEXT_PUBLIC_DOMAIN=yourcompany.comCRON_SECRET=your-cron-secret# Providers (optional)ANTHROPIC_ADMIN_KEY=sk-admin-...CURSOR_ADMIN_KEY=...EOF -
Run database migrations
Terminal window pnpm cli db:migrate -
Start the development server
Terminal window pnpm devOpen http://localhost:3000.
Local PostgreSQL with Docker
If you don’t have a remote PostgreSQL database, use Docker:
docker-compose up -dThis starts a local PostgreSQL instance. Use the connection string:
POSTGRES_URL=postgres://postgres:postgres@localhost:5434/abacusAvailable Scripts
| Command | Description |
|---|---|
pnpm dev | Start development server |
pnpm build | Build for production |
pnpm lint | Run ESLint |
pnpm cli <cmd> | Run CLI commands |