Local development
Run InsightFlare on your own machine.
Requirements
- Node.js 24
- pnpm 10.33.0
Steps
-
Clone the repository:
git clone https://github.com/RavelloH/InsightFlare cd InsightFlare -
Install dependencies:
pnpm install -
Create the local database:
pnpm run db:migrate:local -
Create
.dev.varsfrom the example file and fill in the values:cp .dev.vars.example .dev.varsThe file contains two entries:
MAIN_SECRETandBOOTSTRAP_ADMIN_PASSWORD. For local runs, use aMAIN_SECRETof at least 32 random characters, since the local environment check validates its length and randomness. -
Start the development server:
pnpm run devOpen
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 checkThis 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.