How uttkarsh779/ride_sharing_management_system works
This is a server-rendered carpooling marketplace. A signed-in rider searches available trips, books a seat, and manages rides and bookings; drivers can post and cancel rides. The application also supports accounts and password recovery, payments, ratings, chat and live ride updates, safety reporting, and administration. The graph follows the Express routing and controller structure into MySQL and supporting services. The README is empty; connections for unsampled capabilities rely on SOURCE INDEX references or documented routes, not inspection of their implementation.
Main entry points: auth.js Accounts and rides · dbConnection.js MySQL database · pages.js Page routes · app.js Express app
Components 26
Web application
- Express app
app.js - Page routes
routes/pages.js - Auth routes
routes/auth.js - Admin routes
routes/admin.js - Rendered pages
views
Ride lifecycle
- Accounts and rides
controllers/auth.js - Ride search
controllers/carpool.controller.js - Booking and cancellation
controllers/booking.controller.js - Payment gateway
services/paymentGateway.js - Ride recurrence
utils/recurrence.js - Ride queries
utils/rideQueries.js
Rider community
- Ratings
controllers/rating.controller.js - Ride messaging
controllers/message.controller.js - Reports and blocks
controllers/moderation.controller.js - Rider profiles
controllers/profile.controller.js - SOS alerts
controllers/sos.controller.js - Admin operations
controllers/admin.controller.js
Data and integrations
- MySQL database
database/dbConnection.js - User and token helpers
controllers/service.js - Input validation
utils/validators.js - Address geocoding
services/geocode.js - Email delivery
services/mailer.js - Socket updates
services/socket.js - Avatar uploads
services/upload.js
Other components
- Rider
- SMTP service
Connections 44
- Rider → Express app: uses
- Express app → Page routes: mounts
app.js - Express app → Auth routes: mounts
app.js - Express app → Admin routes: mounts
app.js - Express app → Accounts and rides: routes login
app.js - Page routes → Ride search: routes search
routes/pages.js - Page routes → Accounts and rides: routes ride actions
routes/pages.js - Page routes → Booking and cancellation: routes bookings
routes/pages.js - Page routes → Ride messaging: routes chat
routes/pages.js - Page routes → Ratings: routes ratings
routes/pages.js - Page routes → Reports and blocks: routes safety
routes/pages.js - Page routes → Rider profiles: routes avatars
routes/pages.js - Page routes → SOS alerts: routes alerts
routes/pages.js - Page routes → Rendered pages: renders
- Auth routes → Accounts and rides: routes auth
routes/auth.js - Admin routes → Admin operations: routes admin
routes/admin.js - Ride search → MySQL database: queries rides
controllers/carpool.controller.js - Ride search → Address geocoding: geocodes search
controllers/carpool.controller.js - Ride search → Ride queries: uses seat expression
controllers/carpool.controller.js - Booking and cancellation → MySQL database: reads and writes
controllers/booking.controller.js - Booking and cancellation → Socket updates: notifies riders
controllers/booking.controller.js - Booking and cancellation → Email delivery: sends cancellations
controllers/booking.controller.js - Booking and cancellation → User and token helpers: looks up passengers
controllers/booking.controller.js - Ride messaging → MySQL database: reads and writes
controllers/message.controller.js - Ride messaging → Socket updates: notifies recipient
controllers/message.controller.js - Ride messaging → User and token helpers: looks up user
controllers/message.controller.js - Reports and blocks → MySQL database: stores reports and blocks
controllers/moderation.controller.js - Accounts and rides → MySQL database: reads and writes
controllers/auth.js - Accounts and rides → Payment gateway: uses gateway
controllers/auth.js - Accounts and rides → Socket updates: uses updates
controllers/auth.js - Accounts and rides → Email delivery: sends email
controllers/auth.js - Accounts and rides → Ride recurrence: uses recurrence
controllers/auth.js - Accounts and rides → Ride queries: uses ride queries
controllers/auth.js - Accounts and rides → User and token helpers: uses user helpers
controllers/auth.js - Accounts and rides → Address geocoding: uses geocoding
controllers/auth.js - Ratings → MySQL database: stores ratings
controllers/rating.controller.js - Rider profiles → MySQL database: updates profile
controllers/profile.controller.js - SOS alerts → MySQL database: records alerts
controllers/sos.controller.js - SOS alerts → Email delivery: sends alerts
controllers/sos.controller.js - Admin operations → MySQL database: queries records
controllers/admin.controller.js - Admin operations → Input validation: validates inputs
controllers/admin.controller.js - MySQL database → MySQL database: persists domain data
database/dbConnection.js - User and token helpers → MySQL database: queries users
controllers/service.js - Email delivery → SMTP service: sends messages
services/mailer.js