Skip to content
Laviyx Learn

Try

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%.

Intermediate 8–10 weeks 2–3 studentsUpdated

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

TableKey columns
studentsid, roll_no (unique), name, section_id
subjectsid, code, name, section_id, faculty_id
sessionsid, subject_id, date, period
attendancesession_id, student_id, present (true or false)

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. 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. 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. 3

    Authentication and roles

    Build login with hashed passwords and middleware that allows each route only for the right role.

  4. 4

    Marking attendance

    Create the session and all attendance rows in one transaction, so a failure never leaves half a class marked.

  5. 5

    Percentages and reports

    Write the SQL with GROUP BY, CASE and HAVING percentage < 75, then build the student and department report screens.

  6. 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. 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.

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 BY with SUM(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 HAVING on the calculated percentage. WHERE cannot be used because it filters rows before grouping, while HAVING filters 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

  1. Abstract: the problem, your solution and the result in one paragraph.
  2. Introduction and problem statement: who has the problem and why it matters.
  3. Requirements: the features (functional) and qualities such as speed and security (non-functional).
  4. Design: architecture diagram, database tables or data flow, and screen layouts.
  5. Implementation: the main modules and the most interesting code, explained.
  6. Testing: the test cases you ran, with inputs, expected and actual results.
  7. Results: screenshots or numbers that show the project working.
  8. 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.

All project ideas →