← All projects

Ridehail — Realtime Mobility Platform

Mobility Platform

A production-shaped ride-sharing system with live dispatch, dynamic fares, customer and rider apps, operations tooling and balanced payment ledgers.

Repository overview

Part Where What --- --- --- API src/ Spring Boot 3, JPA, Flyway on Postgres, JWT roles CUSTOMER / RIDER / ADMIN , STOMP WebSocket Admin panel admin-web/ Next.js: live map, trips, riders, payments, ledger, disputes, incidents, support, rider verification, audit log (docs/ADMIN PANEL.md) Rider and customer web apps clients/apps/rider-web , customer-web Next.js, with maps (Leaflet), road routes, address search, vehicle pictures and live car tracking; sign-in cookies are held by the app's server, never by browser JavaScript Phone apps clients/apps/rider-mobile , customer-mobile Expo / React Native, tokens in the keychain, with the same maps, routes, address search and vehicle pictures (the map is a Leaflet page in a WebView: no native map library or key). Tested and bundled, but not yet run on a device Shared client clients/packages/api Typed REST and realtime client with schema-checked responses (clients/README.md)

Project features

  • Dynamic fares: upfront quotes with demand and supply surge pricing, locked at booking.
  • Dispatch: nearest-rider offers with timeouts; the rider accepts or declines. Live rider location for the customer.
  • Maps, routes and live tracking: the customer searches for a destination by name, sees the pickup, destination and the road between them on a map, and watches the driver's vehicle (a bike, auto, sedan or SUV) move live; the driver sees every offer, and the trip, on a map. Several requests at once stack on the driver's screen, each on its own map. The admin map shows every driver as their vehicle. Search and routes go through the API (docs/GEO.md); tiles come from OpenStreetMap by default ( MAP TILE URL changes that).
  • Realtime: offers, trip updates and rider location over WebSocket. One instance out of the box; many with RabbitMQ and Redis (docs/SCALING.md, docs/LIVE LOCATION.md).
  • Payments: the card is charged when a trip ends; a double-entry ledger that must balance (enforced in the database); commission; refunds.
  • Rider payouts: riders withdraw their share through Stripe Connect (Accounts v2, Express dashboard). A payout waits for the provider's settled funds rather than failing.
  • Disputes and provider problems: chargebacks are recorded and the rider's share frozen until decided; text evidence is compiled and submitted from the admin panel; failed bank payouts, reversed transfers and failed refunds become incidents for a person (docs/DISPUTES.md).

Architecture inferred from repository structure

The implementation is centered on Java, Java 21, Spring Boot 3, PostgreSQL, Next.js. The repository is organized into admin-web, clients, docker, docs, scripts, src areas. Delivery and dependency evidence includes Docker, Docker Compose, Node package manifest, Maven.

Technology

Spring Boot 3 · Next.js · WebSockets · Stripe Connect

Repository snapshot

Java · 0 stars · 0 forks · updated 2026-11-01T02:52:49Z

Demos and evidence

Project links