How parthhiware/clickattend works
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: TeacherDashboard.jsx Teacher dashboard · client.js HTTP client · urls.py API route dispatch · App.jsx Role routing
Components 27
React client
- HTTP client
frontend/src/utils/client.js
Identity and access
- Sign-in UI
frontend/src/auth/LoginBox.jsx - Auth state
frontend/src/context/AuthContext.jsx - Role routing
frontend/src/App.jsx - JWT role checks
server/apps/user/authentication.py
Attendance workflows
- Student dashboard
frontend/src/Student/dashboard/StudentDashboard.jsx - Attendance cards
frontend/src/Student/dashboard/AttendanceCardsSheet.jsx - Student navigation
frontend/src/Student/dashboard/SideBar.jsx - Teacher dashboard
frontend/src/Teacher/routes/TeacherDashboard.jsx - Teacher attendance sheet
frontend/src/Teacher/Dashbord/TeahcerSheet.jsx - Attendance details
frontend/src/Teacher/Dashbord/More.jsx - Attendance editing
frontend/src/Teacher/Dashbord/Edit.jsx - Teacher navigation
frontend/src/Teacher/Dashbord/TeacherSideBar.jsx - Teacher endpoints
server/apps/dashboard/views/teacher.py - Student endpoints
server/apps/dashboard/views/student.py
Management workflows
- Management dashboard
frontend/src/Management/routes/ManagementDashboard.jsx - People management
frontend/src/Management/Dashbord/Student - Department and subject forms
frontend/src/Management/Dashbord/Dept-Sub - Management endpoints
server/apps/dashboard/views/management.py
Django API and data
- API route dispatch
server/apps/dashboard/urls.py - User authentication API
server/apps/user/views.py - Management serializers
server/apps/dashboard/serializers/management.py - Teacher serializers
server/apps/dashboard/serializers/teacher.py - College data models
database/master.py - Course associations
database/mapping.py - Attendance transactions
database/transaction.py
Other components
- College users
Connections 34
- College users → Sign-in UI: sign in
frontend/src/auth/LoginBox.jsx - Sign-in UI → Auth state: submits credentials
frontend/src/auth/LoginBox.jsx - Auth state → HTTP client: calls login API
frontend/src/context/AuthContext.jsx - Auth state → Role routing: sets user role
frontend/src/App.jsx - Role routing → Student dashboard: routes students
frontend/src/App.jsx - Role routing → Teacher dashboard: routes teachers
frontend/src/App.jsx - Role routing → Management dashboard: routes management
frontend/src/App.jsx - Student dashboard → Attendance cards: renders
frontend/src/Student/dashboard/StudentDashboard.jsx - Student dashboard → Student navigation: renders
frontend/src/Student/dashboard/StudentDashboard.jsx - Teacher dashboard → Teacher attendance sheet: renders
frontend/src/Teacher/routes/TeacherDashboard.jsx - Teacher dashboard → Attendance details: routes to
frontend/src/Teacher/routes/TeacherDashboard.jsx - Teacher dashboard → Attendance editing: routes to
frontend/src/Teacher/routes/TeacherDashboard.jsx - Teacher dashboard → Teacher navigation: renders
frontend/src/Teacher/routes/TeacherDashboard.jsx - Management dashboard → People management: routes to
frontend/src/Management/routes/ManagementDashboard.jsx - Management dashboard → Department and subject forms: routes to
frontend/src/Management/routes/ManagementDashboard.jsx - Attendance cards → HTTP client: requests attendance
frontend/src/Student/dashboard/AttendanceCardsSheet.jsx - Teacher dashboard → HTTP client: loads teacher data
frontend/src/Teacher/routes/TeacherDashboard.jsx - Teacher attendance sheet → Attendance details: opens row details
- People management → HTTP client: sends management requests
frontend/src/Management/Dashbord/Student/UpdateStudent.jsx - Department and subject forms → HTTP client: sends association requests
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
server/apps/dashboard/urls.py - API route dispatch → Teacher endpoints: routes dashboard requests
server/apps/dashboard/urls.py - API route dispatch → Student endpoints: routes dashboard requests
server/apps/dashboard/urls.py - Management endpoints → Management serializers: validates and saves
server/apps/dashboard/views/management.py - Teacher endpoints → Teacher serializers: uses serializers
server/apps/dashboard/views/teacher.py - Management endpoints → JWT role checks: requires management role
server/apps/dashboard/views/management.py - Teacher endpoints → JWT role checks: checks teacher role
server/apps/dashboard/views/teacher.py - Student endpoints → JWT role checks: uses JWT authentication
server/apps/dashboard/views/student.py - Management serializers → College data models: reads and writes
server/apps/dashboard/serializers/management.py - Teacher serializers → College data models: uses models
server/apps/dashboard/serializers/teacher.py - College data models → Course associations: associates courses
database/mapping.py - College data models → Attendance transactions: uses attendance records
database/transaction.py