Smart mess management for IIT Kanpur hostels. A Flutter (Android) app that replaces the paper sign-up sheet and spreadsheet billing in a hostel mess: students see the menu, book chicken dinners and order paid extras, and staff verify everything at the counter by scanning a QR pass.
Built for Hall 11, IIT Kanpur, and designed so every other hall can be onboarded without schema changes.
Students
- Menu: published monthly menu with a date strip and breakfast/lunch/dinner cards. Chicken days and special dinners are badged.
- Chicken booking: free headcount booking for chicken dinners (Wed/Sun by default), open until a configurable cutoff.
- Extras: order paid extra items per meal before the cutoff, with per-item daily caps.
- My Pass: QR pass that works fully offline.
- Activity and bills: running monthly total of orders, so the bill is never a surprise.
- Feedback: rate meals (1-5 stars) and file complaints or suggestions with status tracking.
Staff and admins
- Scanner: scans student passes at the counter, shows the chicken/extras entitlement and rejects duplicate scans. Works offline and syncs later.
- Prep lists and headcounts for each meal.
- Menu system: reusable weekly template → generated monthly menu → per-day overrides.
- Members: approve new signups, disable accounts, promote students to staff.
- Billing: monthly per-student tally with CSV export (no payment gateway).
- Feedback management, announcements and hostel settings (cutoffs, meal timings, chicken days).
Super admin: create hostels and assign hostel admins.
| Role | Scope | Can do |
|---|---|---|
student |
own hostel | Menu, bookings, orders, pass, bills, feedback |
staff |
own hostel | Student features + scanner, headcounts and prep lists |
admin |
own hostel | Everything for that hostel: menus, catalog, members, billing, feedback, settings |
super_admin |
global | Create hostels, assign admins, read-only view of any hostel |
New signups pick a hostel and stay pending until an admin approves them.
- Flutter (Dart SDK ^3.9) with Riverpod for state
- Firebase: Auth, Cloud Firestore (offline persistence on), Cloud Messaging
- Runs on Firebase's free Spark plan with no Cloud Functions. Authorization is enforced entirely by Firestore security rules.
qr_flutter+mobile_scannerfor passes and scanning,flutter_local_notifications
Feature-first layout. Each feature has models, a repository and Riverpod providers. All per-hostel
data lives under hostels/{hostelId}/..., isolated by security rules.
lib/
core/ theme, router, constants, shared widgets and utils
features/
auth/ login, signup, profile completion, approval gate
menu/ templates, monthly menus, day overrides, student menu
chicken/ chicken-dinner booking
extras/ catalog, ordering, prep lists, activity
pass/ student QR pass
scan/ scanner, scan decision logic, scan logs
billing/ monthly aggregation and CSV export
feedback/ meal ratings, complaints and suggestions
members/ member approval and roles
hostel/ hostel settings
superadmin/ hostel registry
firestore.rules security rules
docs/ OVERHAUL_PLAN.md: full spec, data model and phase plan
flutter pub get
flutter run # Android device or emulator
flutter testThe app targets the mess-go Firebase project (lib/firebase_options.dart). To use your own
project, run flutterfire configure, then deploy the rules and indexes:
firebase deploy --only firestore:rules,firestore:indexesPhases 0-6 of docs/OVERHAUL_PLAN.md are complete: foundations, tenancy
and roles, menus, chicken and extras, scanning, billing, and feedback with the admin dashboard.
Phase 7 (notifications) and Phase 8 (multi-hostel hardening) are next.