Designed a simple website integrated into the ML model for tracking the attendance of the hostellers.
- MERN Stack
- Face API
- Clone the repository:
git clone https://github.com/tansexe/Hostel-E-attendance.git
- Install dependencies:
cd Hostel-E-attendance
npm install
- Start the server:
npm start
The server will listen on port 3000 by default.
- Backend-E-Attendance
- Face-Detection
- Frontend-Vite
The Frontend-Vite folder contains the folder for the frontend.
At the heart of the Frontend-Vite folder is the src folder. Within this folder, several subfolders have important roles:
- Assets: This folder houses all the images utilized in the project.
- Components: This folder includes reusable elements such as buttons, navigation bars, and headers.
- Pages: This folder encompasses all the web pages of the website.
Additionally, App.jsx enlists the components to be rendered from different routes. For the routing of pages in React, React-Router-Dom, a third-party library, is integrated.
The Backend-E-attendance folder contains the folder for the backend.
This project has the following endpoints:
Methods | Route | Description | Request | Response |
---|---|---|---|---|
GET | /users/getAllUsers |
To get the info of all users. | _id, Username, RollNo, Hostel, Email, Password, Phone | All the User details are sent. |
POST | /users/Signup |
Registering all the users | Username, RollNo, Hostel, Email, Password, Phone | success: True/False |
POST | /users/Login |
Logging all the users | email, password, Username | message: User found or not |
If you encounter any issues while using the Hostel-E-attendance, consider the following troubleshooting steps:
- Check Dependencies: Ensure you have installed all required dependencies.
- Review Error Messages: If you encounter any errors, carefully review the error messages to identify the source of the issue.