# riyagupta1107/elc-project-management-portal architecture

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

- Interactive diagram: https://gitdiagram.com/riyagupta1107/elc-project-management-portal
- Repository: https://github.com/riyagupta1107/elc-project-management-portal

## Overview

This is a university project collaboration platform for students and faculty. Users authenticate, discover project listings, apply, and—after faculty review—join projects; faculty manage listings and applications. Profiles, faculty discovery, notices, notifications, and project chat are supporting capabilities, while faculty can also use an AI-assisted project-description draft. The frontend uses a shared authenticated API client; the Express backend routes requests to controllers and persists domain records in MongoDB. Chat and notifications also use Socket.IO. Some frontend pages and backend subsystems were not excerpted, so their internal links are omitted where evidence is unavailable.

Main entry points: [`backend/src/app.js`](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/app.js) (HTTP app), [`frontend/src/App.jsx`](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/App.jsx) (Routes and pages), [`frontend/src/api/axiosInstance.js`](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/api/axiosInstance.js) (API client), [`backend/src/controllers/applicationController.js`](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/applicationController.js) (Application review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_app["Routes and pages<br/>[App.jsx]"]
  node_authui["Sign in and register<br/>[Login.jsx]"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
  node_apiclient["API client<br/>[axiosInstance.js]"]
  node_projectbrowse["Project discovery<br/>[Projects.jsx]"]
  node_studentproject["Project details<br/>[ProjectDetails.jsx]"]
  node_studentdash["Student dashboard"]
  node_facultyproject["Project management<br/>[ManageProject.jsx]"]
  node_facultydash["Faculty dashboard"]
  node_chatui["Project chat<br/>[ProjectChat.jsx]"]
  node_socketstate["Socket state<br/>[SocketContext.jsx]"]
end

subgraph group_api["HTTP backend"]
  node_expressapp["HTTP app<br/>[app.js]"]
  node_authmw["JWT authentication<br/>[authMiddleware.js]"]
  node_userctrl["User operations<br/>[userController.js]"]
  node_projectctrl["Project operations"]
  node_applicationctrl["Application review"]
  node_messageapi["Message endpoints<br/>[messageRoutes.js]"]
  node_noticectrl["Notice operations"]
  node_notificationctrl["Notification operations"]
end

subgraph group_domain["Platform data"]
  node_mongodb[("MongoDB")]
  node_users["User records<br/>[User.js]"]
  node_projects["Project records<br/>[Project.js]"]
  node_applications["Applications<br/>[Application.js]"]
  node_messages["Messages<br/>[Message.js]"]
  node_notifications["Notifications<br/>[Notification.js]"]
  node_notices["Notices<br/>[Notice.js]"]
end

subgraph group_realtime["Realtime services"]
  node_server["Socket.IO server<br/>[server.js]"]
  node_socketservice["Socket.IO service"]
end

node_students(("Students"))
node_faculty(("Faculty"))

node_students -->|"use"| node_app
node_faculty -->|"use"| node_app
node_app -->|"routes to"| node_authui
node_app -->|"routes to"| node_projectbrowse
node_app -->|"routes to"| node_studentproject
node_app -->|"routes to"| node_studentdash
node_app -->|"routes to"| node_facultyproject
node_app -->|"routes to"| node_facultydash
node_authui -->|"calls"| node_authstate
node_authstate -->|"calls"| node_apiclient
node_projectbrowse -->|"calls"| node_apiclient
node_studentproject -->|"calls"| node_apiclient
node_studentdash -->|"calls"| node_apiclient
node_facultyproject -->|"calls"| node_apiclient
node_facultydash -->|"calls"| node_apiclient
node_apiclient -.->|"sends API requests"| node_expressapp
node_expressapp -->|"routes requests"| node_userctrl
node_expressapp -->|"routes requests"| node_projectctrl
node_expressapp -->|"routes requests"| node_applicationctrl
node_expressapp -->|"routes requests"| node_messageapi
node_expressapp -->|"routes requests"| node_noticectrl
node_expressapp -->|"routes requests"| node_notificationctrl
node_authmw -->|"looks up"| node_users
node_projectctrl -->|"reads and writes"| node_projects
node_projectctrl -->|"reads"| node_users
node_projectctrl -->|"reads"| node_applications
node_applicationctrl -->|"reads and writes"| node_applications
node_applicationctrl -->|"reads and updates"| node_projects
node_applicationctrl -->|"reads"| node_users
node_applicationctrl -->|"creates"| node_notifications
node_userctrl -->|"reads and writes"| node_users
node_noticectrl -->|"reads and writes"| node_notices
node_noticectrl -->|"uses"| node_notifications
node_notificationctrl -->|"reads"| node_notifications
node_messageapi -->|"authenticates"| node_authmw
node_messageapi -->|"checks membership"| node_projects
node_messageapi -->|"checks acceptance"| node_applications
node_messageapi -->|"reads and writes"| node_messages
node_expressapp -->|"connects"| node_mongodb
node_chatui -->|"uses"| node_socketstate
node_chatui -->|"calls"| node_apiclient
node_socketstate -->|"opens socket"| node_server
node_server -->|"loads sender"| node_users
node_server -->|"creates"| node_messages
node_server -->|"emits messages"| node_socketservice
node_applicationctrl -->|"emits alerts"| node_socketservice

click node_app "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/App.jsx"
click node_authui "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/Authentication/Login.jsx"
click node_authstate "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/context/AuthContext.jsx"
click node_apiclient "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/api/axiosInstance.js"
click node_projectbrowse "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Projects.jsx"
click node_studentproject "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Student/ProjectDetails.jsx"
click node_studentdash "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Student/StudentDashboard.jsx"
click node_facultyproject "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Professor/ManageProject.jsx"
click node_facultydash "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Professor/ProfessorDashboard.jsx"
click node_chatui "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/components/ProjectChat.jsx"
click node_socketstate "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/context/SocketContext.jsx"
click node_expressapp "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/app.js"
click node_authmw "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/middleware/authMiddleware.js"
click node_userctrl "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/userController.js"
click node_projectctrl "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/projectController.js"
click node_applicationctrl "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/applicationController.js"
click node_messageapi "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/routes/messageRoutes.js"
click node_noticectrl "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/noticeController.js"
click node_notificationctrl "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/notificationController.js"
click node_users "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/User.js"
click node_projects "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Project.js"
click node_applications "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Application.js"
click node_messages "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Message.js"
click node_notifications "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Notification.js"
click node_notices "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Notice.js"
click node_server "https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/server.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_app,node_authui,node_authstate,node_apiclient,node_projectbrowse,node_studentproject,node_studentdash,node_facultyproject,node_facultydash,node_chatui,node_socketstate toneBlue
class node_expressapp,node_authmw,node_userctrl,node_projectctrl,node_applicationctrl,node_messageapi,node_noticectrl,node_notificationctrl toneAmber
class node_mongodb,node_users,node_projects,node_applications,node_messages,node_notifications,node_notices toneMint
class node_server,node_socketservice toneRose
class node_students,node_faculty toneIndigo
```

## Components

### Web application

- [Routes and pages](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Sign in and register](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/Authentication/Login.jsx): `frontend/src/Authentication/Login.jsx`
- [Auth state](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [API client](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/api/axiosInstance.js): `frontend/src/api/axiosInstance.js`
- [Project discovery](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Projects.jsx): `frontend/src/pages/Projects.jsx`
- [Project details](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Student/ProjectDetails.jsx): `frontend/src/pages/Student/ProjectDetails.jsx`
- [Student dashboard](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Student/StudentDashboard.jsx): `frontend/src/pages/Student/StudentDashboard.jsx`
- [Project management](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Professor/ManageProject.jsx): `frontend/src/pages/Professor/ManageProject.jsx`
- [Faculty dashboard](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/pages/Professor/ProfessorDashboard.jsx): `frontend/src/pages/Professor/ProfessorDashboard.jsx`
- [Project chat](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/components/ProjectChat.jsx): `frontend/src/components/ProjectChat.jsx`
- [Socket state](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/frontend/src/context/SocketContext.jsx): `frontend/src/context/SocketContext.jsx`

### HTTP backend

- [HTTP app](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/app.js): `backend/src/app.js`
- [JWT authentication](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/middleware/authMiddleware.js): `backend/src/middleware/authMiddleware.js`
- [User operations](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/userController.js): `backend/src/controllers/userController.js`
- [Project operations](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/projectController.js): `backend/src/controllers/projectController.js`
- [Application review](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/applicationController.js): `backend/src/controllers/applicationController.js`
- [Message endpoints](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/routes/messageRoutes.js): `backend/src/routes/messageRoutes.js`
- [Notice operations](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/noticeController.js): `backend/src/controllers/noticeController.js`
- [Notification operations](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/controllers/notificationController.js): `backend/src/controllers/notificationController.js`

### Platform data

- **MongoDB**
- [User records](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/User.js): `backend/src/models/User.js`
- [Project records](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Project.js): `backend/src/models/Project.js`
- [Applications](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Application.js): `backend/src/models/Application.js`
- [Messages](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Message.js): `backend/src/models/Message.js`
- [Notifications](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Notification.js): `backend/src/models/Notification.js`
- [Notices](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/src/models/Notice.js): `backend/src/models/Notice.js`

### Realtime services

- [Socket.IO server](https://github.com/riyagupta1107/elc-project-management-portal/blob/main/backend/server.js): `backend/server.js`
- **Socket.IO service**

### Other components

- **Students**
- **Faculty**

## Connections

- Students → Routes and pages: use (evidence: `frontend/src/App.jsx`)
- Faculty → Routes and pages: use (evidence: `frontend/src/App.jsx`)
- Routes and pages → Sign in and register: routes to (evidence: `frontend/src/App.jsx`)
- Routes and pages → Project discovery: routes to (evidence: `frontend/src/App.jsx`)
- Routes and pages → Project details: routes to (evidence: `frontend/src/App.jsx`)
- Routes and pages → Student dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Routes and pages → Project management: routes to (evidence: `frontend/src/App.jsx`)
- Routes and pages → Faculty dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Sign in and register → Auth state: calls (evidence: `frontend/src/Authentication/Login.jsx`)
- Auth state → API client: calls (evidence: `frontend/src/context/AuthContext.jsx`)
- Project discovery → API client: calls (evidence: `frontend/src/pages/Projects.jsx`)
- Project details → API client: calls (evidence: `frontend/src/pages/Student/ProjectDetails.jsx`)
- Student dashboard → API client: calls (evidence: `frontend/src/pages/Student/StudentDashboard.jsx`)
- Project management → API client: calls (evidence: `frontend/src/pages/Professor/ManageProject.jsx`)
- Faculty dashboard → API client: calls (evidence: `frontend/src/pages/Professor/ProfessorDashboard.jsx`)
- API client → HTTP app: sends API requests
- HTTP app → User operations: routes requests (evidence: `backend/src/app.js`)
- HTTP app → Project operations: routes requests (evidence: `backend/src/app.js`)
- HTTP app → Application review: routes requests (evidence: `backend/src/app.js`)
- HTTP app → Message endpoints: routes requests (evidence: `backend/src/app.js`)
- HTTP app → Notice operations: routes requests (evidence: `backend/src/app.js`)
- HTTP app → Notification operations: routes requests (evidence: `backend/src/app.js`)
- JWT authentication → User records: looks up (evidence: `backend/src/middleware/authMiddleware.js`)
- Project operations → Project records: reads and writes (evidence: `backend/src/controllers/projectController.js`)
- Project operations → User records: reads (evidence: `backend/src/controllers/projectController.js`)
- Project operations → Applications: reads (evidence: `backend/src/controllers/projectController.js`)
- Application review → Applications: reads and writes (evidence: `backend/src/controllers/applicationController.js`)
- Application review → Project records: reads and updates (evidence: `backend/src/controllers/applicationController.js`)
- Application review → User records: reads (evidence: `backend/src/controllers/applicationController.js`)
- Application review → Notifications: creates (evidence: `backend/src/controllers/applicationController.js`)
- User operations → User records: reads and writes (evidence: `backend/src/controllers/userController.js`)
- Notice operations → Notices: reads and writes (evidence: `backend/src/controllers/noticeController.js`)
- Notice operations → Notifications: uses (evidence: `backend/src/controllers/noticeController.js`)
- Notification operations → Notifications: reads (evidence: `backend/src/controllers/notificationController.js`)
- Message endpoints → JWT authentication: authenticates (evidence: `backend/src/routes/messageRoutes.js`)
- Message endpoints → Project records: checks membership (evidence: `backend/src/routes/messageRoutes.js`)
- Message endpoints → Applications: checks acceptance (evidence: `backend/src/routes/messageRoutes.js`)
- Message endpoints → Messages: reads and writes (evidence: `backend/src/routes/messageRoutes.js`)
- HTTP app → MongoDB: connects (evidence: `backend/src/app.js`)
- Project chat → Socket state: uses (evidence: `frontend/src/components/ProjectChat.jsx`)
- Project chat → API client: calls (evidence: `frontend/src/components/ProjectChat.jsx`)
- Socket state → Socket.IO server: opens socket (evidence: `frontend/src/context/SocketContext.jsx`)
- Socket.IO server → User records: loads sender (evidence: `backend/server.js`)
- Socket.IO server → Messages: creates (evidence: `backend/server.js`)
- Socket.IO server → Socket.IO service: emits messages (evidence: `backend/server.js`)
- Application review → Socket.IO service: emits alerts (evidence: `backend/src/controllers/applicationController.js`)
