Fleet Vehicle Data Gateway
A production-deployed real-time fleet vehicle monitoring system that tracks 50+ vehicles with sub-second update latency. Built as a showcase project for a Woven by Toyota internship application.
Real-Time Monitoring
The platform provides a live dashboard showing vehicle positions, statuses, and telemetry data updated in real-time via WebSocket connections.
Dashboard Features
- Interactive Map with real-time vehicle positions and movement trails
- Vehicle Cards showing speed, fuel level, engine status, location
- Geofence Alerts with configurable zones and entry/exit notifications
- Fleet Analytics for aggregate statistics and historical data
Architecture
Edge Simulators -> FastAPI Backend -> PostgreSQL
|
WebSocket Server -> Next.js Dashboard
- Edge Simulators generate realistic vehicle telemetry (GPS, speed, fuel, engine metrics)
- FastAPI Backend handles the RESTful API + WebSocket server with SQLAlchemy ORM
- PostgreSQL for persistent storage with Alembic migrations
- Next.js Frontend is a server-side rendered dashboard with Leaflet maps
Security & Auth
- Google OAuth 2.0 for secure authentication
- JWT Tokens for stateless session management
- Role-Based Access with admin and viewer roles
Deployment
- Backend on Railway (auto-deploy from GitHub)
- Frontend on Vercel (preview + production deployments)
- Database on Railway PostgreSQL
- CI/CD via GitHub Actions with linting, testing, and auto-deploy
Technologies
- FastAPI: High-performance Python API
- Next.js + TypeScript: Modern React framework
- PostgreSQL: Relational database
- WebSocket: Real-time bidirectional communication
- Docker: Local development environment
- OAuth 2.0: Google authentication