How daygelo/mcmap works
McMap is a Flutter campus social and discovery app backed by Supabase, with an offline demo mode. Students authenticate with a McGill email, complete onboarding, then explore campus, find organizations and events, and manage follows and RSVPs. The README documents these capabilities and persistence; most Dart implementation files were not sampled, so undocumented internal call paths are omitted. Organizer verification is shown directly in source, including its email-provider integration.
Main entry points: main.dart App and AuthGate · onboarding_page.dart Profile onboarding · map_page.dart Campus map · club_discovery.dart Club discovery
Components 26
App entry and identity
- App and AuthGate
lib/main.dart - McGill sign-in
lib/pages/login_page.dart - Profile onboarding
lib/pages/onboarding_page.dart - Academic details
lib/pages/onboarding/academic_info_page.dart - Interests
lib/pages/onboarding/interests_page.dart - Student profile
lib/pages/student/student_profile.dart
Campus discovery
- Campus map
lib/pages/map_page.dart - Buildings and shapes
lib/data/campus_buildings.dart - Map configuration
lib/data/campus_map.dart - Sight-line logic
lib/data/sight_line.dart
Organizations and events
- Follow picker
lib/pages/club_picker_page.dart - Club discovery
lib/pages/student/club_discovery.dart - Club catalog
lib/data/club_catalog_data.dart - Event browsing
lib/pages/all_events_page.dart - Event details
lib/pages/event_details_page.dart - Event creation
lib/pages/create_event_page.dart - RSVP decisions
lib/services/local_rsvps.dart - Event updates inbox
lib/services/notification_center.dart
Backend services
- Backend abstraction
lib/backend/mcmap_backend.dart - Supabase backend
lib/backend/supabase_backend.dart - Supabase data
supabase/migrations - Organizer verification
supabase/functions/organizer-verification/handler.ts - Verification endpoint
supabase/functions/organizer-verification/index.ts - Verification email sender
supabase/functions/organizer-verification/resend.ts
Other components
- Student
- Resend email service
Connections 27
- Student → McGill sign-in: signs in
README.md - McGill sign-in → App and AuthGate: authenticates into
README.md - App and AuthGate → Profile onboarding: routes new accounts
README.md - App and AuthGate → Student profile: routes completed accounts
README.md - Profile onboarding → Academic details: collects
README.md - Profile onboarding → Interests: collects
README.md - Profile onboarding → Follow picker: offers follows
README.md - Student → Campus map: explores campus
README.md - Campus map → Buildings and shapes: shows building details
README.md - Campus map → Map configuration: uses map settings
README.md - Campus map → Sight-line logic: checks visibility
README.md - Student → Club discovery: discovers clubs
README.md - Club discovery → Club catalog: searches catalog
README.md - Student → Event browsing: browses events
README.md - Event browsing → Event details: opens details
- Student → Event creation: creates events
README.md - Event details → RSVP decisions: shares RSVP decisions
README.md - Club discovery → RSVP decisions: shares RSVP decisions
README.md - Event updates inbox → Event browsing: lists event updates
README.md - App and AuthGate → Backend abstraction: uses backend
- Backend abstraction → Supabase backend: delegates
- Supabase backend → Supabase data: persists app data
README.md - Verification endpoint → Organizer verification: routes requests
supabase/functions/organizer-verification/index.ts - Verification endpoint → Verification email sender: configures sender
supabase/functions/organizer-verification/index.ts - Organizer verification → Supabase data: calls verification RPCs
supabase/functions/organizer-verification/handler.ts - Organizer verification → Verification email sender: sends code
supabase/functions/organizer-verification/handler.ts - Verification email sender → Resend email service: delivers email
supabase/functions/organizer-verification/resend.ts