# bhavanesh05/complent-management- architecture

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

- Interactive diagram: https://gitdiagram.com/bhavanesh05/complent-management-
- Repository: https://github.com/bhavanesh05/complent-management-

## Overview

CampusCare is a browser-based college complaint-management portal. Students register or sign in, submit complaints, and track their status; administrators sign in to review, filter, update, or delete complaints and view reports. The main internal layer is the shared JavaScript runtime, which the README says stores demo data in browser localStorage; the SQL schema represents a production-oriented database option. The README documents capabilities not visible in the sampled JavaScript excerpts, so those links are cited to the README rather than treated as inspected implementation.

Main entry points: [`admin-dashboard.html`](https://github.com/bhavanesh05/complent-management-/blob/main/admin-dashboard.html) (Admin dashboard), [`student-dashboard.html`](https://github.com/bhavanesh05/complent-management-/blob/main/student-dashboard.html) (Student dashboard), [`script.js`](https://github.com/bhavanesh05/complent-management-/blob/main/script.js) (Shared interface behavior), [`index.html`](https://github.com/bhavanesh05/complent-management-/blob/main/index.html) (Home page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Portal entry"]
  node_home["Home page<br/>[index.html]"]
  node_about["About and contact<br/>[about.html]"]
end

subgraph group_student["Student services"]
  node_student_register["Student registration"]
  node_student_login["Student login<br/>[student-login.html]"]
  node_student_dashboard["Student dashboard"]
end

subgraph group_admin["Admin operations"]
  node_admin_login["Admin login<br/>[admin-login.html]"]
  node_admin_dashboard["Admin dashboard"]
end

subgraph group_shared["Shared runtime and data"]
  node_student_auth["Student account handling<br/>[script.js]"]
  node_complaint_workflow["Complaint submission and tracking<br/>[script.js]"]
  node_admin_complaints["Complaint management<br/>[script.js]"]
  node_student_directory["Student directory<br/>[script.js]"]
  node_reports["Reports and analytics<br/>[script.js]"]
  node_shared_ui["Shared interface behavior<br/>[script.js]"]
  node_browser_storage[("Browser localStorage")]
  node_mysql_schema[("MySQL schema<br/>[database.sql]")]
  node_styles["Responsive and dark-mode styles<br/>[style.css]"]
end

node_visitor(("Student or admin"))

node_visitor -->|"opens portal"| node_home
node_visitor -->|"registers"| node_student_register
node_visitor -->|"signs in"| node_student_login
node_visitor -->|"signs in"| node_admin_login
node_visitor -->|"views information"| node_about
node_student_register -->|"registers account"| node_student_auth
node_student_login -->|"authenticates"| node_student_auth
node_student_auth -->|"stores account"| node_browser_storage
node_student_login -->|"enters dashboard"| node_student_dashboard
node_student_dashboard -->|"submits and tracks"| node_complaint_workflow
node_complaint_workflow -->|"stores complaints"| node_browser_storage
node_admin_login -->|"enters dashboard"| node_admin_dashboard
node_admin_dashboard -->|"manages complaints"| node_admin_complaints
node_admin_complaints -->|"updates complaints"| node_browser_storage
node_admin_dashboard -->|"views students"| node_student_directory
node_admin_dashboard -->|"views analytics"| node_reports
node_home -.->|"uses shared behavior"| node_shared_ui
node_student_dashboard -.->|"uses shared behavior"| node_shared_ui
node_admin_dashboard -.->|"uses shared behavior"| node_shared_ui
node_shared_ui -->|"persists theme"| node_browser_storage
node_home -.->|"uses styles"| node_styles
node_student_dashboard -.->|"uses styles"| node_styles
node_admin_dashboard -.->|"uses styles"| node_styles
node_mysql_schema -.->|"production alternative"| node_browser_storage

click node_home "https://github.com/bhavanesh05/complent-management-/blob/main/index.html"
click node_about "https://github.com/bhavanesh05/complent-management-/blob/main/about.html"
click node_student_register "https://github.com/bhavanesh05/complent-management-/blob/main/student-register.html"
click node_student_login "https://github.com/bhavanesh05/complent-management-/blob/main/student-login.html"
click node_student_dashboard "https://github.com/bhavanesh05/complent-management-/blob/main/student-dashboard.html"
click node_admin_login "https://github.com/bhavanesh05/complent-management-/blob/main/admin-login.html"
click node_admin_dashboard "https://github.com/bhavanesh05/complent-management-/blob/main/admin-dashboard.html"
click node_student_auth "https://github.com/bhavanesh05/complent-management-/blob/main/script.js"
click node_complaint_workflow "https://github.com/bhavanesh05/complent-management-/blob/main/script.js"
click node_admin_complaints "https://github.com/bhavanesh05/complent-management-/blob/main/script.js"
click node_student_directory "https://github.com/bhavanesh05/complent-management-/blob/main/script.js"
click node_reports "https://github.com/bhavanesh05/complent-management-/blob/main/script.js"
click node_shared_ui "https://github.com/bhavanesh05/complent-management-/blob/main/script.js"
click node_mysql_schema "https://github.com/bhavanesh05/complent-management-/blob/main/database.sql"
click node_styles "https://github.com/bhavanesh05/complent-management-/blob/main/style.css"

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_home,node_about toneBlue
class node_student_register,node_student_login,node_student_dashboard toneAmber
class node_admin_login,node_admin_dashboard toneMint
class node_student_auth,node_complaint_workflow,node_admin_complaints,node_student_directory,node_reports,node_shared_ui,node_browser_storage,node_mysql_schema,node_styles toneRose
class node_visitor toneIndigo
```

## Components

### Portal entry

- [Home page](https://github.com/bhavanesh05/complent-management-/blob/main/index.html): `index.html`
- [About and contact](https://github.com/bhavanesh05/complent-management-/blob/main/about.html): `about.html`

### Student services

- [Student registration](https://github.com/bhavanesh05/complent-management-/blob/main/student-register.html): `student-register.html`
- [Student login](https://github.com/bhavanesh05/complent-management-/blob/main/student-login.html): `student-login.html`
- [Student dashboard](https://github.com/bhavanesh05/complent-management-/blob/main/student-dashboard.html): `student-dashboard.html`

### Admin operations

- [Admin login](https://github.com/bhavanesh05/complent-management-/blob/main/admin-login.html): `admin-login.html`
- [Admin dashboard](https://github.com/bhavanesh05/complent-management-/blob/main/admin-dashboard.html): `admin-dashboard.html`

### Shared runtime and data

- [Student account handling](https://github.com/bhavanesh05/complent-management-/blob/main/script.js): `script.js`
- [Complaint submission and tracking](https://github.com/bhavanesh05/complent-management-/blob/main/script.js): `script.js`
- [Complaint management](https://github.com/bhavanesh05/complent-management-/blob/main/script.js): `script.js`
- [Student directory](https://github.com/bhavanesh05/complent-management-/blob/main/script.js): `script.js`
- [Reports and analytics](https://github.com/bhavanesh05/complent-management-/blob/main/script.js): `script.js`
- [Shared interface behavior](https://github.com/bhavanesh05/complent-management-/blob/main/script.js): `script.js`
- **Browser localStorage**
- [MySQL schema](https://github.com/bhavanesh05/complent-management-/blob/main/database.sql): `database.sql`
- [Responsive and dark-mode styles](https://github.com/bhavanesh05/complent-management-/blob/main/style.css): `style.css`

### Other components

- **Student or admin**

## Connections

- Student or admin → Home page: opens portal (evidence: `README.md`)
- Student or admin → Student registration: registers (evidence: `README.md`)
- Student or admin → Student login: signs in (evidence: `README.md`)
- Student or admin → Admin login: signs in (evidence: `README.md`)
- Student or admin → About and contact: views information (evidence: `README.md`)
- Student registration → Student account handling: registers account (evidence: `README.md`)
- Student login → Student account handling: authenticates (evidence: `README.md`)
- Student account handling → Browser localStorage: stores account (evidence: `script.js`)
- Student login → Student dashboard: enters dashboard (evidence: `README.md`)
- Student dashboard → Complaint submission and tracking: submits and tracks (evidence: `README.md`)
- Complaint submission and tracking → Browser localStorage: stores complaints (evidence: `README.md`)
- Admin login → Admin dashboard: enters dashboard (evidence: `README.md`)
- Admin dashboard → Complaint management: manages complaints (evidence: `README.md`)
- Complaint management → Browser localStorage: updates complaints (evidence: `README.md`)
- Admin dashboard → Student directory: views students (evidence: `README.md`)
- Admin dashboard → Reports and analytics: views analytics (evidence: `README.md`)
- Home page → Shared interface behavior: uses shared behavior
- Student dashboard → Shared interface behavior: uses shared behavior
- Admin dashboard → Shared interface behavior: uses shared behavior
- Shared interface behavior → Browser localStorage: persists theme (evidence: `script.js`)
- Home page → Responsive and dark-mode styles: uses styles
- Student dashboard → Responsive and dark-mode styles: uses styles
- Admin dashboard → Responsive and dark-mode styles: uses styles
- MySQL schema → Browser localStorage: production alternative (evidence: `README.md`)
