How arbind0011/task-manager-pro works
This is a task-management web application with a React client and an Express/Mongoose server. Users register or log in, then manage tasks in a protected dashboard: tasks can be created, listed, searched, filtered, sorted, updated, and deleted, with status and overdue statistics. The graph captures the client’s dashboard components and the server’s authentication and task handlers. Some client-to-server wiring and database connection details are not shown in excerpts, so those links are omitted or marked unverified.
Main entry points: Dashboard.jsx Dashboard · AuthContext.jsx Auth state · App.jsx App routing · taskService.js Task API service
Components 22
Client application
- App routing
client/src/App.jsx - Route guard
client/src/components/ProtectedRoute.jsx - HTTP client
client/src/services/api.js
Authentication
- Login page
client/src/pages/Login.jsx - Registration page
client/src/pages/Register.jsx - Auth state
client/src/context/AuthContext.jsx - Auth routes
server/routes/authRoutes.js - Auth handlers
server/controllers/authController.js - Token protection
server/middleware/authMiddleware.js
Task management
- Dashboard
client/src/pages/Dashboard.jsx - Task API service
client/src/services/taskService.js - Task form
client/src/components/TaskForm.jsx - Task controls
client/src/components/TaskControls.jsx - Task card
client/src/components/TaskCard.jsx - Task statistics
client/src/components/TaskStats.jsx - Task routes
server/routes/taskRoutes.js - Task handlers
server/controllers/taskController.js
Server and persistence
- Express server
server/server.js - User model
server/models/User.js - Task model
server/models/Task.js - Database connector
server/config/db.js
Other components
- User
Connections 29
- User → App routing: uses
client/src/App.jsx - App routing → Auth state: provides auth
client/src/App.jsx - App routing → Route guard: guards dashboard
client/src/App.jsx - App routing → Login page: routes to
client/src/App.jsx - App routing → Registration page: routes to
client/src/App.jsx - App routing → Dashboard: routes to
client/src/App.jsx - Route guard → Auth state: checks auth
client/src/components/ProtectedRoute.jsx - Login page → Auth state: uses
client/src/pages/Login.jsx - Registration page → Auth state: uses
client/src/pages/Register.jsx - Auth state → HTTP client: sends auth requests
client/src/context/AuthContext.jsx - Dashboard → Auth state: reads auth state
client/src/pages/Dashboard.jsx - Dashboard → Task API service: loads and changes tasks
client/src/pages/Dashboard.jsx - Dashboard → Task form: renders
client/src/pages/Dashboard.jsx - Dashboard → Task controls: renders
client/src/pages/Dashboard.jsx - Dashboard → Task card: renders
client/src/pages/Dashboard.jsx - Dashboard → Task statistics: renders
client/src/pages/Dashboard.jsx - Task form → Task API service: creates tasks
client/src/components/TaskForm.jsx - Task API service → HTTP client: sends task requests
client/src/services/taskService.js - Express server → Database connector: connects database
server/server.js - Express server → Auth routes: mounts auth routes
server/server.js - Express server → Task routes: mounts task routes
server/server.js - Auth routes → Auth handlers: dispatches
server/routes/authRoutes.js - Task routes → Token protection: protects routes
server/routes/taskRoutes.js - Task routes → Task handlers: dispatches
server/routes/taskRoutes.js - Auth handlers → User model: reads and creates users
server/controllers/authController.js - Token protection → User model: loads user
server/middleware/authMiddleware.js - Task handlers → Task model: reads and writes tasks
server/controllers/taskController.js - Task API service → Task routes: calls task endpoints
- Auth state → Auth routes: calls auth endpoints