How isfandiyor0112-star/-attendancesrv works
This is a school attendance web app: teachers sign in, submit absence reports, and review or edit their class records; administrators review attendance, manage teacher accounts, and export reports. The browser clients call an Express API, which stores records in MongoDB and sends report notifications through Telegram. The API excerpt also shows a Telegram-based teacher-management bot. The tree and excerpts do not establish all page wiring or the backing database connection, so the graph omits those uncertain links and focuses on evidenced calls.
Main entry points: index.js HTTP endpoints · script.js Login and routing · teacher.js Teacher attendance · admin.js Admin dashboard
Components 8
Web clients
- Login and routing
public/script.js - Teacher attendance
public/teacher.js - Admin dashboard
public/admin.js
Attendance API
- HTTP endpoints
api/index.js
Persistence
- Absence records
api/index.js - Teacher accounts
api/index.js
External services
- Telegram API
Other components
- School user
Connections 11
- School user → Login and routing: signs in
public/script.js - Login and routing → HTTP endpoints: requests login
public/script.js - Login and routing → Teacher attendance: routes teacher
public/script.js - Login and routing → Admin dashboard: routes admin
public/script.js - Teacher attendance → HTTP endpoints: submits and edits
public/teacher.js - Teacher attendance → HTTP endpoints: loads absences
public/teacher.js - Admin dashboard → HTTP endpoints: loads and clears
public/admin.js - HTTP endpoints → Absence records: reads and writes
api/index.js - HTTP endpoints → Teacher accounts: authenticates and manages
api/index.js - HTTP endpoints → Telegram API: sends reports
api/index.js - Telegram API → HTTP endpoints: posts bot updates