How kans23-cloud/task_management_website works
This is a MERN task-management application. Users register or log in, reach a protected dashboard, and create, view, edit, and delete tasks with status and priority; task changes are also broadcast to connected clients. The graph separates the React experience, HTTP/API handling, authentication and persistence, and real-time updates. Edges are limited to relationships shown in excerpts or documented in the README; unsampled implementation details are not inferred.
Main entry points: App.jsx Route application · server.js Express server · api.js API client · Dashboard.jsx Dashboard
Components 22
React client
- Route application
client/src/App.jsx - Protected route
client/src/components/ProtectedRoute.jsx - Login page
client/src/pages/Login.jsx - Register page
client/src/pages/Register.jsx - Dashboard
client/src/pages/Dashboard.jsx - Navigation bar
client/src/components/Navbar.jsx - Task form
client/src/components/TaskForm.jsx - Task list
client/src/components/TaskList.jsx - API client
client/src/services/api.js
HTTP API
- Express server
server/server.js - Auth routes
server/routes/authRoutes.js - Task routes
server/routes/taskRoutes.js
Auth and persistence
- Auth controller
server/controllers/authController.js - Task controller
server/controllers/taskController.js - JWT middleware
server/middleware/authMiddleware.js - User model
server/models/User.js - Task model
server/models/Task.js - Database connector
server/config/db.js
Real-time updates
- Socket client
client/src/socket.js - Socket.IO hub
server/server.js
Other components
- User
- MongoDB
Connections 26
- User → Route application: uses
README.md - Route application → Login page: routes to
client/src/App.jsx - Route application → Register page: routes to
client/src/App.jsx - Route application → Protected route: guards dashboard
client/src/App.jsx - Route application → Dashboard: routes to
client/src/App.jsx - Login page → API client: calls
client/src/pages/Login.jsx - Register page → API client: calls
client/src/pages/Register.jsx - Dashboard → Navigation bar: renders
client/src/pages/Dashboard.jsx - Dashboard → Task form: renders
client/src/pages/Dashboard.jsx - Dashboard → Task list: renders
client/src/pages/Dashboard.jsx - Task form → API client: creates or updates
client/src/components/TaskForm.jsx - Task list → API client: loads or deletes
client/src/components/TaskList.jsx - API client → Express server: sends API requests
README.md - Express server → Database connector: connects
server/server.js - Express server → Auth routes: mounts
server/server.js - Express server → Task routes: mounts
server/server.js - Auth routes → Auth controller: dispatches
server/routes/authRoutes.js - Task routes → JWT middleware: protects routes
server/routes/taskRoutes.js - Task routes → Task controller: dispatches
server/routes/taskRoutes.js - Auth controller → User model: reads or creates
server/controllers/authController.js - Task controller → Task model: manages tasks
server/controllers/taskController.js - Database connector → MongoDB: connects
server/config/db.js - Express server → Socket.IO hub: initializes
server/server.js - Task controller → Socket.IO hub: emits task events
server/controllers/taskController.js - Task list → Socket client: subscribes
client/src/components/TaskList.jsx - Socket client → Socket.IO hub: receives broadcasts
README.md