Documentation
02Deployment

Local development

Run InsightFlare on your own machine.

Requirements

  • Node.js 24
  • pnpm 10.33.0

Steps

  1. Clone the repository:

    git clone https://github.com/RavelloH/InsightFlare
    cd InsightFlare
  2. Install dependencies:

    pnpm install
  3. Create the local database:

    pnpm run db:migrate:local
  4. Create .dev.vars from the example file and fill in the values:

    cp .dev.vars.example .dev.vars

    The file contains two entries: MAIN_SECRET and BOOTSTRAP_ADMIN_PASSWORD. For local runs, use a MAIN_SECRET of at least 32 random characters, since the local environment check validates its length and randomness.

  5. Start the development server:

    pnpm run dev

    Open http://localhost:3000.

UI-only development

pnpm run dev:ui starts the Vite development server in Demo Mode, which uses built-in mock data and needs no database or secrets. To use Demo Mode with pnpm run dev, set DEMO_MODE=1.

Quality checks

Before opening a pull request, run:

pnpm run check

This applies automatic formatting and lint fixes, then runs the build, type checking, translation key validation, tests, and specification checks. pnpm run check:verify runs the same checks without automatic fixes. For build-related changes, also run pnpm run build:demo.

The repository's contributing guide describes the pull request expectations.