How divya94076/edumeet works
EduMeet is a role-based academic appointment scheduler. Students browse approved teachers and request available time slots; teachers manage availability and appointment decisions, while administrators approve accounts and monitor users and appointments. The sampled booking controller checks teacher approval and conflicting bookings, persists appointments, and attempts email notification. The graph also preserves documented ratings and recommendations, though their implementation was not sampled. Links between UI pages and the API are supported by the source index; unsampled route details are represented only where documented or wired in sampled files.
Main entry points: api.js API client · server.js HTTP server and routing · studentController.js Student booking logic · User.js User records
Components 29
Web client
- Role dashboards
frontend/src/App.jsx - Browse and book
frontend/src/pages/student/BookAppointment.jsx - My appointments
frontend/src/pages/student/MyAppointments.jsx - Teacher scheduling
frontend/src/pages/teacher/SetAvailability.jsx - Appointment management
frontend/src/pages/teacher/ManageAppointments.jsx - Admin operations
frontend/src/pages/admin/AllAppointments.jsx - Registration and login
frontend/src/pages/Register.jsx - Session state
frontend/src/context/AuthContext.jsx - API client
frontend/src/utils/api.js
API and access
- HTTP server and routing
backend/server.js - Authentication routes
backend/routes/authRoutes.js - Teacher routes
backend/routes/teacherRoutes.js - Student routes
backend/routes/studentRoutes.js - Admin routes
backend/routes/adminRoutes.js - JWT and role checks
backend/middleware/auth.js
Scheduling and roles
- Student booking logic
backend/controllers/studentController.js - Teacher scheduling logic
backend/controllers/teacherController.js - Approval and administration
backend/controllers/adminController.js - Account operations
backend/controllers/authController.js - Profile operations
backend/controllers/profileController.js
Persistence and integrations
- User records
backend/models/User.js - Appointment records
backend/models/Appointment.js - Availability records
backend/models/Availability.js - Email notifications
backend/utils/email.js
Other components
- Student
- Teacher
- Administrator
- MongoDB
- Email service
Connections 41
- Student → Browse and book: browses and books
- Teacher → Teacher scheduling: sets availability
- Teacher → Appointment management: manages requests
- Administrator → Admin operations: manages platform
- Browse and book → API client: requests API
frontend/src/pages/student/BookAppointment.jsx - My appointments → API client: requests API
frontend/src/pages/student/MyAppointments.jsx - Teacher scheduling → API client: requests API
frontend/src/pages/teacher/SetAvailability.jsx - Appointment management → API client: requests API
frontend/src/pages/teacher/ManageAppointments.jsx - Admin operations → API client: requests API
frontend/src/pages/admin/AllAppointments.jsx - Registration and login → API client: requests API
frontend/src/pages/Register.jsx - Role dashboards → Session state: provides session
frontend/src/App.jsx - Role dashboards → Browse and book: routes to
frontend/src/App.jsx - Role dashboards → Teacher scheduling: routes to
frontend/src/App.jsx - Role dashboards → Admin operations: routes to
frontend/src/App.jsx - API client → HTTP server and routing: sends requests
- HTTP server and routing → Authentication routes: mounts routes
backend/server.js - HTTP server and routing → Student routes: mounts routes
backend/server.js - HTTP server and routing → Teacher routes: mounts routes
backend/server.js - HTTP server and routing → Admin routes: mounts routes
backend/server.js - Authentication routes → JWT and role checks: protects profile
backend/routes/authRoutes.js - Teacher routes → JWT and role checks: checks roles
backend/routes/teacherRoutes.js - Student routes → Student booking logic: dispatches requests
backend/routes/studentRoutes.js - Teacher routes → Teacher scheduling logic: dispatches requests
backend/routes/teacherRoutes.js - Admin routes → Approval and administration: dispatches requests
backend/routes/adminRoutes.js - Authentication routes → Account operations: delegates profile update
backend/routes/authRoutes.js - Student booking logic → User records: reads teachers
backend/controllers/studentController.js - Student booking logic → Availability records: reads availability
backend/controllers/studentController.js - Student booking logic → Appointment records: creates and checks
backend/controllers/studentController.js - Student booking logic → Email notifications: notifies teacher
backend/controllers/studentController.js - Teacher scheduling logic → Availability records: writes slots
backend/controllers/teacherController.js - Teacher scheduling logic → Appointment records: updates bookings
backend/controllers/teacherController.js - Teacher scheduling logic → User records: reads profile
backend/controllers/teacherController.js - Approval and administration → User records: manages accounts
backend/controllers/adminController.js - Approval and administration → Appointment records: monitors bookings
backend/controllers/adminController.js - Account operations → User records: updates accounts
backend/controllers/authController.js - Profile operations → User records: updates profile
backend/controllers/profileController.js - HTTP server and routing → MongoDB: connects database
backend/server.js - Email notifications → Email service: sends messages
backend/utils/email.js - Student → My appointments: reviews bookings
- Administrator → Registration and login: registers
- Student → Browse and book: rates and gets suggestions