How oscarv2005/student-result-management works
ReportManager is a role-based exam-results application: students register or log in to view their published results, teachers add marks and search results, and administrators manage results and accounts. The React app routes users by role and sends authenticated requests through a shared API client to the Express backend; the backend applies role checks and persists results in MongoDB. Authentication and user management are implemented in the server alongside result routes. Backend excerpts are partial, so unsampled route details are not expanded.
Main entry points: App.jsx Role-based routes · api.js API client and auth state · server.js Auth, results, user routes · main.jsx App bootstrap
Components 13
React application
- App bootstrap
frontend/src/main.jsx - Role-based routes
frontend/src/App.jsx - Login and registration
frontend/src/login.jsx - Role navigation
frontend/src/nav.jsx - API client and auth state
frontend/src/api.js - Result viewing and search
frontend/src/report.jsx - Marks entry
frontend/src/result.jsx - Admin management
frontend/src/admin.jsx
Backend API
- Server entry adapter
api/index.js - Auth, results, user routes
backend/server.js
Persistence
- Result schema
backend/models/Result.js - MongoDB
Other components
- Student, teacher, admin
Connections 17
- Student, teacher, admin → App bootstrap: uses
frontend/src/main.jsx - App bootstrap → Role-based routes: renders
frontend/src/main.jsx - Role-based routes → Login and registration: routes to
frontend/src/App.jsx - Role-based routes → Role navigation: renders
frontend/src/App.jsx - Role-based routes → Result viewing and search: routes to
frontend/src/App.jsx - Role-based routes → Marks entry: routes to
frontend/src/App.jsx - Role-based routes → Admin management: routes to
frontend/src/App.jsx - Login and registration → API client and auth state: requests auth
frontend/src/login.jsx - Role-based routes → API client and auth state: checks session
frontend/src/App.jsx - Role navigation → API client and auth state: uses auth
frontend/src/nav.jsx - Result viewing and search → API client and auth state: requests results
frontend/src/report.jsx - Marks entry → API client and auth state: requests students and results
frontend/src/result.jsx - Admin management → API client and auth state: requests admin data
frontend/src/admin.jsx - API client and auth state → Auth, results, user routes: sends HTTP requests
frontend/src/api.js - Server entry adapter → Auth, results, user routes: exports
api/index.js - Auth, results, user routes → Result schema: queries and writes
backend/server.js - Auth, results, user routes → MongoDB: connects and persists
backend/server.js