# mohamedamine-oueslati/thesis_project_manageit architecture

> Architecture diagram of the GitHub repository mohamedamine-oueslati/thesis_project_manageit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohamedamine-oueslati/thesis_project_manageit
- Repository: https://github.com/mohamedamine-oueslati/thesis_project_manageit

## Overview

ManageIT is a web application for department-based project and feature management, employee administration, meetings, dashboards, and notifications. The visible workflow is users interacting with the React client while the Express server exposes project and user operations backed by MongoDB; project features carry progress, estimates, and attachments. The source excerpts show the server mounting API routers, several routers querying models, and image uploads using Multer and Cloudinary. Client-to-API calls and several unsampled route details are not established by the excerpts, so those links are omitted.

Main entry points: [`routes/index.js`](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/index.js) (API router registry), [`models/userSchema.js`](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/userSchema.js) (User records), [`index.js`](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/index.js) (Express server), [`routes/projectRoutes/index.js`](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/projectRoutes/index.js) (Project lifecycle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_client_app["React application<br/>[App.js]"]
  node_client_routes["Client routes<br/>[routes.js]"]
  node_project_ui["Project forms<br/>[createProject.jsx]"]
  node_project_update_ui["Feature updates<br/>[updateProject.jsx]"]
  node_ceo_ui["Department heads<br/>[CEORouter.jsx]"]
  node_ceo_add["Add department head"]
  node_ceo_delete["Remove department head"]
end

subgraph group_api["API and domain"]
  node_server["Express server<br/>[index.js]"]
  node_router_index["API router registry<br/>[index.js]"]
  node_projects["Project lifecycle<br/>[index.js]"]
  node_users["User accounts<br/>[index.js]"]
  node_user_lookup["User lookup<br/>[getAllTheUsers.js]"]
  node_heads["Department heads<br/>[index.js]"]
  node_employee_delete["Employee removal<br/>[deleteEmployee.js]"]
  node_meetings["Meeting management<br/>[index.js]"]
  node_meeting_filter["Meeting filtering"]
  node_dashboard["Dashboard summaries<br/>[index.js]"]
  node_notifications["Notifications<br/>[index.js]"]
  node_upload["Image upload<br/>[index.js]"]
  node_auth_middleware["Token verification<br/>[auth.js]"]
  node_admin_middleware["Admin check<br/>[admin.js]"]
end

subgraph group_data["Persistence"]
  node_project_model[("Project records<br/>[projectSchema.js]")]
  node_user_model[("User records<br/>[userSchema.js]")]
  node_meeting_model[("Meeting records<br/>[meetingSchema.js]")]
  node_notification_model[("Notification records")]
end

subgraph group_integrations["External services"]
  node_multer["Upload staging<br/>[multer.js]"]
  node_cloudinary["Image hosting<br/>[cloudinary.js]"]
end

node_user(("ManageIT user"))
node_mongo[("MongoDB")]
node_mail["Email service"]

node_user -->|"uses"| node_client_app
node_client_app -->|"imports"| node_project_ui
node_client_app -->|"imports"| node_project_update_ui
node_ceo_ui -->|"routes to"| node_ceo_add
node_ceo_ui -->|"routes to"| node_ceo_delete
node_server -->|"mounts"| node_router_index
node_router_index -->|"registers"| node_projects
node_router_index -->|"registers"| node_users
node_router_index -->|"registers"| node_user_lookup
node_router_index -->|"registers"| node_heads
node_router_index -->|"registers"| node_employee_delete
node_router_index -->|"registers"| node_meetings
node_router_index -->|"registers"| node_meeting_filter
node_router_index -->|"registers"| node_dashboard
node_router_index -->|"registers"| node_notifications
node_server -->|"handles"| node_upload
node_server -->|"configures"| node_multer
node_server -->|"uploads via"| node_cloudinary
node_projects -->|"queries"| node_project_model
node_users -->|"queries"| node_user_model
node_heads -->|"creates"| node_user_model
node_heads -->|"sends email"| node_mail
node_employee_delete -->|"deletes"| node_user_model
node_user_lookup -->|"queries"| node_user_model
node_meeting_filter -->|"queries"| node_meeting_model
node_meeting_filter -->|"queries"| node_user_model
node_meetings -->|"queries"| node_meeting_model
node_meetings -->|"writes"| node_notification_model
node_dashboard -->|"queries"| node_project_model
node_dashboard -->|"queries"| node_user_model
node_notifications -->|"reads and writes"| node_notification_model
node_mongo -.->|"stores data for"| node_server
node_projects -->|"uses"| node_auth_middleware
node_projects -->|"uses"| node_admin_middleware

click node_client_app "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/App.js"
click node_client_routes "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/routes.js"
click node_project_ui "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/createProject/createProject.jsx"
click node_project_update_ui "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/updateProject/updateProject.jsx"
click node_ceo_ui "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/CEO/CEORouter.jsx"
click node_ceo_add "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/CEO/AddHeadDepartment.jsx"
click node_ceo_delete "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/CEO/deleteHeadDepartment.jsx"
click node_server "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/index.js"
click node_router_index "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/index.js"
click node_projects "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/projectRoutes/index.js"
click node_users "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/userRoutes/index.js"
click node_user_lookup "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/userRoutes/getAllTheUsers.js"
click node_heads "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/CreateNewHeadDepartment/index.js"
click node_employee_delete "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/deleteEmployee/deleteEmployee.js"
click node_meetings "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/meetingRoutes/index.js"
click node_meeting_filter "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/filterMeetings/filterMeetingsRoutes.js"
click node_dashboard "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/dashboardRoutes/index.js"
click node_notifications "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/notificationRoutes/index.js"
click node_upload "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/index.js"
click node_auth_middleware "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/middleware/auth.js"
click node_admin_middleware "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/middleware/admin.js"
click node_project_model "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/projectSchema.js"
click node_user_model "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/userSchema.js"
click node_meeting_model "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/meetingSchema.js"
click node_notification_model "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/notificationSchema.js"
click node_multer "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/multer.js"
click node_cloudinary "https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/cloudinary.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_client_app,node_client_routes,node_project_ui,node_project_update_ui,node_ceo_ui,node_ceo_add,node_ceo_delete,node_user toneBlue
class node_server,node_router_index,node_projects,node_users,node_user_lookup,node_heads,node_employee_delete,node_meetings,node_meeting_filter,node_dashboard,node_notifications,node_upload,node_auth_middleware,node_admin_middleware,node_mongo toneAmber
class node_project_model,node_user_model,node_meeting_model,node_notification_model toneMint
class node_multer,node_cloudinary toneRose
class node_mail toneIndigo
```

## Components

### Web client

- [React application](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/App.js): `client/src/App.js`
- [Client routes](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/routes.js): `client/src/routes.js`
- [Project forms](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/createProject/createProject.jsx): `client/src/components/createProject/createProject.jsx`
- [Feature updates](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/updateProject/updateProject.jsx): `client/src/components/updateProject/updateProject.jsx`
- [Department heads](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/CEO/CEORouter.jsx): `client/src/components/CEO/CEORouter.jsx`
- [Add department head](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/CEO/AddHeadDepartment.jsx): `client/src/components/CEO/AddHeadDepartment.jsx`
- [Remove department head](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/client/src/components/CEO/deleteHeadDepartment.jsx): `client/src/components/CEO/deleteHeadDepartment.jsx`

### API and domain

- [Express server](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/index.js): `index.js`
- [API router registry](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/index.js): `routes/index.js`
- [Project lifecycle](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/projectRoutes/index.js): `routes/projectRoutes/index.js`
- [User accounts](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/userRoutes/index.js): `routes/userRoutes/index.js`
- [User lookup](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/userRoutes/getAllTheUsers.js): `routes/userRoutes/getAllTheUsers.js`
- [Department heads](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/CreateNewHeadDepartment/index.js): `routes/CreateNewHeadDepartment/index.js`
- [Employee removal](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/deleteEmployee/deleteEmployee.js): `routes/deleteEmployee/deleteEmployee.js`
- [Meeting management](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/meetingRoutes/index.js): `routes/meetingRoutes/index.js`
- [Meeting filtering](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/filterMeetings/filterMeetingsRoutes.js): `routes/filterMeetings/filterMeetingsRoutes.js`
- [Dashboard summaries](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/dashboardRoutes/index.js): `routes/dashboardRoutes/index.js`
- [Notifications](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/routes/notificationRoutes/index.js): `routes/notificationRoutes/index.js`
- [Image upload](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/index.js): `index.js`
- [Token verification](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/middleware/auth.js): `middleware/auth.js`
- [Admin check](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/middleware/admin.js): `middleware/admin.js`

### Persistence

- [Project records](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/projectSchema.js): `models/projectSchema.js`
- [User records](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/userSchema.js): `models/userSchema.js`
- [Meeting records](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/meetingSchema.js): `models/meetingSchema.js`
- [Notification records](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/models/notificationSchema.js): `models/notificationSchema.js`

### External services

- [Upload staging](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/multer.js): `multer.js`
- [Image hosting](https://github.com/mohamedamine-oueslati/thesis_project_manageit/blob/master/cloudinary.js): `cloudinary.js`

### Other components

- **ManageIT user**
- **MongoDB**
- **Email service**

## Connections

- ManageIT user → React application: uses
- React application → Project forms: imports (evidence: `client/src/App.js`)
- React application → Feature updates: imports (evidence: `client/src/App.js`)
- Department heads → Add department head: routes to (evidence: `client/src/components/CEO/CEORouter.jsx`)
- Department heads → Remove department head: routes to (evidence: `client/src/components/CEO/CEORouter.jsx`)
- Express server → API router registry: mounts (evidence: `index.js`)
- API router registry → Project lifecycle: registers (evidence: `routes/index.js`)
- API router registry → User accounts: registers (evidence: `routes/index.js`)
- API router registry → User lookup: registers (evidence: `routes/index.js`)
- API router registry → Department heads: registers (evidence: `routes/index.js`)
- API router registry → Employee removal: registers (evidence: `routes/index.js`)
- API router registry → Meeting management: registers (evidence: `routes/index.js`)
- API router registry → Meeting filtering: registers (evidence: `routes/index.js`)
- API router registry → Dashboard summaries: registers (evidence: `routes/index.js`)
- API router registry → Notifications: registers (evidence: `routes/index.js`)
- Express server → Image upload: handles (evidence: `index.js`)
- Express server → Upload staging: configures (evidence: `index.js`)
- Express server → Image hosting: uploads via (evidence: `index.js`)
- Project lifecycle → Project records: queries (evidence: `routes/projectRoutes/index.js`)
- User accounts → User records: queries (evidence: `routes/userRoutes/index.js`)
- Department heads → User records: creates (evidence: `routes/CreateNewHeadDepartment/index.js`)
- Department heads → Email service: sends email (evidence: `routes/CreateNewHeadDepartment/index.js`)
- Employee removal → User records: deletes (evidence: `routes/deleteEmployee/deleteEmployee.js`)
- User lookup → User records: queries (evidence: `routes/userRoutes/getAllTheUsers.js`)
- Meeting filtering → Meeting records: queries (evidence: `routes/filterMeetings/filterMeetingsRoutes.js`)
- Meeting filtering → User records: queries (evidence: `routes/filterMeetings/filterMeetingsRoutes.js`)
- Meeting management → Meeting records: queries (evidence: `routes/meetingRoutes/index.js`)
- Meeting management → Notification records: writes (evidence: `routes/meetingRoutes/index.js`)
- Dashboard summaries → Project records: queries (evidence: `routes/dashboardRoutes/index.js`)
- Dashboard summaries → User records: queries (evidence: `routes/dashboardRoutes/index.js`)
- Notifications → Notification records: reads and writes (evidence: `routes/notificationRoutes/index.js`)
- MongoDB → Express server: stores data for
- Project lifecycle → Token verification: uses (evidence: `routes/projectRoutes/index.js`)
- Project lifecycle → Admin check: uses (evidence: `routes/projectRoutes/index.js`)
