How jeevan-aj/rent-a-ride works
Rent a Ride is a full-stack car-rental platform for customers, administrators, and vehicle vendors. Customers browse and filter vehicles, book a rental, and manage their profile and orders; vendors list vehicles for approval and follow bookings; administrators manage listings, bookings, vendors, and users. The React client communicates with an Express/MongoDB backend, with payment, email, and media-storage integrations. Several client-to-server links are documented only at the product level, so those are marked as unverified; sampled backend imports and routes support the internal links shown.
Main entry points: App.jsx React app routing · server.js Express server · userBookingController.js Booking operations · vehicleModel.js Vehicle records
Components 27
Customer and role-based client
- React app routing
client/src/App.jsx - Vehicle discovery
client/src/pages/user/AvailableVehiclesAfterSearch.jsx - Search and filters
client/src/pages/user/CarSearch.jsx - Checkout and payment
client/src/pages/user/CheckoutPage.jsx - Account and orders
client/src/pages/user/Orders.jsx - Client state
client/src/redux/store.js - Admin operations
client/src/pages/admin/components/AddProductModal.jsx - Vendor operations
client/src/App.jsx
Backend API
- Express server
backend/server.js - Authentication routes
backend/routes/authRoute.js - Customer routes
backend/routes/userRoute.js - Admin routes
backend/routes/adminRoute.js - Vendor routes
backend/routes/venderRoute.js - Authentication
backend/controllers/authController.js - Vehicle discovery API
backend/controllers/userControllers/userAllVehiclesController.js - Booking operations
backend/controllers/userControllers/userBookingController.js - Admin management
backend/controllers/adminControllers/dashboardController.js - Vendor listings
backend/controllers/vendorControllers/vendorCrudController.js
Domain data
- User records
backend/models/userModel.js - Vehicle records
backend/models/vehicleModel.js - Booking records
backend/models/BookingModel.js
External services
- Cloudinary media
backend/utils/cloudinaryConfig.js - Razorpay
- Booking email
Other components
- Customer
- Administrator
- Vehicle vendor
Connections 31
- Customer → React app routing: uses
README.md - Administrator → React app routing: uses
README.md - Vehicle vendor → React app routing: uses
README.md - React app routing → Vehicle discovery: routes to
client/src/App.jsx - React app routing → Checkout and payment: routes to
client/src/App.jsx - React app routing → Account and orders: routes to
client/src/App.jsx - React app routing → Admin operations: routes to
client/src/App.jsx - React app routing → Vendor operations: routes to
client/src/App.jsx - Search and filters → Vehicle discovery: filters results
client/src/pages/user/AvailableVehiclesAfterSearch.jsx - Search and filters → Client state: uses state
client/src/pages/user/CarSearch.jsx - Checkout and payment → Client state: uses state
- React app routing → Express server: uses API
- Express server → Authentication routes: mounts
backend/server.js - Express server → Customer routes: mounts
backend/server.js - Express server → Admin routes: mounts
backend/server.js - Express server → Vendor routes: mounts
backend/server.js - Authentication routes → Authentication: routes to
backend/routes/authRoute.js - Customer routes → Vehicle discovery API: routes to
backend/routes/userRoute.js - Customer routes → Booking operations: routes to
backend/routes/userRoute.js - Admin routes → Admin management: routes to
backend/routes/adminRoute.js - Vendor routes → Vendor listings: routes to
backend/routes/venderRoute.js - Authentication → User records: reads and writes
backend/controllers/authController.js - Vehicle discovery API → Vehicle records: queries
backend/controllers/userControllers/userAllVehiclesController.js - Booking operations → Booking records: creates and reads
backend/controllers/userControllers/userBookingController.js - Booking operations → Vehicle records: checks availability
backend/controllers/userControllers/userBookingController.js - Booking operations → Razorpay: creates payment
backend/controllers/userControllers/userBookingController.js - Booking operations → Booking email: sends details
backend/controllers/userControllers/userBookingController.js - Admin management → Vehicle records: manages
backend/controllers/adminControllers/dashboardController.js - Vendor listings → Vehicle records: manages
backend/controllers/vendorControllers/vendorCrudController.js - Admin management → Cloudinary media: uploads media
backend/controllers/adminControllers/dashboardController.js - Vendor listings → Cloudinary media: uploads media
backend/controllers/vendorControllers/vendorCrudController.js