How darkplaying/final-year-project works
Edu Online is a role-based education management platform. Users enter through the public landing and login flows, then reach protected Admin, Teacher, or Student dashboards; those dashboards provide user/workspace administration, teaching workflows, and student learning/submission features. Firebase is the documented backend for authentication, data, presence, and messaging, with Google Drive described as file storage and Supabase functions present for AI test generation and document parsing. Dashboard implementation details and several integrations were not sampled, so some capability links are documented rather than source-verified.
Main entry points: App.tsx Route and access shell · AdminDashboard.tsx Admin dashboard · TeacherDashboard.tsx Teacher dashboard · usePresence.ts Live presence
Components 20
Entry and access
- Landing page
src/pages/Index.tsx - Login
src/pages/Login.tsx - Route and access shell
src/App.tsx
Role dashboards
- Admin dashboard
src/pages/AdminDashboard.tsx - Teacher dashboard
src/pages/TeacherDashboard.tsx - Student dashboard
src/pages/StudentDashboard.tsx - Attendance management
src/components/AdminAttendanceManager.tsx - CSV report generation
src/components/AICsvGenerator.tsx - AI test generation UI
src/components/AITestGenerator.tsx
Platform services
- Live presence
src/hooks/usePresence.ts - Auth utilities
src/lib/auth.ts - Firebase auth state
src/hooks/useAuthState.ts - Firebase client
src/lib/firebase.ts - Assignment and exam storage
src/lib/storage.ts
External integrations
- Test generation function
supabase/functions/generate-test/index.ts - Document parsing function
supabase/functions/parse-document/index.ts - Google Drive
- Firebase services
- Notification delivery
notification-service/index.js
Other components
- Visitor / user
Connections 23
- Visitor / user → Landing page: opens
src/pages/Index.tsx - Landing page → Login: navigates to
src/pages/Index.tsx - Login → Route and access shell: enters routes
src/App.tsx - Route and access shell → Landing page: routes to
src/App.tsx - Route and access shell → Login: routes to
src/App.tsx - Route and access shell → Admin dashboard: role-routes
src/App.tsx - Route and access shell → Teacher dashboard: role-routes
src/App.tsx - Route and access shell → Student dashboard: role-routes
src/App.tsx - Admin dashboard → Attendance management: renders
src/pages/AdminDashboard.tsx - Admin dashboard → CSV report generation: uses
src/pages/AdminDashboard.tsx - Admin dashboard → Live presence: reads presence
src/pages/AdminDashboard.tsx - Teacher dashboard → AI test generation UI: uses
src/pages/TeacherDashboard.tsx - Teacher dashboard → Live presence: reads presence
src/pages/TeacherDashboard.tsx - Student dashboard → Live presence: reads presence
src/pages/StudentDashboard.tsx - Attendance management → Firebase client: reads / writes
src/components/AdminAttendanceManager.tsx - Live presence → Firebase client: updates presence
src/hooks/usePresence.ts - Firebase auth state → Firebase client: observes auth
src/hooks/useAuthState.ts - AI test generation UI → Test generation function: requests generation
- Test generation function → Document parsing function: may use parsing
- Teacher dashboard → Google Drive: stores course files
- Student dashboard → Google Drive: submits files
- Firebase client → Firebase services: connects
src/lib/firebase.ts - Firebase services → Notification delivery: delivers alerts