π Frontend: https://car-drivers-frontend-7r6i.vercel.app βοΈ Backend API: https://car-drivers-backend-7yig.vercel.app
The driver booking ecosystem is largely unstructured and inefficient:
- No real-time driver availability
- Manual coordination
- Lack of centralized system
- Poor tracking and transparency
This platform introduces a centralized, scalable system:
- Real-time driver discovery
- Structured booking lifecycle
- Secure authentication system
- Admin-level system control
Client (React - Vite)
β
REST API (Node.js + Express)
β
Database (MongoDB Atlas)
[Frontend]
UI Components β State Management β API Layer
[Backend]
Routes β Controllers β Services β Models β Database
[External]
ImageKit (Media Storage)
User Action
β
Frontend (API Call)
β
Express Router
β
Middleware (Auth / Validation)
β
Controller
β
Service Layer
β
Database Query (MongoDB)
β
Response β UI Update
User Login
β
Credential Verification
β
JWT Token Generation
β
Token stored on client
β
Protected API requests
β
Middleware validates token
- JWT-based authentication
- Password hashing
- Environment variable protection
- CORS security
- Input validation
- name
- password
- role
- name
- experience
- availability
- rating
- userId
- driverId
- bookingDate
- status
User 1 ββββ * Booking * ββββ 1 Driver
- RESTful architecture
- Stateless communication
- Modular routing
- Standard HTTP status codes
User selects driver
β
Request sent to API
β
Driver availability checked
β
Booking created
β
Response returned
User opens dashboard
β
API fetches drivers
β
Filters applied
β
Results displayed
- Hosted on Vercel
- Optimized build via Vite
- Hosted on Vercel / Render
- Stateless API design
- MongoDB Atlas (Cloud DB)
- Optimized API responses
- Lean database queries
- Component-based frontend rendering
- Separation of concerns
Future improvements designed for scale:
- Redis caching layer
- WebSockets (real-time updates)
- Microservices architecture
- Load balancing
- CDN for assets
- API testing (Postman)
- Unit testing (Jest)
- Integration testing
Car-Drivers/
βββ frontend/
βββ backend/
β βββ routes/
β βββ controllers/
β βββ services/
β βββ models/
β βββ middleware/
βββ admin/
- Payment gateway integration
- Real-time tracking
- Push notifications
- Mobile application
- Full-stack system design
- API architecture
- Authentication handling
- Deployment pipelines
Open to contributions and improvements.
GitHub: https://github.com/Lagadnakul
π₯ Built by Nakul β Full Stack Developer (MERN + AI)