How nooparnjang/bodinclassmap works
Classmap is a classroom-seat reservation app. A student signs in with Google, the app tracks the authenticated session, and the dashboard lets an eligible user reserve or cancel a table while viewing classroom reservations. Dashboard-to-Firestore calls and authentication wiring are visible in the excerpts; other UI details are summarized at the page level. The README describes only a starter template, so product capabilities are inferred from the sampled application code rather than documented README features.
Main entry points: App.tsx App routes · firebase.ts Firebase initialization · DashboardPage.tsx Reservation dashboard · auth.ts Google sign-in
Components 13
Application flow
- React entry
src/main.tsx - App routes
src/App.tsx - Login page
src/pages/Login/LoginPage.tsx - Not-found page
src/pages/NotFound/NotFoundPage.tsx
Identity and session
- Auth provider
src/contexts/AuthContext.tsx - Auth hook
src/hooks/useAuthHook.ts - Google sign-in
src/firebase/auth.ts
Seat reservations
- Reservation dashboard
src/pages/Dashboard/DashboardPage.tsx - Reservation operations
src/firebase/firestore.ts
Firebase services
- Firebase initialization
src/firebase/firebase.ts
Other components
- Student
- Firebase Auth
- Cloud Firestore
Connections 19
- Student → React entry: opens app
src/main.tsx - React entry → App routes: renders
src/main.tsx - App routes → Auth provider: provides session
src/App.tsx - App routes → Login page: routes to
src/App.tsx - App routes → Reservation dashboard: routes to
src/App.tsx - App routes → Not-found page: routes to
src/App.tsx - Login page → Auth hook: reads session
src/pages/Login/LoginPage.tsx - Login page → Google sign-in: starts sign-in
src/pages/Login/LoginPage.tsx - Auth hook → Auth provider: reads context
src/hooks/useAuthHook.ts - Auth provider → Firebase initialization: observes auth
src/contexts/AuthContext.tsx - Google sign-in → Firebase initialization: uses auth client
src/firebase/auth.ts - Firebase initialization → Firebase Auth: initializes client
src/firebase/firebase.ts - Google sign-in → Firebase Auth: signs in or out
src/firebase/auth.ts - Reservation dashboard → Auth hook: reads session
src/pages/Dashboard/DashboardPage.tsx - Reservation dashboard → Google sign-in: signs out
src/pages/Dashboard/DashboardPage.tsx - Reservation dashboard → Reservation operations: loads and changes bookings
src/pages/Dashboard/DashboardPage.tsx - Reservation operations → Firebase initialization: uses database client
src/firebase/firestore.ts - Firebase initialization → Cloud Firestore: initializes client
src/firebase/firebase.ts - Reservation operations → Cloud Firestore: reads and writes
src/firebase/firestore.ts