How yashkacholiya/bus-pass-management works
ICEM Smart Bus Pass is a Flutter/Firebase system for applying for, paying for, approving, and verifying college bus passes. The student path proceeds from sign-in and application through payment and administrator review to an active QR pass; staff can then verify that pass. The README documents the admin console, fleet management, reports, notifications, and personalization. Source excerpts are limited to platform runners, so most Flutter relationships below reflect README documentation rather than inspected implementation; the Cloud Functions client wiring is explicitly described as planned.
Main entry points: views Student dashboard and history · main.dart Flutter app entry · student_payment_screen.dart Payment and receipts · index.js Payment verification functions
Components 22
Identity and app access
- Flutter app entry
lib/main.dart - Sign-in and registration
lib/features/auth/presentation/views - Role-gated routes
lib/config/routes/app_routes.dart - Appearance preferences
lib/config/theme/app_theme.dart
Pass lifecycle
- Student dashboard and history
lib/features/student/presentation/views - Pass application
lib/features/bus_pass/presentation/controllers/bus_pass_controller.dart - Payment and receipts
lib/features/payment/presentation/views/student_payment_screen.dart - Pass detail and QR
lib/features/bus_pass/presentation/views/qr_verification_screen.dart
Transport operations
- Admin console
lib/features/admin/presentation/views/admin_dashboard.dart - Application approval
lib/features/admin/data/repositories/admin_repository.dart - Staff dashboard and scan
lib/features/admin/presentation/views/staff_dashboard.dart - Routes, buses, drivers
lib/features/admin/presentation/views/admin_routes_tab.dart - Reports and exports
lib/features/admin/presentation/views/report_exporter.dart - Targeted notifications
lib/features/notification/data/repositories/notification_repository.dart
Services and security
- Payment verification functions
functions/index.js - Firebase services
lib/services/firebase/firebase_service.dart - Firestore
- Firestore security rules
firestore.rules
Other components
- Student
- Staff / conductor
- Transport admin
- Razorpay Checkout
Connections 26
- Student → Flutter app entry: opens
README.md - Staff / conductor → Flutter app entry: opens
README.md - Transport admin → Flutter app entry: opens
README.md - Flutter app entry → Sign-in and registration: starts
README.md - Sign-in and registration → Role-gated routes: gates access
README.md - Student → Student dashboard and history: uses
README.md - Student dashboard and history → Pass application: applies or renews
README.md - Pass application → Firestore: records application
README.md - Student dashboard and history → Payment and receipts: pays
README.md - Payment and receipts → Razorpay Checkout: opens checkout
README.md - Payment and receipts → Firestore: records payment
README.md - Payment verification functions → Firestore: verifies and updates
README.md - Payment verification functions → Razorpay Checkout: handles webhook
README.md - Transport admin → Admin console: reviews
README.md - Admin console → Application approval: requests approval
README.md - Application approval → Firestore: checks and issues pass
README.md - Firestore → Student dashboard and history: streams pass state
README.md - Staff / conductor → Staff dashboard and scan: scans QR
README.md - Staff dashboard and scan → Firestore: looks up pass
README.md - Transport admin → Routes, buses, drivers: manages fleet
README.md - Transport admin → Reports and exports: exports reports
README.md - Transport admin → Targeted notifications: composes alerts
README.md - Student → Appearance preferences: customizes appearance
README.md - Appearance preferences → Firestore: syncs preferences
README.md - Firebase services → Firestore: provides access
- Firestore security rules → Firestore: restricts writes
README.md