{"id":25352494,"url":"https://github.com/bgmanu2426/ams-app","last_synced_at":"2026-05-07T17:36:59.425Z","repository":{"id":268212209,"uuid":"895306280","full_name":"bgmanu2426/ams-app","owner":"bgmanu2426","description":"Attendance Management System using RFID reader and esp32 for mini project","archived":false,"fork":false,"pushed_at":"2024-12-15T07:48:35.000Z","size":512,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T01:36:32.801Z","etag":null,"topics":["arduino","attendance-management-system","esp32","rfid-rc522"],"latest_commit_sha":null,"homepage":"https://ams-app-eta.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bgmanu2426.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-28T00:40:15.000Z","updated_at":"2025-02-05T08:03:48.000Z","dependencies_parsed_at":"2024-12-15T08:34:14.709Z","dependency_job_id":null,"html_url":"https://github.com/bgmanu2426/ams-app","commit_stats":null,"previous_names":["bgmanu2426/ams-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bgmanu2426/ams-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgmanu2426%2Fams-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgmanu2426%2Fams-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgmanu2426%2Fams-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgmanu2426%2Fams-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgmanu2426","download_url":"https://codeload.github.com/bgmanu2426/ams-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgmanu2426%2Fams-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32749101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","attendance-management-system","esp32","rfid-rc522"],"created_at":"2025-02-14T18:54:54.053Z","updated_at":"2026-05-07T17:36:59.410Z","avatar_url":"https://github.com/bgmanu2426.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RFID Attendance Management System\n\n## Problem Statement\n\nThe goal of this project is to develop an RFID-based attendance management system that automates the process of recording and managing attendance. The system uses RFID technology to identify users and store their attendance data in a MongoDB database. The attendance data is then displayed on a web-based user interface, allowing administrators to monitor and manage attendance records efficiently.\n\n## Tech Stack\n\n### Frontend\n- **React**: A JavaScript library for building user interfaces.\n- **Next.js**: A React framework for server-side rendering and generating static websites.\n- **Tailwind CSS**: A utility-first CSS framework for styling.\n- **shadcn/ui**: A component library for building modern web applications.\n\n### Backend\n- **Node.js**: A JavaScript runtime built on Chrome's V8 JavaScript engine.\n- **NextAuth.js**: Authentication for Next.js applications.\n- **Mongoose**: An ODM (Object Data Modeling) library for MongoDB and Node.js.\n- **MongoDB**: A NoSQL database for storing attendance data.\n\n### Hardware Components\n- **ESP32 Microcontroller**: A low-cost, low-power system on a chip (SoC) with Wi-Fi and Bluetooth capabilities.\n- **RFID RC522 Reader**: A low-cost RFID reader module for reading RFID tags.\n- **OLED Display**: A small display module for showing messages and status updates.\n- **MFRC522 Library**: A library for interfacing with the RFID RC522 reader.\n- **SSD1306 Library**: A library for interfacing with the OLED display.\n- **ArduinoJSON Library**: A library for parsing the data received by the backend to json format and extract the message.\n\n## Implementation\n\n### Hardware Setup\n1. **Connect the RFID RC522 Reader** to the ESP32 microcontroller.\n2. **Connect the OLED Display** to the ESP32 microcontroller.\n3. **Configure Wi-Fi** credentials in the `secrets.h` file.\n4. **Upload the Arduino code** to the ESP32 microcontroller.\n\n### Arduino Code\nThe Arduino code reads the RFID tag, connects to Wi-Fi, and sends the tag data to the backend server. The server processes the data and stores it in the MongoDB database. The OLED display shows the status of the operation.\n\n### Backend\nThe backend is built using Next.js and handles the following:\n- **User Authentication**: Using NextAuth.js for secure login and session management.\n- **Database Operations**: Using Mongoose to interact with the MongoDB database.\n- **API Endpoints**: For registering users, recording attendance, and fetching attendance data.\n\n### Frontend\nThe frontend is built using React, Next.js, and shadcn/ui, and provides the following features:\n- **Login Page**: For user authentication.\n- **Home Page**: Displays the attendance table with real-time updates.\n- **Register User Page**: For administrators to register new users.\n\n## Result\n\nThe RFID Attendance Management System successfully automates the process of recording and managing attendance. The system provides real-time updates and displays attendance data on a web-based user interface. The OLED display on the hardware shows the status of the operation, providing immediate feedback to the user.\n\n## Conclusion\n\nThe RFID Attendance Management System is an efficient and reliable solution for managing attendance. The system leverages RFID technology and modern web development frameworks to provide a seamless user experience. The use of ESP32 microcontroller and OLED display enhances the functionality and usability of the system.\n\n## Deployment\n\nThe project is deployed on Vercel, a cloud platform for static sites and serverless functions. The deployment process involves pushing the code to a GitHub repository and connecting the repository to Vercel.\n\n### Live Website\nCheck out the live website: [Attendance Managment System](https://ams-rfid.vercel.app) 🌐\n\n### Endpoints\n\n- **POST /api/register**: Register a new user.\n- **GET /api/attendance**: Fetch attendance data.\n- **GET /api/register-rfid**: Register attendance using RFID.\n\n### Postman Collection\nYou can find the Postman collection for testing the API endpoints [here](https://www.postman.com/solar-moon-851836/workspace/my-workspace/collection/24239785-050688b2-3584-44a1-91ef-97ac4b594c65?action=share\u0026creator=24239785) 📬\n\n## How to Run the Project\n\n### Prerequisites\n- Node.js\n- MongoDB\n- ESP32 Microcontroller\n- RFID RC522 Reader\n- OLED Display\n\n### Steps\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/your-repo/rfid-attendance-system.git\n   cd rfid-attendance-system\n   ```\n\n2. **Install dependencies**:\n   ```bash\n   npm install\n   ```\n\n3. **Set up environment variables**:\n   Create a \n\n.env\n\n file based on the \n\n.env.sample\n\n file and fill in the required values.\n\n4. **Run the development server**:\n   ```bash\n   npm run dev\n   ```\n\n5. **Upload the Arduino code** in `/public/rfid_attendance.ino` and required header files to the ESP32 microcontroller.\n\n6. **Access the application**:\n   Open [http://localhost:3000](http://localhost:3000) in your browser to see the result.\n\n## Future Enhancements\n\n- **Add more authentication methods**: Implement OAuth or other authentication methods.\n- **Improve UI/UX**: Enhance the user interface for better usability.\n- **Add more features**: Implement additional features like reporting and analytics.\n\n## References\n\n- [Next.js Documentation](https://nextjs.org/docs)\n- [NextAuth.js Documentation](https://next-auth.js.org/getting-started/introduction)\n- [Mongoose Documentation](https://mongoosejs.com/docs/guide.html)\n- [ESP32 Documentation](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/)\n- [RFID RC522 Documentation](https://www.nxp.com/docs/en/data-sheet/MFRC522.pdf)\n- [OLED Display Documentation](https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgmanu2426%2Fams-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgmanu2426%2Fams-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgmanu2426%2Fams-app/lists"}