Fleet Manager v2
A comprehensive web-based fleet management application for tracking vehicles, drivers, trips, and maintenance records.
Features
- Vehicle Management - Track and manage fleet vehicles
- Driver Management - Maintain driver records and assignments
- Trip Tracking - Log and monitor vehicle trips
- Maintenance Records - Schedule and track vehicle maintenance
- Dashboard - Centralized overview of fleet operations
- Health Monitoring - Built-in health check endpoint for deployment monitoring
Tech Stack
- Backend: Node.js with Express.js framework
- Database: PostgreSQL with connection pooling
- Frontend: Vanilla JavaScript with HTML/CSS
- Deployment: Optimized for VibeNest platform
Architecture
Backend Structure
├── server.js # Main application entry point
├── db/
│ ├── db.js # PostgreSQL connection pool
│ ├── migrate.js # Database migration runner
│ ├── schema.sql # Database schema definition
│ └── seed.sql # Initial data seeding
└── routes/ # API route handlers
├── vehicles.js
├── drivers.js
├── trips.js
├── maintenance.js
└── dashboard.js
Frontend Structure
public/
├── index.html # Main dashboard
├── vehicles.html # Vehicle management
├── drivers.html # Driver management
├── trips.html # Trip tracking
├── maintenance.html # Maintenance records
├── style.css # Application styles
└── js/ # JavaScript modules
Getting Started
Install dependencies:
npm install
Set up database:
# Set DATABASE_URL in .env file
npm run migrate
Start the application:
npm start
The application will be available at http://localhost:3000 with automatic database migration on startup.