Prerequisites
Ensure the following are installed on your machine before continuing:
- Node.js 18+
- pnpm 10+
- Docker (used to run PostgreSQL, Redis, and optionally a local GitLab)
The server’s task queue is powered by BullMQ and requires a running Redis instance. There is no in-memory fallback, so
REDIS_URL must be set.Set up environment variables
Copy the example file and fill in the required values:Open The example
.env.development and set at minimum:DATABASE_URL and REDIS_URL match the ports used by the local Docker services started in the next step.ROOT_EMAIL and ROOT_PASSWORD in .env.development let you bootstrap an initial admin account on first startup. Set them now if you want to skip manual account creation.Initialize the local development environment
This single command starts PostgreSQL and Redis via Docker and runs the initial database migrations:What it does:If you need to run only specific steps:
- Starts the
db(PostgreSQL on port 15432) andredis(port 16379) Docker containers - Runs
pnpm db:migrate:devto apply all schema migrations
pnpm env:init only prepares dependencies and runs migrations. It does not start the server or web process — those come next.Start the API server
In a terminal, start the backend server:The API server starts at
http://localhost:3000. All routes are available under the /api prefix.Start the web dashboard
In a second terminal, start the frontend dev server:The web dashboard starts at
http://localhost:3001.Access the dashboard
Open http://localhost:3001 in your browser.If you set
ROOT_EMAIL and ROOT_PASSWORD, log in with those credentials. Otherwise, complete the sign-up flow to create your first account.Complete the onboarding flow
After logging in, the onboarding flow guides you through the required configuration steps:
- Platform configuration — connect a GitLab or GitHub instance and provide credentials so AI Review can receive webhooks and post comments.
- AI configuration — configure your AI provider. The currently activated provider is Volcengine (Doubao); set
VOLCENGINE_API_KEYandVOLCENGINE_ENDPOINTin your environment file. - Project — sync and add a repository that AI Review will monitor.
Although the environment file contains keys for other providers (OpenAI, Anthropic, Azure, Moonshot), only the
volcengine runtime is active in the current codebase. Configure Volcengine credentials to enable AI review and chat functionality.Trigger a test review
With a project configured, open a merge request (GitLab) or pull request (GitHub) in the connected repository. The platform webhook sends an event to
http://localhost:3000/api/webhook/*, which enqueues a review task.Monitor the review in the Review History page of the dashboard at http://localhost:3001.You can also check server logs:Port reference
| Service | Port | Description |
|---|---|---|
| API server | 3000 | Hono backend, all /api routes |
| Web dashboard | 3001 | React frontend dev server |
| PostgreSQL | 15432 | Development database |
| Redis | 16379 | BullMQ task queue |
| GitLab (optional) | 18080 | Local GitLab web UI |
| GitLab SSH (optional) | 12222 | Local GitLab SSH |