Repository navigation
Development
Guilherme Cardoso edited this page Sep 13, 2026
·
1 revision
Use Node 20:
nvm install
nvm use
npm install
cd client && npm install && cd ..npm run build
npm run set-password
export BIND_HOST=127.0.0.1
export INGEST_TOKEN=devtoken1234567890
npm run devOpen http://localhost:5173. Vite proxies /api to Express on port 3000.
Keep changeOrigin unset in client/vite.config.ts; the API's same-origin
checks depend on the browser Origin matching the Host observed by Express.
For development PDF rendering against Vite:
export EXPORT_BASE_URL=http://127.0.0.1:5173npm run build
npm run test:types
npm testnpm run build builds the React client and TypeScript server. Tests use
Vitest and do not exercise the UI. CI runs all three commands on pushes and pull
requests.
src/ Express API, persistence, flight state, exports
client/ React/Vite browser application
agent/ Supported Windows Node/SimConnect agent
windows-client/ In-development Tauri desktop agent
tests/ Server-side Vitest suite
flight_plans/ Uploaded PDF attachments
flights.db SQLite runtime database
Important server modules include:
-
src/flightManager.ts: flight state and track-derived duration; -
src/db.ts: SQLite access; -
src/ingest.ts: Windows-agent endpoints; -
src/lnmpln.tsandsrc/legMatcher.ts: route import and matching; -
src/pdfExport.ts: browser-based PDF rendering; -
src/trafficStore.ts: ephemeral nearby traffic.
The Tauri client has separate prerequisites, build commands, configuration migration notes, and a Windows manual test plan in its README.