Real-time flight operations dashboard with AI-powered risk assessment.
- Bun >= 1.0
- Flight-Engine (optional, for real flight data)
-
Copy the environment template:
cp .env.example .env cp vector-dispatch/.env.example vector-dispatch/.env.local
-
Configure your environment variables in
.env:# MongoDB Atlas MONGODB_URI=mongodb+srv://... # Flight-Engine API (optional) FLIGHT_ENGINE_URL=http://localhost:3030 # AI Services LOCAL_AI_BASE_URL=http://127.0.0.1:8045/v1 GOOGLE_AI_API_KEY=your-key-here
Note: If Flight-Engine is not available, the system falls back to MongoDB, then mock data. If AI services are unavailable, the system uses rule-based MEL decision logic.
Vector Dispatch integrates with American Airlines Flight-Engine for real flight data.
# Clone and run Flight-Engine
git clone https://github.com/AmericanAirlines/Flight-Engine.git
cd Flight-Engine
npm install
npm startFlight-Engine runs on port 3030 by default. Set FLIGHT_ENGINE_URL in your .env if using a different port.
The socket server loads flight data in this order:
- Flight-Engine API - Real flight schedules (if available)
- MongoDB - Persisted flight state (if connected)
- Mock Data - Generated test flights (fallback)
bun installStart both the Next.js frontend and Socket.io server:
bun run dev:allOr run them separately:
# Terminal 1: Socket server
bun run dev:socket
# Terminal 2: Next.js frontend
bun run devbun test