How mohamed-sheta/mini_uber_java_project works
MiniGo is a Java ride-hailing application. Its principal workflow runs from passenger ride request and route calculation through driver acceptance, ride completion, payment, ratings, and invoicing; drivers also manage availability and rides. The graph preserves documented wallet, chat, profile, reporting, and donation/tip capabilities. The README describes the workflow, while sampled source and the SOURCE INDEX support selected implementation links; unsampled wiring is not inferred.
Main entry points: RideManager.java Ride orchestration · DriverDashboardController.java Driver dashboard · Payment.java Wallet and fare · RideRequestDAO.java Ride request access
Components 25
User experience
- Ride map
src/controller/MapController.java - Driver dashboard
src/controller/DriverDashboardController.java - Profile management
src/controller/ProfileController.java - Live chat
src/utils/ChatStorage.java
Ride lifecycle
- Route calculation
src/services/MapGraph.java - Ride request
src/services/Request.java - Ride orchestration
src/services/RideManager.java - Ride execution
src/controller/DriverRideViewController.java - Ride and user models
src/Model/RideHistory.java
Payments and records
- Wallet and fare
src/services/Payment.java - Invoice generation
src/utils/InvoiceGenerator.java - Company transactions
src/DAO/CompanyTransactionDAO.java
Accounts and support
- Login and registration
src/controller/LoginController.java - User session
src/utils/UserSession.java - Problem reporting
src/controller/ReportProblemController.java - Email notifications
src/utils/EmailSender.java
Persistence
- Ride request access
src/DAO/RideRequestDAO.java - Ride history access
src/DAO/RideHistoryDAO.java - Passenger access
src/DAO/PassengerDAO.java - Driver access
src/DAO/DriverDAO.java - Location access
src/DAO/LocationDAO.java - Other data access
src/DAO/ProblemReportDAO.java - MySQL database
Other components
- Passenger
- Driver
Connections 34
- Passenger → Login and registration: authenticates
- Passenger → Ride map: requests ride
- Ride map → Route calculation: calculates route
src/controller/MapController.java - Route calculation → Location access: loads locations
src/services/MapGraph.java - Ride map → Ride request: creates request
src/controller/MapController.java - Ride request → Ride request access: persists request
- Driver → Driver dashboard: reviews requests
- Driver dashboard → Ride request access: updates request
src/controller/DriverDashboardController.java - Driver dashboard → Driver access: updates availability
src/controller/DriverDashboardController.java - Driver dashboard → Ride execution: opens ride
src/controller/DriverDashboardController.java - Ride execution → Ride orchestration: manages ride
src/controller/DriverRideViewController.java - Ride orchestration → Ride request access: stores status
src/services/RideManager.java - Ride orchestration → Ride history access: records completion
src/services/RideManager.java - Ride orchestration → Wallet and fare: processes fare
src/services/RideManager.java - Wallet and fare → Passenger access: debits wallet
src/services/RideManager.java - Wallet and fare → Driver access: credits wallet
src/services/RideManager.java - Ride orchestration → Company transactions: records fee
src/services/RideManager.java - Passenger → Live chat: chats with driver
- Driver → Live chat: chats with passenger
- Passenger → Profile management: manages profile
- Driver → Profile management: manages profile
- Passenger → Wallet and fare: adds funds
- Passenger → Invoice generation: gets invoice
- Ride orchestration → Invoice generation: generates invoice
- Passenger → Problem reporting: reports problem
- Problem reporting → Other data access: stores report
src/controller/ReportProblemController.java - Login and registration → User session: sets session
- Email notifications → Passenger: sends updates
- Ride request access → MySQL database: reads and writes
src/DAO/RideRequestDAO.java - Ride history access → MySQL database: reads and writes
src/DAO/RideHistoryDAO.java - Passenger access → MySQL database: reads and writes
src/DAO/PassengerDAO.java - Driver access → MySQL database: reads and writes
src/DAO/DriverDAO.java - Location access → MySQL database: reads locations
src/DAO/LocationDAO.java - Other data access → MySQL database: stores reports