Skip to main content

RideX: Full Stack Ride Booking Platform

An event-driven ride-booking platform featuring state-transition lifecycles, role-based Rider and Captain authentication, Socket.IO real-time updates, and live Leaflet route tracking.

View on GitHub
  • Node.js & Express.js
  • MongoDB & JWT RBAC
  • Socket.IO Real-Time
  • OpenRouteService & Leaflet

Event-Driven Ride Lifecycle

Built between June and July 2026, RideX models every trip as an explicit state machine covering ride creation, fare estimation, captain acceptance, OTP verification, and completion—preventing conflicting updates across concurrent clients.

  • Separate Rider and Captain authentication flows using JWT and role-based access control (RBAC) across modular Node.js and Express REST APIs.
  • Real-time Socket.IO event channels for instant ride dispatch, status transitions, and OTP confirmation.
  • Live location tracking and route geometry visualization powered by OpenRouteService and Leaflet.
RideX Rider booking screen with live Leaflet route tracking and fare estimate
RideX Captain screen with ride acceptance and 4-digit OTP verification

Architecture Highlights

By decoupling Rider and Captain permissions at the middleware layer and persisting state transitions in MongoDB, the backend guarantees that only an authorized Captain can accept a pending request and start a trip after validating the Rider’s OTP.