Getting Started
Set up Danvas for local development in minutes
Overview
Danvas is a Bun/Turborepo monorepo. This guide covers the shortest supported path to a local development environment; SETUP.md is the complete environment reference.
Prerequisites
- Node.js 24.x
- Bun 1.4.0
- Git
- Development credentials for Clerk, Neon, and the Vercel AI Gateway
Quickstart
-
Clone the repository and enter the repository directory:
git clone https://github.com/canvasforms/danvas-forge.git cd danvas-forge -
Install dependencies and generate environment files:
bun install bun setup -
Fill the required values in the generated
.envfiles. SeeSETUP.mdanddocs/reference/environment-variables.md. -
Apply the reviewed development migrations:
bun db:migrate -
Start the main app and API:
bun run dev
Local services:
| Service | URL |
|---|---|
| Main app | http://localhost:4000 |
| API health | http://localhost:4002/health |
| Guest app | http://localhost:3300 |
| Slack bot | http://localhost:4005 |
| Docs | http://localhost:4004 |
| Analytics MCP | http://localhost:4006 |
| Storybook | http://localhost:6006 |
Use bun run dev:all when you need the complete local suite.
Database safety
Normal schema changes use bun db:generate followed by bun db:migrate. bun db:push:local is reserved for intentional local-only diagnostics. Never use a direct schema push as the production migration workflow; production uses the approval-gated runner.