How vagabond2003/smart-campus works
Smart Campus is a student-facing academic portal: users sign in or activate an account, then view academic and account information and perform student actions such as RIB registration, simulated bill payment, course discussion, and notification reading. Documented capabilities include schedules, attendance, results, admit cards, profile, and dashboard; many page implementations are listed in the tree but not sampled, so their internal interactions are not inferred. Edges below are limited to relationships explicit in the README or sampled source index/excerpts.
Main entry points: router.tsx Route access · hooks.ts Query and mutation hooks · auth.tsx Sign-in and activation · seed.ts Synthetic academic data
Components 24
Access and navigation
- Route access
src/app/router.tsx - Sign-in and activation
src/app/auth.tsx - Portal shell
src/shell/AppShell.tsx
Academic services
- Dashboard
src/pages/Dashboard.tsx - Courses and discussion
src/pages/course/CourseTab.tsx - Attendance
src/pages/AttendanceSummary.tsx - Results and CGPA
src/pages/Results.tsx - Class routine
src/pages/ClassRoutine.tsx - Exam schedule
src/pages/ExamRoutine.tsx - Admit card
src/pages/AdmitCard.tsx
Student actions
- Course registration
src/pages/RegularRegistration.tsx - RIB registration
src/pages/RibRegistration.tsx - Bills and payments
src/pages/Bills.tsx - Student profile
src/pages/Profile.tsx - Payment receipt
src/pages/Receipt.tsx - Notifications
src/shell/ShellMenus.tsx
Data and persistence
- Synthetic academic data
src/data/seed.ts - Student in-memory store
src/api/store.ts - Academic selectors
src/api/derive.ts - Query and mutation hooks
src/api/hooks.ts - Cloud persistence
src/api/cloud.ts - Firebase services
src/lib/firebase.ts - Academic clock
src/lib/clock.ts
Other components
- Student
Connections 40
- Student → Route access: opens pages
src/app/router.tsx - Route access → Sign-in and activation: guards routes
src/app/router.tsx - Route access → Portal shell: renders
src/app/router.tsx - Route access → Dashboard: routes to
src/app/router.tsx - Route access → Courses and discussion: routes to
src/app/router.tsx - Route access → Attendance: routes to
src/app/router.tsx - Route access → Results and CGPA: routes to
src/app/router.tsx - Route access → Class routine: routes to
src/app/router.tsx - Route access → Exam schedule: routes to
src/app/router.tsx - Route access → Admit card: routes to
src/app/router.tsx - Route access → Course registration: routes to
src/app/router.tsx - Route access → RIB registration: routes to
src/app/router.tsx - Route access → Bills and payments: routes to
src/app/router.tsx - Route access → Student profile: routes to
src/app/router.tsx - Route access → Payment receipt: routes to
src/app/router.tsx - Sign-in and activation → Cloud persistence: loads profile
src/app/auth.tsx - Sign-in and activation → Cloud persistence: creates profile
src/app/auth.tsx - Sign-in and activation → Firebase services: authenticates
src/app/auth.tsx - Query and mutation hooks → Synthetic academic data: reads shared data
src/api/hooks.ts - Query and mutation hooks → Student in-memory store: reads and mutates
src/api/hooks.ts - Query and mutation hooks → Academic selectors: computes views
src/api/hooks.ts - Query and mutation hooks → Cloud persistence: persists mutations
src/api/hooks.ts - Cloud persistence → Firebase services: uses services
src/api/cloud.ts - Student in-memory store → Synthetic academic data: initializes from
src/api/store.ts - Academic selectors → Synthetic academic data: derives from
src/api/derive.ts - Synthetic academic data → Academic clock: anchors dates
src/data/seed.ts - Academic selectors → Academic clock: uses calendar
src/api/derive.ts - Dashboard → Query and mutation hooks: loads data
src/pages/Dashboard.tsx - Courses and discussion → Query and mutation hooks: loads data
src/pages/course/CourseTab.tsx - Bills and payments → Query and mutation hooks: loads and mutates
src/pages/Bills.tsx - Results and CGPA → Query and mutation hooks: loads data
src/pages/Results.tsx - Portal shell → Notifications: includes menus
- RIB registration → Query and mutation hooks: registers
- Course registration → Query and mutation hooks: loads options
- Attendance → Query and mutation hooks: loads data
- Class routine → Query and mutation hooks: loads data
- Exam schedule → Query and mutation hooks: loads data
- Admit card → Query and mutation hooks: loads data
- Student profile → Query and mutation hooks: loads data
- Payment receipt → Bills and payments: shows payment