mindmap.build Local Development Setup Guide
This guide explains how to clone mindmap.build from GitHub and run it locally using Turborepo.
Prerequisites
Before you begin, ensure you have the following installed:
| Tool | Version | Purpose |
|---|---|---|
| Node.js | 22.0.0+ | JavaScript runtime |
| npm | 11.6.2+ | Package manager |
| Go | 1.25+ | Backend runtime |
Check Your Versions
node --version # Should be v22.x or higher
npm --version # Should be v11.x or higher
go version # Should be 1.25+Step 1: Install Turborepo (if needed)
Turbo is included as a dev dependency in the project, so it will be installed automatically with npm install. However, you can also install it globally for convenience:
Option A: Global Installation (Recommended for Development)
npm install -g turboVerify the installation:
turbo --versionOption B: Use npx (No Installation Required)
If you prefer not to install globally, you can run Turbo commands using npx:
npx turbo dev💡 Note: The project's
package.jsonscripts already wrap Turbo commands, sonpm run devwill work without a global installation.
Step 2: Clone the Repository
git clone https://github.com/dhilsand/kemma.git
cd kemmaStep 3: Install Dependencies
Frontend Dependencies (via npm workspaces)
npm installThis installs dependencies for:
- Root workspace (including Turbo)
apps/web-client(React + Vite frontend)apps/server-go(Go Echo backend)
Backend Dependencies (Go)
cd apps/server-go
go mod download
cd ../..Step 4: Run the Development Server
Run Everything (Frontend + Backend)
From the project root:
npm run devOr using Turbo directly:
turbo devThis starts both servers in parallel:
- Frontend:
http://localhost:5173 - Backend:
http://localhost:8001 - API Docs:
http://localhost:8001/api/docs(Scalar)
Run Individual Services
To run only the frontend:
turbo dev --filter=web-clientTo run only the backend:
turbo dev --filter=server-goAvailable Turbo Commands
| Command | Description |
|---|---|
npm run dev | Start all services in development mode |
npm run build | Build all packages for production |
npm run test | Run all test suites |
npm run lint | Lint all packages |
npm run format | Format all code with Prettier |
npm run typecheck | Run TypeScript + Go vet type checking |
npm run check | Run typecheck + lint + test (CI validation) |
npm run clean | Clean all build artifacts |
Troubleshooting
"turbo: command not found"
If you get this error, Turbo is not installed globally. You have two options:
- Install globally:
npm install -g turbo - Use npm scripts: Run
npm run devinstead ofturbo dev
Port Already in Use
If port 5173 or 8000 is busy:
# Kill the process using the port (example for port 5173)
lsof -ti:5173 | xargs kill -9Go Dependencies Issues
Make sure you download Go module dependencies:
cd apps/server-go
go mod downloadQuick Start Summary
# 1. Clone
git clone https://github.com/dhilsand/kemma.git
cd kemma
# 2. Install dependencies
npm install
cd apps/server-go && go mod download && cd ../..
# 3. Run
npm run dev🎉 That's it! Open http://localhost:5173 in your browser to see mindmap.build.