How zerappare/assignment-hub works
Assignment Hub consolidates student assignments from Google Classroom and Microsoft Teams into a dashboard for tracking, scheduling, and reminders, with a separate admin console. Students sign in through OAuth, view or sync assignments, manage personal status and schedule settings, and receive configured email reminders; administrators inspect users, errors, health, and business metrics. The graph preserves the documented product areas, but several route implementations were not excerpted, so their internal calls are not asserted.
Main entry points: App.jsx React app · db.js MySQL database · oauthSession.js OAuth session · useAssignments.js Assignment state
Components 29
Student experience
- React app
frontend/src/App.jsx - Login page
frontend/src/pages/LoginPage.jsx - Dashboard
frontend/src/pages/HomePage.jsx - Assignment views
frontend/src/pages - Assignment state
frontend/src/useAssignments.js - Task rules
frontend/src/tasks.js - Classroom stream
frontend/src/pages/StreamPage.jsx - Schedule views
frontend/src/pages/Schedule.jsx - Settings
frontend/src/pages/SettingsPage.jsx - Reminder settings
frontend/src/components/NotificationSettings.jsx
Application backend
- Express API
backend/server.js - Authentication routes
backend/src/routes/auth.js - OAuth session
backend/src/services/oauthSession.js - Account authorization
backend/src/middleware/auth.js - Assignment API
backend/src/routes/assignments.js - Classroom sync API
backend/src/routes/classroom.js - Schedule API
backend/src/routes/schedules.js - Notification API
backend/src/routes/notifications.js - Reminder sender
backend/src/services/notificationSender.js - MySQL database
backend/src/db.js - Analytics service
backend/src/services/analytics.js
External services
- Google and Microsoft
- Classroom and Teams
- SMTP email
Administration
- Admin console
frontend/src/pages/admin - Admin API
backend/src/routes/admin.js - Business analytics API
backend/src/routes/adminBusiness.js
Other components
- Student
- Administrator
Connections 35
- Student → React app: uses
README.md - React app → Login page: routes to
frontend/src/App.jsx - React app → Dashboard: routes to
frontend/src/App.jsx - React app → Assignment views: routes to
frontend/src/App.jsx - React app → Classroom stream: routes to
frontend/src/App.jsx - React app → Schedule views: routes to
frontend/src/App.jsx - React app → Settings: routes to
frontend/src/App.jsx - Login page → Express API: requests login
README.md - Login page → Google and Microsoft: authenticates with
README.md - Express API → Authentication routes: mounts
backend/server.js - Authentication routes → OAuth session: uses
backend/src/routes/auth.js - OAuth session → Google and Microsoft: exchanges credentials
- OAuth session → MySQL database: reads and writes
backend/src/services/oauthSession.js - Dashboard → Assignment state: loads state
frontend/src/pages/HomePage.jsx - Assignment views → Assignment state: shares state
frontend/src/pages/StreamPage.jsx - Assignment state → Task rules: normalizes tasks
frontend/src/useAssignments.js - Assignment state → Assignment API: requests assignments
README.md - Dashboard → Classroom sync API: requests sync
README.md - Classroom sync API → Classroom and Teams: syncs coursework
- Assignment API → MySQL database: reads and writes
- Schedule views → Schedule API: requests schedule
- Schedule API → MySQL database: reads and writes
backend/src/routes/schedules.js - Settings → Reminder settings: renders
frontend/src/pages/SettingsPage.jsx - Reminder settings → Notification API: saves preferences
README.md - Express API → Reminder sender: starts sender
backend/server.js - Reminder sender → MySQL database: reads reminders
backend/src/services/notificationSender.js - Reminder sender → SMTP email: sends email
backend/src/services/notificationSender.js - Administrator → Admin console: uses
README.md - React app → Admin console: routes to
frontend/src/App.jsx - Admin console → Admin API: requests admin data
- Admin console → Business analytics API: requests business metrics
frontend/src/pages/admin/AdminBusinessPage.jsx - Admin API → MySQL database: reads and writes
backend/src/routes/admin.js - Business analytics API → MySQL database: queries metrics
- OAuth session → Analytics service: tracks sign-in
backend/src/services/oauthSession.js - Notification API → MySQL database: stores preferences