How errorday/absensi-sekolah works
SI-PRESENSI is a browser-based school attendance administration app. Users authenticate, then role-filtered navigation exposes a dashboard, class and student management, attendance/library scanning and reporting, and settings. Page components call a shared cookie-enabled API client; the backend and MongoDB are external to this repository. The excerpts establish several UI-to-API calls, but not the backend’s internal processing or dashboard/report details, so those links are limited to what is shown or documented in the sampled code.
Main entry points: App.js App and navigation · api.js API client · AuthContext.jsx Session and login · Login.jsx Login screen
Components 13
App Shell
- App and navigation
src/App.js - Session and login
src/context/AuthContext.jsx - Login screen
src/pages/Login.jsx
School Operations
- Dashboard
src/pages/Dashboard.jsx - Class management
src/pages/Kelas.jsx - Student management
src/pages/Siswa.jsx - Attendance and library
src/pages/Presensi.jsx - School settings
src/pages/Pengaturan.jsx
Client Foundation
- API client
src/lib/api.js
Other components
- School user
- Application backend
- Face recognition service
- MongoDB
Connections 18
- School user → App and navigation: uses
src/App.js - App and navigation → Session and login: provides session
src/App.js - App and navigation → Login screen: shows when signed out
src/App.js - App and navigation → Dashboard: routes dashboard
src/App.js - App and navigation → Class management: routes classes
src/App.js - App and navigation → Student management: routes students
src/App.js - App and navigation → Attendance and library: routes attendance
src/App.js - App and navigation → School settings: routes settings
src/App.js - Login screen → Session and login: calls login
src/pages/Login.jsx - Session and login → API client: requests session
src/context/AuthContext.jsx - Class management → API client: reads and writes
src/pages/Kelas.jsx - Student management → API client: reads and writes
src/pages/Siswa.jsx - Attendance and library → API client: requests scan and reports
src/pages/Presensi.jsx - School settings → API client: loads and saves
src/pages/Pengaturan.jsx - Dashboard → API client: requests data
src/pages/Dashboard.jsx - API client → Application backend: sends HTTP requests
- Application backend → MongoDB: reads and writes
- Application backend → Face recognition service: may delegate recognition