2025-12-11 21:44:37 +01:00
# OTA Fleet Dashboard
2025-12-11 17:40:30 +01:00
2025-12-11 21:44:37 +01:00
The management interface for the OTA Fleet System. Built with Next.js to provide real-time visibility and control over the fleet.
2025-12-11 17:40:30 +01:00
2025-12-11 21:44:37 +01:00
## Tech Stack
* **Next.js ** : React framework for production.
* **Tailwind CSS ** : Utility-first CSS framework for styling.
* **Bun ** : Fast JavaScript runtime and package manager.
* **Lucide React ** : Icon set.
2025-12-12 12:22:41 +01:00
* **Zod ** : TypeScript-first schema declaration and validation library.
2025-12-11 17:40:30 +01:00
2025-12-11 21:44:37 +01:00
## Features
* **Fleet Overview ** :
* Grouped view of all vehicles.
* Real-time status tracking (Online/Offline) with 5s timeout logic.
* Version distribution stats per group.
* Collapsible groups for easier navigation.
* **Group Manager ** : Create groups and assign vehicles via a modal interface.
* **Update Manager ** : Upload firmware (`.bin` files) and deploy them to targets.
2025-12-11 17:40:30 +01:00
2025-12-11 21:44:37 +01:00
## Getting Started
2025-12-11 17:40:30 +01:00
2025-12-11 21:44:37 +01:00
1. **Install Dependencies ** :
```bash
bun install
```
2025-12-11 17:40:30 +01:00
2025-12-11 21:44:37 +01:00
2. **Run Development Server ** :
```bash
bun run dev
```
Open [http://localhost:3000 ](http://localhost:3000 ) in your browser.
2025-12-11 17:40:30 +01:00
2025-12-11 21:44:37 +01:00
## Configuration
* **API Proxy ** : Requests to `/api/*` are forwarded to the backend (check `next.config.ts` or manually configured in `lib/api.ts` if using direct URL). Currently, `lib/api.ts` points to `http://localhost:5000` .