Final-year project
College Attendance Management System
A web app where faculty mark attendance per class and period, students see their attendance percentage by subject, and the department gets a list of students below 75%.
Node.jsExpressSQL databaseHTML, CSS, JavaScriptChart library
The problem
Many colleges still take attendance on paper registers. Calculating each student's percentage at the end of the semester is slow, and students only find out they are short of attendance when it is too late.
An attendance system lets faculty mark attendance in seconds and shows every student their percentage per subject at any time. The department can find students below the required percentage, often 75%, early enough to warn them.
Features to build
- Logins for admin, faculty and students, each with their own screens
- Admin manages departments, sections, subjects, faculty and students, including CSV import of student lists
- Faculty choose their class, subject, date and period, and mark everyone present by default, then tap the absentees
- Edit attendance for the same day, with a record of who changed it
- Students see attendance percentage per subject and overall
- Reports: students below the required percentage, per subject and section
- Export reports to CSV
Suggested data model
Attendance percentage = present sessions ÷ total sessions × 100, calculated with GROUP BY student_id and SUM(CASE WHEN present THEN 1 ELSE 0 END).
Build plan
- 1
Gather requirements
Talk to two or three faculty members about how they take attendance today. Note the periods, sections, rules and the reports the department needs.
- 2
Design the database
Draw the ER diagram, add a unique constraint so a subject cannot have two sessions for the same date and period, and create sample data.
- 3
Authentication and roles
Build login with hashed passwords and middleware that allows each route only for the right role.
- 4
Marking attendance
Create the session and all attendance rows in one transaction, so a failure never leaves half a class marked.
- 5
Percentages and reports
Write the SQL with GROUP BY, CASE and HAVING percentage < 75, then build the student and department report screens.
- 6
Testing with real users
Ask a faculty member to mark a few classes and note what is slow or confusing, then improve it.
- 7
Report and demo
Document the ER diagram, the SQL for the reports, test cases and screenshots, and prepare a two-minute demo.
Learn these first
Each part of the project is taught in one of these free lessons.
- SQL CREATE TABLE: Define a New Table Step by Step
- SQL Constraints: PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, CHECK, DEFAULT
- SQL GROUP BY Explained Simply (With Examples)
- SQL HAVING Clause: Filter Groups After GROUP BY
- SQL CASE Expression: If-Then-Else Logic in Queries
- SQL INNER JOIN Explained Simply (With Diagrams and Examples)
- SQL Transactions: BEGIN, COMMIT, ROLLBACK and ACID
- Build a REST API with Node.js and Express (CRUD Example)
- Node.js Authentication: Hashing Passwords and JWT Login
- Node.js Database Tutorial: SQLite with Express
- Fetching Data from APIs with JavaScript fetch()
Make it stand out
- QR code attendance that changes every few seconds
- Automatic email or WhatsApp alerts to students who fall below the limit
- Charts of attendance trends per subject
- Leave requests with approval by faculty
Viva and interview questions
Try to answer each one aloud before you open it.
How do you calculate a student's attendance percentage?
I count the sessions for that subject and the sessions where the student was present, using
GROUP BYwithSUM(CASE WHEN present THEN 1 ELSE 0 END), then divide present by total and multiply by 100.How do you find students below 75%?
The same grouped query with
HAVINGon the calculated percentage.WHEREcannot be used because it filters rows before grouping, whileHAVINGfilters the groups.Why do you use a transaction when marking attendance?
Marking a class inserts one session and many attendance rows. A transaction makes them all succeed or all fail, so the data is never left half-written.
Why mark everyone present by default?
Most students are present in most classes, so faculty only tap the few absentees. It makes marking much faster, which matters for adoption.
How do you stop students from changing their own attendance?
Every attendance route checks the role from the verified login token on the server. Only faculty routes can write attendance, and they only allow the faculty member's own subjects.
What to put in your project report
- Abstract: the problem, your solution and the result in one paragraph.
- Introduction and problem statement: who has the problem and why it matters.
- Requirements: the features (functional) and qualities such as speed and security (non-functional).
- Design: architecture diagram, database tables or data flow, and screen layouts.
- Implementation: the main modules and the most interesting code, explained.
- Testing: the test cases you ran, with inputs, expected and actual results.
- Results: screenshots or numbers that show the project working.
- Conclusion and future scope: what you achieved and what you would add next.
Your college may give its own format. Follow that first, and use this list to check nothing is missing.
More project ideas
- Quiz App with HTML, CSS and JavaScriptMini project
- Snake Game with JavaScript and CanvasMini project
- Student Result Management System in PythonMini project