# parthhiware/clickattend architecture

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

- Interactive diagram: https://gitdiagram.com/parthhiware/clickattend
- Repository: https://github.com/parthhiware/clickattend

## Overview

ClickAttend is a work-in-progress college attendance management system. Its visible workflow is role-based sign-in, followed by student attendance viewing or teacher attendance work; management also maintains students, teachers, departments, subjects, and their associations. The React client communicates with Django REST endpoints, whose role checks, views, and serializers operate on shared relational models. The README gives little detail, and several attendance and management components were not excerpted, so uncertain UI-to-endpoint links are left unverified rather than inferred.

Main entry points: [`frontend/src/Teacher/routes/TeacherDashboard.jsx`](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/routes/TeacherDashboard.jsx) (Teacher dashboard), [`frontend/src/utils/client.js`](https://github.com/parthhiware/clickattend/blob/main/frontend/src/utils/client.js) (HTTP client), [`server/apps/dashboard/urls.py`](https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/urls.py) (API route dispatch), [`frontend/src/App.jsx`](https://github.com/parthhiware/clickattend/blob/main/frontend/src/App.jsx) (Role routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React client"]
  node_http_client["HTTP client<br/>[client.js]"]
end

subgraph group_identity["Identity and access"]
  node_signin["Sign-in UI<br/>[LoginBox.jsx]"]
  node_authstate["Auth state<br/>[AuthContext.jsx]"]
  node_role_routes["Role routing<br/>[App.jsx]"]
  node_role_auth["JWT role checks<br/>[authentication.py]"]
end

subgraph group_attendance["Attendance workflows"]
  node_student_home["Student dashboard"]
  node_student_attendance["Attendance cards"]
  node_student_nav["Student navigation<br/>[SideBar.jsx]"]
  node_teacher_home["Teacher dashboard"]
  node_teacher_sheet["Teacher attendance sheet<br/>[TeahcerSheet.jsx]"]
  node_teacher_details["Attendance details<br/>[More.jsx]"]
  node_teacher_edit["Attendance editing<br/>[Edit.jsx]"]
  node_teacher_nav["Teacher navigation<br/>[TeacherSideBar.jsx]"]
  node_teacher_api["Teacher endpoints<br/>[teacher.py]"]
  node_student_api["Student endpoints<br/>[student.py]"]
end

subgraph group_management["Management workflows"]
  node_management_home["Management dashboard"]
  node_management_forms["People management"]
  node_department_subject_ui["Department and subject forms"]
  node_management_api["Management endpoints<br/>[management.py]"]
end

subgraph group_server["Django API and data"]
  node_api_routes["API route dispatch<br/>[urls.py]"]
  node_user_api["User authentication API<br/>[views.py]"]
  node_management_serializers["Management serializers<br/>[management.py]"]
  node_teacher_serializers["Teacher serializers<br/>[teacher.py]"]
  node_relational_models[("College data models<br/>[master.py]")]
  node_course_mappings[("Course associations<br/>[mapping.py]")]
  node_attendance_transactions[("Attendance transactions<br/>[transaction.py]")]
end

node_users(("College users"))

node_users -->|"sign in"| node_signin
node_signin -->|"submits credentials"| node_authstate
node_authstate -->|"calls login API"| node_http_client
node_authstate -->|"sets user role"| node_role_routes
node_role_routes -->|"routes students"| node_student_home
node_role_routes -->|"routes teachers"| node_teacher_home
node_role_routes -->|"routes management"| node_management_home
node_student_home -->|"renders"| node_student_attendance
node_student_home -->|"renders"| node_student_nav
node_teacher_home -->|"renders"| node_teacher_sheet
node_teacher_home -->|"routes to"| node_teacher_details
node_teacher_home -->|"routes to"| node_teacher_edit
node_teacher_home -->|"renders"| node_teacher_nav
node_management_home -->|"routes to"| node_management_forms
node_management_home -->|"routes to"| node_department_subject_ui
node_student_attendance -.->|"requests attendance"| node_http_client
node_teacher_home -->|"loads teacher data"| node_http_client
node_teacher_sheet -.->|"opens row details"| node_teacher_details
node_management_forms -.->|"sends management requests"| node_http_client
node_department_subject_ui -.->|"sends association requests"| node_http_client
node_http_client -.->|"sends API requests"| node_api_routes
node_api_routes -->|"routes user requests"| node_user_api
node_api_routes -->|"routes dashboard requests"| node_management_api
node_api_routes -->|"routes dashboard requests"| node_teacher_api
node_api_routes -->|"routes dashboard requests"| node_student_api
node_management_api -->|"validates and saves"| node_management_serializers
node_teacher_api -->|"uses serializers"| node_teacher_serializers
node_management_api -->|"requires management role"| node_role_auth
node_teacher_api -->|"checks teacher role"| node_role_auth
node_student_api -->|"uses JWT authentication"| node_role_auth
node_management_serializers -->|"reads and writes"| node_relational_models
node_teacher_serializers -->|"uses models"| node_relational_models
node_relational_models -->|"associates courses"| node_course_mappings
node_relational_models -.->|"uses attendance records"| node_attendance_transactions

click node_signin "https://github.com/parthhiware/clickattend/blob/main/frontend/src/auth/LoginBox.jsx"
click node_authstate "https://github.com/parthhiware/clickattend/blob/main/frontend/src/context/AuthContext.jsx"
click node_role_routes "https://github.com/parthhiware/clickattend/blob/main/frontend/src/App.jsx"
click node_http_client "https://github.com/parthhiware/clickattend/blob/main/frontend/src/utils/client.js"
click node_student_home "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Student/dashboard/StudentDashboard.jsx"
click node_student_attendance "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Student/dashboard/AttendanceCardsSheet.jsx"
click node_student_nav "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Student/dashboard/SideBar.jsx"
click node_teacher_home "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/routes/TeacherDashboard.jsx"
click node_teacher_sheet "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/TeahcerSheet.jsx"
click node_teacher_details "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/More.jsx"
click node_teacher_edit "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/Edit.jsx"
click node_teacher_nav "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/TeacherSideBar.jsx"
click node_management_home "https://github.com/parthhiware/clickattend/blob/main/frontend/src/Management/routes/ManagementDashboard.jsx"
click node_management_forms "https://github.com/parthhiware/clickattend/tree/main/frontend/src/Management/Dashbord/Student"
click node_department_subject_ui "https://github.com/parthhiware/clickattend/tree/main/frontend/src/Management/Dashbord/Dept-Sub"
click node_api_routes "https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/urls.py"
click node_user_api "https://github.com/parthhiware/clickattend/blob/main/server/apps/user/views.py"
click node_role_auth "https://github.com/parthhiware/clickattend/blob/main/server/apps/user/authentication.py"
click node_management_api "https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/views/management.py"
click node_teacher_api "https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/views/teacher.py"
click node_student_api "https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/views/student.py"
click node_management_serializers "https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/serializers/management.py"
click node_teacher_serializers "https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/serializers/teacher.py"
click node_relational_models "https://github.com/parthhiware/clickattend/blob/main/database/master.py"
click node_course_mappings "https://github.com/parthhiware/clickattend/blob/main/database/mapping.py"
click node_attendance_transactions "https://github.com/parthhiware/clickattend/blob/main/database/transaction.py"

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_http_client,node_users toneBlue
class node_signin,node_authstate,node_role_routes,node_role_auth toneAmber
class node_student_home,node_student_attendance,node_student_nav,node_teacher_home,node_teacher_sheet,node_teacher_details,node_teacher_edit,node_teacher_nav,node_teacher_api,node_student_api toneMint
class node_management_home,node_management_forms,node_department_subject_ui,node_management_api toneRose
class node_api_routes,node_user_api,node_management_serializers,node_teacher_serializers,node_relational_models,node_course_mappings,node_attendance_transactions toneIndigo
```

## Components

### React client

- [HTTP client](https://github.com/parthhiware/clickattend/blob/main/frontend/src/utils/client.js): `frontend/src/utils/client.js`

### Identity and access

- [Sign-in UI](https://github.com/parthhiware/clickattend/blob/main/frontend/src/auth/LoginBox.jsx): `frontend/src/auth/LoginBox.jsx`
- [Auth state](https://github.com/parthhiware/clickattend/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Role routing](https://github.com/parthhiware/clickattend/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [JWT role checks](https://github.com/parthhiware/clickattend/blob/main/server/apps/user/authentication.py): `server/apps/user/authentication.py`

### Attendance workflows

- [Student dashboard](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Student/dashboard/StudentDashboard.jsx): `frontend/src/Student/dashboard/StudentDashboard.jsx`
- [Attendance cards](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Student/dashboard/AttendanceCardsSheet.jsx): `frontend/src/Student/dashboard/AttendanceCardsSheet.jsx`
- [Student navigation](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Student/dashboard/SideBar.jsx): `frontend/src/Student/dashboard/SideBar.jsx`
- [Teacher dashboard](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/routes/TeacherDashboard.jsx): `frontend/src/Teacher/routes/TeacherDashboard.jsx`
- [Teacher attendance sheet](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/TeahcerSheet.jsx): `frontend/src/Teacher/Dashbord/TeahcerSheet.jsx`
- [Attendance details](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/More.jsx): `frontend/src/Teacher/Dashbord/More.jsx`
- [Attendance editing](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/Edit.jsx): `frontend/src/Teacher/Dashbord/Edit.jsx`
- [Teacher navigation](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Teacher/Dashbord/TeacherSideBar.jsx): `frontend/src/Teacher/Dashbord/TeacherSideBar.jsx`
- [Teacher endpoints](https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/views/teacher.py): `server/apps/dashboard/views/teacher.py`
- [Student endpoints](https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/views/student.py): `server/apps/dashboard/views/student.py`

### Management workflows

- [Management dashboard](https://github.com/parthhiware/clickattend/blob/main/frontend/src/Management/routes/ManagementDashboard.jsx): `frontend/src/Management/routes/ManagementDashboard.jsx`
- [People management](https://github.com/parthhiware/clickattend/tree/main/frontend/src/Management/Dashbord/Student): `frontend/src/Management/Dashbord/Student`
- [Department and subject forms](https://github.com/parthhiware/clickattend/tree/main/frontend/src/Management/Dashbord/Dept-Sub): `frontend/src/Management/Dashbord/Dept-Sub`
- [Management endpoints](https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/views/management.py): `server/apps/dashboard/views/management.py`

### Django API and data

- [API route dispatch](https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/urls.py): `server/apps/dashboard/urls.py`
- [User authentication API](https://github.com/parthhiware/clickattend/blob/main/server/apps/user/views.py): `server/apps/user/views.py`
- [Management serializers](https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/serializers/management.py): `server/apps/dashboard/serializers/management.py`
- [Teacher serializers](https://github.com/parthhiware/clickattend/blob/main/server/apps/dashboard/serializers/teacher.py): `server/apps/dashboard/serializers/teacher.py`
- [College data models](https://github.com/parthhiware/clickattend/blob/main/database/master.py): `database/master.py`
- [Course associations](https://github.com/parthhiware/clickattend/blob/main/database/mapping.py): `database/mapping.py`
- [Attendance transactions](https://github.com/parthhiware/clickattend/blob/main/database/transaction.py): `database/transaction.py`

### Other components

- **College users**

## Connections

- College users → Sign-in UI: sign in (evidence: `frontend/src/auth/LoginBox.jsx`)
- Sign-in UI → Auth state: submits credentials (evidence: `frontend/src/auth/LoginBox.jsx`)
- Auth state → HTTP client: calls login API (evidence: `frontend/src/context/AuthContext.jsx`)
- Auth state → Role routing: sets user role (evidence: `frontend/src/App.jsx`)
- Role routing → Student dashboard: routes students (evidence: `frontend/src/App.jsx`)
- Role routing → Teacher dashboard: routes teachers (evidence: `frontend/src/App.jsx`)
- Role routing → Management dashboard: routes management (evidence: `frontend/src/App.jsx`)
- Student dashboard → Attendance cards: renders (evidence: `frontend/src/Student/dashboard/StudentDashboard.jsx`)
- Student dashboard → Student navigation: renders (evidence: `frontend/src/Student/dashboard/StudentDashboard.jsx`)
- Teacher dashboard → Teacher attendance sheet: renders (evidence: `frontend/src/Teacher/routes/TeacherDashboard.jsx`)
- Teacher dashboard → Attendance details: routes to (evidence: `frontend/src/Teacher/routes/TeacherDashboard.jsx`)
- Teacher dashboard → Attendance editing: routes to (evidence: `frontend/src/Teacher/routes/TeacherDashboard.jsx`)
- Teacher dashboard → Teacher navigation: renders (evidence: `frontend/src/Teacher/routes/TeacherDashboard.jsx`)
- Management dashboard → People management: routes to (evidence: `frontend/src/Management/routes/ManagementDashboard.jsx`)
- Management dashboard → Department and subject forms: routes to (evidence: `frontend/src/Management/routes/ManagementDashboard.jsx`)
- Attendance cards → HTTP client: requests attendance (evidence: `frontend/src/Student/dashboard/AttendanceCardsSheet.jsx`)
- Teacher dashboard → HTTP client: loads teacher data (evidence: `frontend/src/Teacher/routes/TeacherDashboard.jsx`)
- Teacher attendance sheet → Attendance details: opens row details
- People management → HTTP client: sends management requests (evidence: `frontend/src/Management/Dashbord/Student/UpdateStudent.jsx`)
- Department and subject forms → HTTP client: sends association requests (evidence: `frontend/src/Management/Dashbord/Dept-Sub/AddDeptSub.jsx`)
- HTTP client → API route dispatch: sends API requests
- API route dispatch → User authentication API: routes user requests
- API route dispatch → Management endpoints: routes dashboard requests (evidence: `server/apps/dashboard/urls.py`)
- API route dispatch → Teacher endpoints: routes dashboard requests (evidence: `server/apps/dashboard/urls.py`)
- API route dispatch → Student endpoints: routes dashboard requests (evidence: `server/apps/dashboard/urls.py`)
- Management endpoints → Management serializers: validates and saves (evidence: `server/apps/dashboard/views/management.py`)
- Teacher endpoints → Teacher serializers: uses serializers (evidence: `server/apps/dashboard/views/teacher.py`)
- Management endpoints → JWT role checks: requires management role (evidence: `server/apps/dashboard/views/management.py`)
- Teacher endpoints → JWT role checks: checks teacher role (evidence: `server/apps/dashboard/views/teacher.py`)
- Student endpoints → JWT role checks: uses JWT authentication (evidence: `server/apps/dashboard/views/student.py`)
- Management serializers → College data models: reads and writes (evidence: `server/apps/dashboard/serializers/management.py`)
- Teacher serializers → College data models: uses models (evidence: `server/apps/dashboard/serializers/teacher.py`)
- College data models → Course associations: associates courses (evidence: `database/mapping.py`)
- College data models → Attendance transactions: uses attendance records (evidence: `database/transaction.py`)
