Setup & Installation
Configure your local workspace and build the Electron desktop application from source.
By the end of this guide, you will have a fully configured local workspace running LeadForge OS in development mode.
Prerequisites
- Node.js: Version 18.0.0 or higher (v20.x or v22.x LTS recommended). Verify with
node -v. - pnpm: Version 8.0.0 or higher. Verify with
pnpm -v. - Git: Installed and configured. Verify with
git --version. - Ollama (optional): Installed locally for offline, private lead qualification. Verify with
ollama --version.
Setup Steps
-
Clone the repository and navigate to the project root:
bashgit clone https://github.com/kjxcodez/leadforge-os.git cd leadforge-os -
Install all dependencies across the monorepo workspace:
bashpnpm install -
Build all workspace packages and schema dependencies:
bashpnpm build -
Launch the local development environment:
bashpnpm devThis launches the REST API server and the Electron application concurrently. You can start specific applications selectively using Turborepo filters:
bash# Start Hono REST API server only pnpm dev --filter=api # Start Electron Desktop UI only pnpm dev --filter=@leadforge/desktop
Verification
Upon first launch, the desktop application should open a React-based Chromium window and automatically:
- Initialize the workspace database in the local directory (
userData/workspacesunder AppData/Roaming/leadforge on Windows). - Execute SQL migrations to initialize the CRM database schemas.
- Seed mock data representing company, contact, and email outreach records.
Confirm that the application starts successfully and visualizes the dashboard.
Troubleshooting
If you encounter native binary compilation errors (e.g. better-sqlite3.node was compiled against a different Node.js version), run:
pnpm -F @leadforge/desktop exec electron-builder install-app-depsFor other issues, see the Troubleshooting Guide.