How hsnkh12/secure-attendance-management-system works
Project type and purpose
• This is a monolithic Node.js/Express REST API called “Attendance Management System” (AMS).
• It exposes endpoints for recording and querying student attendance, uses DES encryption for secure data at rest, and persists data in a relational database.
File structure
• Top-level entry: app.js (bootstraps Express, loads middleware, routes).
• routes/ → defines Express router endpoints for each entity (students, teachers, attendance, etc.).
• controllers/ → handler functions invoked by routes; they parse request data and delegate to managers.
• managers/ → core business-logic layer (“service layer”) that coordinates workflows (e.g., encrypting/decrypting attendance, verifying prerequisites).
• models/ → ORM definitions mapping JS objects to DB tables (Attendance, Student, Course, etc.).
• middlewares/auth.js → JWT/session authentication, protects secured endpoints.
• utils/
• db.config.js → database connection/ORM configuration
• des.js → DES encryption/decryption service
• password.js → password hashing/validation utilities
README for additional insights
• Confirms DES encryption is applied transparently on create/read operations.
• No UI code present—this is purely an API backend targeting clients such as web UIs or scripts.