Skip to content

Sreejit-Sengupto/attendify

Repository files navigation

Logo

Attendify

Attendify is a Attendance system that uses WebAuthentication for marking and verifying attendance of the students at no extra infrastructure cost. Administrators and students can register there hardware/devices like mobile phones or physical passkeys, the users can then use their device's hardware like fingerprint scanner(or even pattern/pin/password) to mark the attendance.

Learn more about WebAuthentication

Acknowledgements

Features

  • WebAuthentication - Leverage built-in hardware like fingerprint sensors for secure and easy attendance marking and admin login.
  • Multi-User Support - Distinct interfaces and functionalities for administrators and students.
  • Enhanced Security - Ensure data integrity and prevent attendance fraud with biometric verification.
  • Real-Time Tracking - Instantly record and update attendance information as students check in.

Installation

Install the project with npm

  • Fork/Clone the repository.
  • Install all the dependencies.
  cd attendify
  npm install
  • You will also require the server, get it from here.
  • Create an Appwrite account and create a database with two collections namely, 'organisations' and 'students' with the following attributes:

organisations

key Type Default value
name string null
email email null
phoneNumber string null
addressLine1 string null
addressLine2 (not required) string null
state string null
city string null
students (not required) Many to Many relationship with students null
challenge (not required) string null
passkey (not required) string null
classes (not required) Integer 0

students

key Type Default value
firstName string null
lastName string null
email email null
phoneNumber string null
organisations (not required) Many to Many relationship with organisations null
rollNumber (not required) string null
challenge (not required) string null
passkey (not required) string null
attendance (not required) string {}
  • Paste the env variables in a .env file.
  • Run npm run dev to start the application.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

VITE_APPWRITE_PROJECT_ID

VITE_APPWRITE_DB_ID

VITE_APPWRITE_STD_COLLECTION_ID

VITE_APPWRITE_ORG_COLLECTION_ID

Contributing

Contributions are always welcome!

| Note: If you are looking for the backend code you can get it here

We are open to all sorts of contributions, be it a bug or a feature. Please feel free to raise an issue and help us improve.

For any help or query you can reach out to me on Discord.

API Reference

Base URL: https://attendify-server-7g6h.onrender.com

Generate passkey registration challenge

  POST /api/v1/passkey/register
Parameter Type Description
userId string Required. User ID from Appwrite Database
category string Required. "ORG" OR "STD"

Verify passkey registration challenge

  POST /api/v1/passkey/verify
Parameter Type Description
userId string Required. User ID from Appwrite Database
credential Object Required. options object returned by register challenge API
category string Required. "ORG" OR "STD"

Generate login challenge

  POST /api/v1/passkey/login
Parameter Type Description
userId string Required. User ID from Appwrite Database
category string Required. "ORG" OR "STD"

Verify login challenge

  POST /api/v1/passkey/verify-login
Parameter Type Description
userId string Required. User ID from Appwrite Database
credential Object Required. options object returned by register challenge API
category string Required. "ORG" OR "STD"

Add label to user (Appwrite)

  POST /api/v1/user/label
Parameter Type Description
userId string Required. User ID from Appwrite accounts
label string Required. "ORG" OR "STD"

Screenshots

Org Dashboard

Student Dashboard

Tech Stack

Client: React, TailwindCSS, MaterialUI, Lucide React, Appwrite, SimpleWebAuthn

Server: Node, Express, Appwrite, SimpleWebAuthn

Authors

Appendix

WebAuthentication has been implemented using simplewebauthn, if you want to learn more about it you can refer to their docs here.

Feedback

If you have any feedback, please reach out to us at [email protected]

About

A simple attendance system created using WebAuthn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published