How puloksingha/managex works
ManageX is a college assignment-management platform. Users register and verify email, then authenticate into role-specific student, department/teacher, or admin workflows. Students browse assignments and submit files; department staff create assignments, review submissions, and grade them. Admins manage accounts and academic structures, while all roles can manage profiles. The React client calls the Express API, whose controllers implement domain workflows over MongoDB and file storage. README capabilities are included where source excerpts were unavailable; those links are documented rather than inferred from unsampled code.
Main entry points: app.js Express API · Assignment.js Domain records · App.jsx Route selection · storage.js File storage
Components 26
Web client
- Role dashboards
client/src/pages/StudentDashboard.jsx - Department dashboard
client/src/pages/TeacherDashboard.jsx - Admin dashboard
client/src/pages/AdminDashboard.jsx - Auth and profile pages
client/src/pages/LoginPage.jsx - Route selection
client/src/App.jsx - API client
client/src/api/client.js
Identity and profiles
- Session state
client/src/context/AuthContext.jsx - Auth endpoints
server/src/routes/authRoutes.js - Auth workflows
server/src/controllers/authController.js - Profile management
server/src/controllers/profileController.js
Assignments and grading
- Student assignment view
client/src/pages/StudentDashboard.jsx - Assignment and grading UI
client/src/pages/TeacherDashboard.jsx - Assignment endpoints
server/src/routes/assignmentRoutes.js - Assignment workflows
server/src/controllers/assignmentController.js - Submission endpoints
server/src/routes/submissionRoutes.js - Submission and grading
server/src/controllers/submissionController.js
Administration
- Admin endpoints
server/src/routes/adminRoutes.js - Admin workflows
server/src/controllers/adminController.js - Academic lookup data
server/src/routes/metaRoutes.js
API and persistence
- Domain records
server/src/models/Assignment.js - MongoDB
- File storage
server/src/utils/storage.js - Local uploads
- Cloudinary
- Express API
server/src/app.js
Other components
- User
Connections 35
- User → Route selection: opens app
client/src/App.jsx - Route selection → Auth and profile pages: routes auth
client/src/App.jsx - Route selection → Role dashboards: routes roles
client/src/App.jsx - Route selection → Department dashboard: routes department
client/src/App.jsx - Route selection → Admin dashboard: routes admin
client/src/App.jsx - Auth and profile pages → Session state: uses session
- Role dashboards → API client: requests data
- Department dashboard → API client: requests data
client/src/pages/TeacherDashboard.jsx - Admin dashboard → API client: requests data
client/src/pages/AdminDashboard.jsx - Session state → API client: calls API
client/src/context/AuthContext.jsx - API client → Express API: HTTP requests
README.md - Express API → Auth endpoints: mounts routes
server/src/app.js - Express API → Assignment endpoints: mounts routes
server/src/app.js - Express API → Submission endpoints: mounts routes
server/src/app.js - Express API → Admin endpoints: mounts routes
server/src/app.js - Express API → Academic lookup data: mounts routes
server/src/app.js - Express API → Profile management: routes profiles
- Auth endpoints → Auth workflows: dispatches to
server/src/routes/authRoutes.js - Auth workflows → Domain records: reads and writes
server/src/controllers/authController.js - Auth workflows → MongoDB: persists sessions
- Auth workflows → User: sends verification mail
server/src/controllers/authController.js - Assignment endpoints → Assignment workflows: dispatches to
server/src/routes/assignmentRoutes.js - Assignment workflows → Domain records: reads and writes
server/src/controllers/assignmentController.js - Assignment workflows → File storage: uploads attachments
server/src/controllers/assignmentController.js - Submission endpoints → Submission and grading: dispatches to
server/src/routes/submissionRoutes.js - Submission and grading → Domain records: reads and writes
server/src/controllers/submissionController.js - Submission and grading → File storage: uploads submissions
server/src/controllers/submissionController.js - Admin endpoints → Admin workflows: dispatches to
server/src/routes/adminRoutes.js - Admin workflows → Domain records: manages records
server/src/controllers/adminController.js - Academic lookup data → Domain records: reads lookups
server/src/routes/metaRoutes.js - Profile management → Domain records: updates profile
- Profile management → File storage: uploads avatar
server/src/controllers/profileController.js - Domain records → MongoDB: stores records
- File storage → Local uploads: writes files
server/src/utils/storage.js - File storage → Cloudinary: uploads optionally
server/src/utils/storage.js