# harsh-dev1602/intelli-assess-major_project architecture

> Architecture diagram of the GitHub repository harsh-dev1602/intelli-assess-major_project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/harsh-dev1602/intelli-assess-major_project
- Repository: https://github.com/harsh-dev1602/intelli-assess-major_project

## Overview

IntelliAssess is an online-exam application with student and administrator experiences. The intended student journey is account access, exam participation, and result handling; administrators manage questions and review student and result data. The React app routes users by authentication and role, while an Express API exposes account, question, and result endpoints backed by Mongoose models. The excerpts show route/controller and persistence wiring, but do not establish how the frontend submits requests to the API, so that connection is omitted.

Main entry points: [`WebBackend/WebFrontend/src/App.jsx`](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/App.jsx) (Route and role shell), [`WebBackend/routes/user.route.js`](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/routes/user.route.js) (API routes), [`WebBackend/controllers/user.controller.js`](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/user.controller.js) (Account operations), [`WebBackend/middleware/auth.js`](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/middleware/auth.js) (Route authorization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Route and role shell<br/>[App.jsx]"]
  node_authui["Client auth state<br/>[AuthProvider.jsx]"]
  node_home["Home page<br/>[Home.jsx]"]
  node_about["About page<br/>[About.jsx]"]
  node_contact["Contact page<br/>[Contect.jsx]"]
  node_privacy["Privacy page<br/>[PrivacyPolicy.jsx]"]
  node_login["Login form<br/>[Login.jsx]"]
  node_signup["Signup form<br/>[Signup.jsx]"]
end

subgraph group_api["API and access"]
  node_server["Express server<br/>[index.js]"]
  node_routes["API routes<br/>[user.route.js]"]
  node_authmw["Route authorization<br/>[auth.js]"]
end

subgraph group_exam["Exam domain"]
  node_studentdash["Student dashboard<br/>[Dashboard.jsx]"]
  node_studentexam["Exam experience<br/>[StudentExam.jsx]"]
  node_admindash["Admin dashboard<br/>[AdminDashboard.jsx]"]
  node_setpaper["Paper management<br/>[SetPaper.jsx]"]
  node_viewquestions["Question review<br/>[ViewAllQues.jsx]"]
  node_questioncontroller["Question operations"]
  node_questiondb[("Question records<br/>[question.model.js]")]
  node_seedquestions["Sample question bank<br/>[data.js]"]
  node_resultcontroller["Result operations"]
  node_resultdb[("Result records<br/>[result.model.js]")]
end

subgraph group_identity["Identity and records"]
  node_studentdata["Student listing"]
  node_usercontroller["Account operations<br/>[user.controller.js]"]
  node_adminseed["Admin seeding"]
  node_token["Token and cookie<br/>[generateToken.js]"]
  node_userdb[("User records<br/>[user.model.js]")]
  node_admindb[("Admin records<br/>[admin.model.js]")]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_app
node_app -->|"reads auth"| node_authui
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_privacy
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_signup
node_app -->|"routes to"| node_studentdash
node_app -->|"routes to"| node_studentexam
node_app -->|"routes to"| node_admindash
node_app -->|"routes to"| node_setpaper
node_app -->|"routes to"| node_viewquestions
node_app -->|"routes to"| node_studentdata
node_server -->|"mounts routes"| node_routes
node_server -->|"seeds admin"| node_adminseed
node_routes -->|"dispatches account"| node_usercontroller
node_routes -->|"dispatches questions"| node_questioncontroller
node_routes -->|"dispatches results"| node_resultcontroller
node_routes -->|"protects routes"| node_authmw
node_usercontroller -->|"reads and writes"| node_userdb
node_usercontroller -->|"checks admin"| node_admindb
node_usercontroller -->|"creates token"| node_token
node_adminseed -->|"creates admin"| node_admindb
node_authmw -->|"loads user"| node_userdb
node_authmw -->|"loads admin"| node_admindb
node_questioncontroller -->|"reads and writes"| node_questiondb
node_questioncontroller -->|"returns sample data"| node_seedquestions
node_resultcontroller -->|"reads and writes"| node_resultdb

click node_app "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/App.jsx"
click node_authui "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Context/AuthProvider.jsx"
click node_home "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Home.jsx"
click node_about "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/About.jsx"
click node_contact "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Contect.jsx"
click node_privacy "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/PrivacyPolicy.jsx"
click node_login "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Login.jsx"
click node_signup "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Signup.jsx"
click node_studentdash "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Dashboard/Dashboard.jsx"
click node_studentexam "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Dashboard/StudentExam.jsx"
click node_admindash "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/AdminDashboard.jsx"
click node_setpaper "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/SetPaper.jsx"
click node_viewquestions "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/ViewAllQues.jsx"
click node_studentdata "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/allLoginStudentData.jsx"
click node_server "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/index.js"
click node_routes "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/routes/user.route.js"
click node_authmw "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/middleware/auth.js"
click node_usercontroller "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/user.controller.js"
click node_adminseed "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/admin.controller.js"
click node_token "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/jwt/generateToken.js"
click node_userdb "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/user.model.js"
click node_admindb "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/admin.model.js"
click node_questioncontroller "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/question.controller.js"
click node_questiondb "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/question.model.js"
click node_seedquestions "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/Data/data.js"
click node_resultcontroller "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/results.controller.js"
click node_resultdb "https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/result.model.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_home,node_about,node_contact,node_privacy,node_login,node_signup toneBlue
class node_server,node_routes,node_authmw toneAmber
class node_studentdash,node_studentexam,node_admindash,node_setpaper,node_viewquestions,node_questioncontroller,node_questiondb,node_seedquestions,node_resultcontroller,node_resultdb toneMint
class node_studentdata,node_usercontroller,node_adminseed,node_token,node_userdb,node_admindb toneRose
class node_visitor toneIndigo
```

## Components

### Web application

- [Route and role shell](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/App.jsx): `WebBackend/WebFrontend/src/App.jsx`
- [Client auth state](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Context/AuthProvider.jsx): `WebBackend/WebFrontend/src/Context/AuthProvider.jsx`
- [Home page](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Home.jsx): `WebBackend/WebFrontend/src/Com/Home.jsx`
- [About page](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/About.jsx): `WebBackend/WebFrontend/src/Com/About.jsx`
- [Contact page](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Contect.jsx): `WebBackend/WebFrontend/src/Com/Contect.jsx`
- [Privacy page](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/PrivacyPolicy.jsx): `WebBackend/WebFrontend/src/Com/PrivacyPolicy.jsx`
- [Login form](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Login.jsx): `WebBackend/WebFrontend/src/Com/Login.jsx`
- [Signup form](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Signup.jsx): `WebBackend/WebFrontend/src/Com/Signup.jsx`

### API and access

- [Express server](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/index.js): `WebBackend/index.js`
- [API routes](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/routes/user.route.js): `WebBackend/routes/user.route.js`
- [Route authorization](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/middleware/auth.js): `WebBackend/middleware/auth.js`

### Exam domain

- [Student dashboard](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Dashboard/Dashboard.jsx): `WebBackend/WebFrontend/src/Com/Dashboard/Dashboard.jsx`
- [Exam experience](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/Dashboard/StudentExam.jsx): `WebBackend/WebFrontend/src/Com/Dashboard/StudentExam.jsx`
- [Admin dashboard](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/AdminDashboard.jsx): `WebBackend/WebFrontend/src/Com/AdminDashboard/AdminDashboard.jsx`
- [Paper management](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/SetPaper.jsx): `WebBackend/WebFrontend/src/Com/AdminDashboard/SetPaper.jsx`
- [Question review](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/ViewAllQues.jsx): `WebBackend/WebFrontend/src/Com/AdminDashboard/ViewAllQues.jsx`
- [Question operations](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/question.controller.js): `WebBackend/controllers/question.controller.js`
- [Question records](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/question.model.js): `WebBackend/models/question.model.js`
- [Sample question bank](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/Data/data.js): `WebBackend/Data/data.js`
- [Result operations](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/results.controller.js): `WebBackend/controllers/results.controller.js`
- [Result records](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/result.model.js): `WebBackend/models/result.model.js`

### Identity and records

- [Student listing](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/WebFrontend/src/Com/AdminDashboard/allLoginStudentData.jsx): `WebBackend/WebFrontend/src/Com/AdminDashboard/allLoginStudentData.jsx`
- [Account operations](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/user.controller.js): `WebBackend/controllers/user.controller.js`
- [Admin seeding](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/controllers/admin.controller.js): `WebBackend/controllers/admin.controller.js`
- [Token and cookie](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/jwt/generateToken.js): `WebBackend/jwt/generateToken.js`
- [User records](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/user.model.js): `WebBackend/models/user.model.js`
- [Admin records](https://github.com/harsh-dev1602/intelli-assess-major_project/blob/main/WebBackend/models/admin.model.js): `WebBackend/models/admin.model.js`

### Other components

- **Visitor**

## Connections

- Visitor → Route and role shell: uses (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Client auth state: reads auth (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Home page: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → About page: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Contact page: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Privacy page: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Login form: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Signup form: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Student dashboard: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Exam experience: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Admin dashboard: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Paper management: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Question review: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Route and role shell → Student listing: routes to (evidence: `WebBackend/WebFrontend/src/App.jsx`)
- Express server → API routes: mounts routes (evidence: `WebBackend/index.js`)
- Express server → Admin seeding: seeds admin (evidence: `WebBackend/index.js`)
- API routes → Account operations: dispatches account (evidence: `WebBackend/routes/user.route.js`)
- API routes → Question operations: dispatches questions (evidence: `WebBackend/routes/user.route.js`)
- API routes → Result operations: dispatches results (evidence: `WebBackend/routes/user.route.js`)
- API routes → Route authorization: protects routes (evidence: `WebBackend/routes/user.route.js`)
- Account operations → User records: reads and writes (evidence: `WebBackend/controllers/user.controller.js`)
- Account operations → Admin records: checks admin (evidence: `WebBackend/controllers/user.controller.js`)
- Account operations → Token and cookie: creates token (evidence: `WebBackend/controllers/user.controller.js`)
- Admin seeding → Admin records: creates admin (evidence: `WebBackend/controllers/admin.controller.js`)
- Route authorization → User records: loads user (evidence: `WebBackend/middleware/auth.js`)
- Route authorization → Admin records: loads admin (evidence: `WebBackend/middleware/auth.js`)
- Question operations → Question records: reads and writes (evidence: `WebBackend/controllers/question.controller.js`)
- Question operations → Sample question bank: returns sample data (evidence: `WebBackend/controllers/question.controller.js`)
- Result operations → Result records: reads and writes (evidence: `WebBackend/controllers/results.controller.js`)
