# ramakrish21/project-management-tool architecture

> Architecture diagram of the GitHub repository ramakrish21/project-management-tool, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ramakrish21/project-management-tool
- Repository: https://github.com/ramakrish21/project-management-tool

## Overview

This is a MERN project-management application for authentication, project and task management, team collaboration, and dashboard summaries. The main workflow is user login or registration, protected navigation to project/task views, API requests to Express controllers, and persistence in MongoDB. Task views also support status-based drag-and-drop. The graph covers documented team and dashboard capabilities, but their implementation links are limited where source was not sampled; unsampled connections are not asserted.

Main entry points: [`frontend/src/utils/api.js`](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/utils/api.js) (API client), [`frontend/src/routes/AppRoutes.jsx`](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/routes/AppRoutes.jsx) (App routing), [`backend/server.js`](https://github.com/ramakrish21/project-management-tool/blob/main/backend/server.js) (HTTP server), [`frontend/src/components/Dashboard/Dashboard.jsx`](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/Dashboard.jsx) (Dashboard summaries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React application"]
  node_routes["App routing<br/>[AppRoutes.jsx]"]
  node_authui["Login and register<br/>[Login.jsx]"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
  node_protected["Protected routes<br/>[ProtectedRoute.jsx]"]
  node_dashboardlayout["Dashboard layout"]
  node_projectpage["Projects<br/>[Projects.jsx]"]
  node_taskpage["Task board<br/>[Tasks.jsx]"]
  node_taskform["Task form"]
  node_taskitem["Task item<br/>[TaskItem.jsx]"]
  node_profile["Profile and settings<br/>[Profile.jsx]"]
  node_api["API client<br/>[api.js]"]
end

subgraph group_server["Express API"]
  node_server["HTTP server<br/>[server.js]"]
  node_authroutes["Authentication routes<br/>[authRoutes.js]"]
  node_projectroutes["Project routes<br/>[projectRoutes.js]"]
  node_taskroutes["Task routes<br/>[taskRoutes.js]"]
  node_authcontroller["Auth controller<br/>[authController.js]"]
  node_projectcontroller["Project controller"]
  node_taskcontroller["Task controller<br/>[tasksController.js]"]
  node_middleware["Auth middleware<br/>[authMiddleware.js]"]
end

subgraph group_data["MongoDB models"]
  node_userdb[("User model<br/>[User.js]")]
  node_projectdb[("Project model<br/>[projectModel.js]")]
  node_taskdb[("Task model<br/>[TaskModel.js]")]
  node_dbconfig[("Database connection<br/>[db.js]")]
end

subgraph group_insights["Dashboard and collaboration"]
  node_teams["Team management<br/>[Teams.jsx]"]
  node_teamcomponents["Team components<br/>[TeamList.jsx]"]
  node_dashboard["Dashboard summaries<br/>[Dashboard.jsx]"]
  node_summary["Project summary<br/>[ProjectSummary.jsx]"]
  node_taskstatus["Task status summary<br/>[TaskStatus.jsx]"]
  node_activity["Recent activities"]
  node_teamoverview["Team overview<br/>[TeamOverview.jsx]"]
end

node_user(("User"))

node_user -->|"signs in"| node_authui
node_routes -->|"provides state"| node_authstate
node_routes -->|"routes to"| node_authui
node_routes -->|"guards pages"| node_protected
node_routes -->|"wraps pages"| node_dashboardlayout
node_protected -->|"checks user"| node_authstate
node_authui -->|"updates session"| node_authstate
node_authui -->|"sends credentials"| node_api
node_taskpage -->|"requests tasks"| node_api
node_taskpage -->|"renders"| node_taskform
node_taskpage -->|"renders"| node_taskitem
node_projectpage -->|"uses API"| node_api
node_dashboard -.->|"renders"| node_summary
node_dashboard -.->|"renders"| node_taskstatus
node_dashboard -.->|"renders"| node_activity
node_dashboard -.->|"renders"| node_teamoverview
node_summary -->|"fetches projects"| node_api
node_taskstatus -->|"fetches tasks"| node_api
node_teams -.->|"uses"| node_teamcomponents
node_server -->|"connects database"| node_dbconfig
node_server -->|"mounts routes"| node_authroutes
node_server -->|"mounts routes"| node_projectroutes
node_server -->|"mounts routes"| node_taskroutes
node_api -->|"calls endpoints"| node_authroutes
node_api -->|"calls endpoints"| node_projectroutes
node_api -->|"calls endpoints"| node_taskroutes
node_authroutes -->|"dispatches"| node_authcontroller
node_authroutes -->|"protects profile"| node_middleware
node_projectroutes -->|"dispatches"| node_projectcontroller
node_taskroutes -->|"dispatches"| node_taskcontroller
node_authcontroller -->|"reads and creates"| node_userdb
node_middleware -->|"loads user"| node_userdb
node_projectcontroller -->|"reads and writes"| node_projectdb
node_taskcontroller -->|"reads and writes"| node_taskdb

click node_routes "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/routes/AppRoutes.jsx"
click node_authui "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Auth/Login.jsx"
click node_authstate "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/context/AuthContext.jsx"
click node_protected "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Auth/ProtectedRoute.jsx"
click node_dashboardlayout "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/layouts/DashboardLayout.jsx"
click node_projectpage "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Projects.jsx"
click node_taskpage "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Tasks.jsx"
click node_taskform "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/tasks/TaskFormDropdown.jsx"
click node_taskitem "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/tasks/TaskItem.jsx"
click node_profile "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Profile.jsx"
click node_teams "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Teams.jsx"
click node_teamcomponents "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/teams/TeamList.jsx"
click node_dashboard "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/Dashboard.jsx"
click node_summary "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/ProjectSummary.jsx"
click node_taskstatus "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/TaskStatus.jsx"
click node_activity "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/RecentActivities.jsx"
click node_teamoverview "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/TeamOverview.jsx"
click node_api "https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/utils/api.js"
click node_server "https://github.com/ramakrish21/project-management-tool/blob/main/backend/server.js"
click node_authroutes "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/routes/authRoutes.js"
click node_projectroutes "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/routes/projectRoutes.js"
click node_taskroutes "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/routes/taskRoutes.js"
click node_authcontroller "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/controllers/authController.js"
click node_projectcontroller "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/controllers/projectController.js"
click node_taskcontroller "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/controllers/tasksController.js"
click node_middleware "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/middleware/authMiddleware.js"
click node_userdb "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/models/User.js"
click node_projectdb "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/models/projectModel.js"
click node_taskdb "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/models/TaskModel.js"
click node_dbconfig "https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/config/db.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routes,node_authui,node_authstate,node_protected,node_dashboardlayout,node_projectpage,node_taskpage,node_taskform,node_taskitem,node_profile,node_api,node_user toneBlue
class node_server,node_authroutes,node_projectroutes,node_taskroutes,node_authcontroller,node_projectcontroller,node_taskcontroller,node_middleware toneAmber
class node_userdb,node_projectdb,node_taskdb,node_dbconfig toneMint
class node_teams,node_teamcomponents,node_dashboard,node_summary,node_taskstatus,node_activity,node_teamoverview toneRose
```

## Components

### React application

- [App routing](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/routes/AppRoutes.jsx): `frontend/src/routes/AppRoutes.jsx`
- [Login and register](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Auth/Login.jsx): `frontend/src/components/Auth/Login.jsx`
- [Auth state](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Protected routes](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Auth/ProtectedRoute.jsx): `frontend/src/components/Auth/ProtectedRoute.jsx`
- [Dashboard layout](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/layouts/DashboardLayout.jsx): `frontend/src/layouts/DashboardLayout.jsx`
- [Projects](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Projects.jsx): `frontend/src/pages/Projects.jsx`
- [Task board](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Tasks.jsx): `frontend/src/pages/Tasks.jsx`
- [Task form](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/tasks/TaskFormDropdown.jsx): `frontend/src/components/tasks/TaskFormDropdown.jsx`
- [Task item](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/tasks/TaskItem.jsx): `frontend/src/components/tasks/TaskItem.jsx`
- [Profile and settings](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Profile.jsx): `frontend/src/pages/Profile.jsx`
- [API client](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/utils/api.js): `frontend/src/utils/api.js`

### Express API

- [HTTP server](https://github.com/ramakrish21/project-management-tool/blob/main/backend/server.js): `backend/server.js`
- [Authentication routes](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/routes/authRoutes.js): `backend/src/routes/authRoutes.js`
- [Project routes](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/routes/projectRoutes.js): `backend/src/routes/projectRoutes.js`
- [Task routes](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/routes/taskRoutes.js): `backend/src/routes/taskRoutes.js`
- [Auth controller](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/controllers/authController.js): `backend/src/controllers/authController.js`
- [Project controller](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/controllers/projectController.js): `backend/src/controllers/projectController.js`
- [Task controller](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/controllers/tasksController.js): `backend/src/controllers/tasksController.js`
- [Auth middleware](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/middleware/authMiddleware.js): `backend/src/middleware/authMiddleware.js`

### MongoDB models

- [User model](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/models/User.js): `backend/src/models/User.js`
- [Project model](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/models/projectModel.js): `backend/src/models/projectModel.js`
- [Task model](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/models/TaskModel.js): `backend/src/models/TaskModel.js`
- [Database connection](https://github.com/ramakrish21/project-management-tool/blob/main/backend/src/config/db.js): `backend/src/config/db.js`

### Dashboard and collaboration

- [Team management](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/pages/Teams.jsx): `frontend/src/pages/Teams.jsx`
- [Team components](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/teams/TeamList.jsx): `frontend/src/components/teams/TeamList.jsx`
- [Dashboard summaries](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/Dashboard.jsx): `frontend/src/components/Dashboard/Dashboard.jsx`
- [Project summary](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/ProjectSummary.jsx): `frontend/src/components/Dashboard/ProjectSummary.jsx`
- [Task status summary](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/TaskStatus.jsx): `frontend/src/components/Dashboard/TaskStatus.jsx`
- [Recent activities](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/RecentActivities.jsx): `frontend/src/components/Dashboard/RecentActivities.jsx`
- [Team overview](https://github.com/ramakrish21/project-management-tool/blob/main/frontend/src/components/Dashboard/TeamOverview.jsx): `frontend/src/components/Dashboard/TeamOverview.jsx`

### Other components

- **User**

## Connections

- User → Login and register: signs in
- App routing → Auth state: provides state (evidence: `frontend/src/routes/AppRoutes.jsx`)
- App routing → Login and register: routes to (evidence: `frontend/src/routes/AppRoutes.jsx`)
- App routing → Protected routes: guards pages (evidence: `frontend/src/routes/AppRoutes.jsx`)
- App routing → Dashboard layout: wraps pages (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Protected routes → Auth state: checks user (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Login and register → Auth state: updates session (evidence: `frontend/src/components/Auth/Login.jsx`)
- Login and register → API client: sends credentials (evidence: `frontend/src/components/Auth/Login.jsx`)
- Task board → API client: requests tasks (evidence: `frontend/src/pages/Tasks.jsx`)
- Task board → Task form: renders (evidence: `frontend/src/pages/Tasks.jsx`)
- Task board → Task item: renders (evidence: `frontend/src/pages/Tasks.jsx`)
- Projects → API client: uses API (evidence: `frontend/src/pages/Projects.jsx`)
- Dashboard summaries → Project summary: renders
- Dashboard summaries → Task status summary: renders
- Dashboard summaries → Recent activities: renders
- Dashboard summaries → Team overview: renders
- Project summary → API client: fetches projects (evidence: `frontend/src/components/Dashboard/ProjectSummary.jsx`)
- Task status summary → API client: fetches tasks (evidence: `frontend/src/components/Dashboard/TaskStatus.jsx`)
- Team management → Team components: uses
- HTTP server → Database connection: connects database (evidence: `backend/server.js`)
- HTTP server → Authentication routes: mounts routes (evidence: `backend/server.js`)
- HTTP server → Project routes: mounts routes (evidence: `backend/server.js`)
- HTTP server → Task routes: mounts routes (evidence: `backend/server.js`)
- API client → Authentication routes: calls endpoints
- API client → Project routes: calls endpoints
- API client → Task routes: calls endpoints
- Authentication routes → Auth controller: dispatches (evidence: `backend/src/routes/authRoutes.js`)
- Authentication routes → Auth middleware: protects profile (evidence: `backend/src/routes/authRoutes.js`)
- Project routes → Project controller: dispatches (evidence: `backend/src/routes/projectRoutes.js`)
- Task routes → Task controller: dispatches (evidence: `backend/src/routes/taskRoutes.js`)
- Auth controller → User model: reads and creates (evidence: `backend/src/controllers/authController.js`)
- Auth middleware → User model: loads user (evidence: `backend/src/middleware/authMiddleware.js`)
- Project controller → Project model: reads and writes (evidence: `backend/src/controllers/projectController.js`)
- Task controller → Task model: reads and writes (evidence: `backend/src/controllers/tasksController.js`)
