How jagarlapudiradhakrishna0/test-onecoolie works
ONECOOLIE is a railway-station assistance platform connecting passengers with Sahayak porters, wheelchair escorts, and station transfers. The main journey is passenger sign-in and train search, followed by booking and payment, assistant fulfillment, and financial settlement; support and admin operations are parallel capabilities. The graph combines documented product capabilities with sampled route, controller, and service relationships. Many feature implementations were not sampled, so some documented connections are cited to the README rather than inferred from module names.
Main entry points: db.js Database client · index.js API routes · bookingController.js Booking lifecycle · AuthContext.jsx Authentication
Components 19
Passenger experience
- Web application
client/src/App.jsx - Authentication
client/src/context/AuthContext.jsx - Train search
client/src/components/TrainSearch.jsx - Journey booking
client/src/pages/TripSummaryPage.jsx - Payment
server/src/controllers/paymentController.js
Assistance operations
- Booking lifecycle
server/src/controllers/bookingController.js - Service dispatch
server/src/controllers/serviceController.js - Assistant workflow
server/src/controllers/assistantController.js - Assistant earnings
server/src/utils/earningsService.js - Payout settlement
server/src/controllers/payoutController.js
Platform services
- API routes
server/src/index.js - Passenger support
server/src/controllers/supportController.js - Database client
server/src/config/db.js - Supabase database
Administration and security
- Admin operations
server/src/controllers/adminController.js - Security monitoring
server/src/services/securityMonitoringService.js - Session management
server/src/services/sessionService.js
Other components
- Passenger
- Razorpay
Connections 27
- Passenger → Web application: uses
README.md - Web application → Authentication: provides routes
client/src/App.jsx - Web application → Train search: supports search
README.md - Passenger → Authentication: signs in
README.md - Authentication → API routes: requests OTP
client/src/context/AuthContext.jsx - Train search → Journey booking: selects journey
client/src/components/TrainSearch.jsx - Journey booking → Booking lifecycle: creates booking
README.md - Booking lifecycle → Payment: initiates payment
README.md - Payment → Razorpay: processes payment
README.md - API routes → Booking lifecycle: routes requests
server/src/index.js - API routes → Payment: routes requests
server/src/index.js - Booking lifecycle → Service dispatch: coordinates service
server/src/controllers/bookingController.js - Service dispatch → Assistant workflow: dispatches work
- Assistant workflow → Assistant earnings: records completion
- Assistant earnings → Payout settlement: funds settlement
- API routes → Passenger support: routes requests
server/src/index.js - API routes → Admin operations: routes requests
- API routes → Security monitoring: mounts security routes
- Authentication → Session management: maintains sessions
- Admin operations → Security monitoring: reviews incidents
- Booking lifecycle → Database client: reads and writes
server/src/controllers/bookingController.js - Payment → Database client: reads and writes
- Payout settlement → Database client: reads and writes
server/src/controllers/payoutController.js - Passenger support → Database client: reads and writes
server/src/controllers/supportController.js - Admin operations → Database client: reads and writes
server/src/controllers/adminController.js - Session management → Database client: stores sessions
server/src/services/sessionService.js - Database client → Supabase database: connects
server/src/config/db.js