How shantanu-patil-02/student-portal works
Devops pro is a student task-management application: students register or sign in, then create, browse, filter, inspect, update, and delete coursework tasks. The React application routes users through authentication and task views; its API service connects those views to an Express backend, which authenticates requests and persists users and tasks through Mongoose. The tree also shows a dashboard and health endpoint. Some page and service implementations were not sampled, so links beyond the observed task-list call and documented route structure are conservative.
Main entry points: App.jsx App routes · server.js Express server · api.js API service · authRoutes.js Auth routes
Components 17
Student interface
- App routes
src/App.jsx - Task views
src/pages - Dashboard
src/pages/Dashboard.jsx - Login and register
src/pages - API service
src/services/api.js
Authentication
- Auth context
src/context/AuthContext.jsx - Auth routes
backend/routes/authRoutes.js - Auth controller
backend/controllers/authController.js - JWT protection
backend/middleware/authMiddleware.js - User records
backend/models/User.js
Task management
- Task routes
backend/routes/taskRoutes.js - Task controller
backend/controllers/taskController.js - Task records
backend/models/Task.js
API and persistence
- Express server
backend/server.js - Database setup
backend/config/db.js
Other components
- Student
- MongoDB
Connections 22
- Student → App routes: uses
- App routes → Login and register: routes to
- App routes → Task views: routes to
- App routes → Dashboard: routes to
- Login and register → Auth context: uses auth
- Task views → API service: requests tasks
- Dashboard → API service: loads overview
- Auth context → API service: uses API
- API service → Express server: HTTP requests
- Express server → Auth routes: mounts
- Express server → Task routes: mounts
- Express server → Database setup: connects
- Database setup → MongoDB: connects
- Auth routes → Auth controller: dispatches
- Auth routes → JWT protection: protects profile
- JWT protection → User records: loads user
- Auth controller → User records: reads/writes
- Task routes → JWT protection: protects routes
- Task routes → Task controller: dispatches
- Task controller → Task records: reads/writes
- User records → MongoDB: persists
- Task records → MongoDB: persists