How emmy6-d/student-rfid-attendance works
Classmark is a student registration and RFID attendance application. Staff use the React app to register students, enroll and manage cards, and review attendance and dashboard totals; an ESP32 reader submits enrollment scans and attendance check-ins to FastAPI, which validates and records them in Supabase. The graph preserves these distinct workflows and notification, reporting, and device capabilities. Backend route/service details are partly evidenced by the source index and excerpts; hardware-to-API behavior is documented in the README.
Main entry points: api.js API client · AppRoutes.jsx App routes · main.py FastAPI application · attendance_service.py Attendance service
Components 20
Staff web app
- App routes
frontend/src/routes/AppRoutes.jsx - Student register
frontend/src/pages/StudentsPage.jsx - Student registration
frontend/src/pages/RegisterStudentPage.jsx - Enrollment dialog
frontend/src/components/CardEnrollmentDialog.jsx - Card management
frontend/src/pages/CardsPage.jsx - Attendance view
frontend/src/pages/AttendancePage.jsx - Dashboard
frontend/src/pages/DashboardPage.jsx - Scan notifications
frontend/src/components/AttendanceNotifications.jsx - API client
frontend/src/api.js
Backend API
- FastAPI application
backend/app/main.py - Student endpoints
backend/app/routes/students.py - RFID endpoints
backend/app/routes/rfid.py - Attendance endpoints
backend/app/routes/attendance.py - Student service
backend/app/services/student_service.py - Card enrollment service
backend/app/services/rfid_service.py - Attendance service
backend/app/services/attendance_service.py
Attendance data
- Supabase client
backend/app/database.py - Supabase tables
database/schema.sql
RFID device
- ESP32 RFID reader
esp32/student_rfid_attendance/student_rfid_attendance.ino
Other components
- Staff user
Connections 30
- Staff user → App routes: uses
frontend/src/routes/AppRoutes.jsx - App routes → Student register: routes to
frontend/src/routes/AppRoutes.jsx - App routes → Student registration: routes to
frontend/src/routes/AppRoutes.jsx - App routes → Card management: routes to
frontend/src/routes/AppRoutes.jsx - App routes → Attendance view: routes to
frontend/src/routes/AppRoutes.jsx - App routes → Dashboard: routes to
frontend/src/routes/AppRoutes.jsx - Student register → API client: requests data
frontend/src/pages/StudentsPage.jsx - Student registration → API client: requests data
frontend/src/pages/RegisterStudentPage.jsx - Card management → API client: requests data
frontend/src/pages/CardsPage.jsx - Attendance view → API client: requests data
frontend/src/pages/AttendancePage.jsx - Dashboard → API client: requests data
frontend/src/pages/DashboardPage.jsx - Student registration → Enrollment dialog: opens
frontend/src/pages/RegisterStudentPage.jsx - Card management → Enrollment dialog: opens
frontend/src/pages/CardsPage.jsx - API client → FastAPI application: sends requests
README.md - FastAPI application → Student endpoints: registers
backend/app/main.py - FastAPI application → RFID endpoints: registers
backend/app/main.py - FastAPI application → Attendance endpoints: registers
backend/app/main.py - Student endpoints → Student service: calls
backend/app/routes/students.py - RFID endpoints → Card enrollment service: calls
backend/app/routes/rfid.py - Attendance endpoints → Attendance service: calls
backend/app/routes/attendance.py - Student service → Supabase client: uses
backend/app/services/student_service.py - Card enrollment service → Supabase client: uses
backend/app/services/rfid_service.py - Attendance service → Supabase client: uses
backend/app/services/attendance_service.py - Supabase client → Supabase tables: connects to
backend/app/database.py - Attendance service → Supabase tables: reads and writes
backend/app/services/attendance_service.py - ESP32 RFID reader → FastAPI application: submits scans
README.md - Enrollment dialog → API client: polls requests
frontend/src/components/CardEnrollmentDialog.jsx - Scan notifications → API client: fetches events
frontend/src/components/AttendanceNotifications.jsx - FastAPI application → Scan notifications: serves scan events
README.md - Dashboard → Attendance service: loads totals