FleetMind helps teams monitor fleet risk, detect anomalies, and simulate scenarios.
- Live view of risky vehicles and recent anomalies.
- Scenario simulation to test operational responses.
- Copilot-style query workflow for quick fleet insights.
- Docker and Docker Compose
- A
GROQ_API_KEYfor copilot responses (other provider will be supported in future versions)
# Clone the repository
git clone https://github.com/M1ndSmith/fleetMind.git
cd fleetMind
# Set your API key
export GROQ_API_KEY="gsk_..."
# Start services
docker compose -f infra/docker-compose.yml up --buildOpen the app at http://localhost:3000.
- Open the dashboard.
- Review risky vehicles and anomalies.
- Run a simulation for a selected vehicle.
- Ask copilot for a short operational summary.
curl http://localhost:8000/livez
curl http://localhost:8100/livez
curl http://localhost:8000/vehicles/risky
curl http://localhost:8000/anomaliescurl -X POST http://localhost:8100/chat \
-H "Content-Type: application/json" \
-d '{"query":"Show me the top risky vehicles","session_id":"readme"}'Common runtime values:
GROQ_API_KEY: enables LLM-backed copilot responses.NEXT_PUBLIC_API_TOKEN: frontend token for simulation calls.BACKEND_INTERNAL_URL: internal backend URL used by server-side frontend requests.COPILOT_INTERNAL_URL: internal copilot URL used by server-side frontend requests.API_TOKEN: backend token required for protected simulation endpoint.CORS_ORIGINS/cors_origins: allowed frontend origins for API access.
For local Docker usage, defaults are already provided in compose.
fleetMind/
├── backend/ # API, simulation, risk logic
├── copilot/ # chat/call orchestration over backend data
├── frontend/ # web UI
├── infra/ # docker compose and environment wiring
├── README.md
└── QUICKSTART.md
cd backend
./run_tests.sh -q --cov=app --cov-report=term-missing --cov-report=xmlcd copilot
./run_tests.sh -q --cov=app --cov-report=term-missing --cov-report=xmlcd frontend
npm ci
npm test
npm run test:coverage- Fork the repository.
- Create a feature branch.
- Add tests for your changes.
- Open a pull request with a clear summary and test notes.
MIT License.
For questions or collaboration, open an issue in this repository: https://github.com/M1ndSmith/fleetMind/issues