How yokeshkumar19/bus-tracker works
RIT BusTrack is a bus-tracking and fleet-coordination app with a React client and an Android Capacitor location plugin. Riders can find buses and submit pickup requests; drivers can share trip locations and see student locations; administrators can manage buses and review requests. The sampled UI is concentrated in src/App.tsx, while Firestore holds operational records and Supabase supplies live bus-location updates. The README is empty, and excerpts are partial, so this map includes only workflows and connections supported by the tree and sampled code.
Main entry points: App.tsx BusTrack App · BusLocationService.java Background GPS Service · firestoreService.ts Firestore Operations · BusLocationPlugin.java Location Plugin
Components 14
Rider And Fleet Client
- BusTrack App
src/App.tsx - Map Display
src/App.tsx
Fleet Records
- Firestore Operations
src/firestoreService.ts - Firebase Setup
src/firebase.ts - Firestore
Location Tracking
- Location Client
src/services/supabaseLocation.ts - Supabase Location Store
Android Location
- Capacitor Bridge
android/app/src/main/java/com/rit/bustracker/MainActivity.java - Location Plugin
android/app/src/main/java/com/rit/bustracker/BusLocationPlugin.java - Background GPS Service
android/app/src/main/java/com/rit/bustracker/BusLocationService.java
Other components
- Riders
- Drivers
- Administrators
- Android GPS
Connections 16
- Riders → BusTrack App: find buses, request stops
- Drivers → BusTrack App: manage trips
- Administrators → BusTrack App: manage fleet, requests
- BusTrack App → Map Display: renders locations and routes
- BusTrack App → Firestore Operations: calls record operations
- Firestore Operations → Firebase Setup: uses database client
- Firebase Setup → Firestore: initializes
- Firestore Operations → Firestore: reads and writes records
- BusTrack App → Location Client: subscribes, fallback uploads
- Location Client → Supabase Location Store: reads and writes live locations
- BusTrack App → Capacitor Bridge: registers native plugin
- Capacitor Bridge → Location Plugin: bridges calls
- Location Plugin → Background GPS Service: starts and stops
- Android GPS → Background GPS Service: provides location updates
- Background GPS Service → Supabase Location Store: uploads bus locations
- Background GPS Service → Location Plugin: sends location events