A comprehensive Spring Boot application for managing student attendance using QR codes, with holiday management and role-based access control.
- QR Code Attendance - Generate and scan QR codes for attendance
- Student Management - Add, edit, delete students
- Holiday System - Manage holidays with custom date ranges
- Attendance Reports - Generate detailed attendance reports
- Admin - Full system access (students, attendance, holidays)
- Teacher - Mark/view attendance, view students
- User - View students and attendance records
- Predefined holidays (public holidays, vacations)
- Custom date range holidays
- School activity days with attendance
- Automatic attendance rules based on holiday types
- Backend: Spring Boot 3.x, Spring Security, Spring Data JPA
- Database: H2 (development), can be configured for MySQL/PostgreSQL
- Frontend: Thymeleaf, Bootstrap 5, JavaScript
- QR Code: QR Code generation and scanning
- Build Tool: Gradle
- Java 17 or higher
- Gradle 7.x or higher
- Git
- Clone the repository:
git clone https://github.com/devvadams/student-qr.git cd student-qr
2.Build the project:
./gradlew build- Open browser:
http://localhost:8080
- Admin: admin / admin123
- Teacher: teacher / teacher123
- User: user / user123
student-qr-attendance-system/
βββ src/main/java/com/example/studentqr/
β βββ controller/ # MVC Controllers
β βββ model/ # Entity classes
β βββ repository/ # Data repositories
β βββ service/ # Business logic
β βββ config/ # Configuration classes
βββ src/main/resources/
β βββ templates/ # Thymeleaf templates
β βββ static/ # CSS, JS, images
β βββ application.properties
βββ build.gradle # Gradle configuration
- Date Ranges: Support for multi-day holidays
- Activity Days: Special school days with attendance
- Auto-marking: Automatic attendance marking for holidays
- Calendar View: Visual holiday calendar
- Manual Entry: Enter student ID/roll number
- QR Scanning: Scan student QR codes
- Bulk Actions: Mark attendance for entire class
- Reports: Daily, weekly, monthly reports
The application uses H2 in-memory database by default. To use MySQL:
- Update
application.properties:
spring.datasource.url=jdbc:mysql://localhost:3306/studentqr
spring.datasource.username=root
spring.datasource.password=yourpassword
spring.jpa.hibernate.ddl-auto=updateFor email notifications, configure in application.properties:
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=your-email@gmail.com
spring.mail.password=your-app-passwordThe application provides REST APIs for:
- Student management
- Attendance marking
- Holiday management
- Report generation
Run tests:
./gradlew test- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Spring Boot Team
- Bootstrap Team
- All contributors and testers
Make sure it includes:
# Java
*.class
*.jar
*.war
*.ear
*.nar
*.zip
*.tar.gz
*.rar
# Gradle
.gradle/
build/
out/
# IDE
.idea/
*.iml
*.iws
*.ipr
.vscode/
.settings/
.classpath
.project
*.swp
*.swo
# Logs
*.log
logs/
# Database
*.db
*.sql
# OS
.DS_Store
Thumbs.db
MIT License
Copyright (c) 2025 [Adamu Baba Hassan]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# Initialize git (if not already)
git init
# Add all files
git add .
# Commit
git commit -m "Initial commit: Student QR Attendance System"
# Add remote repository
git remote add origin https://github.com/devvadams/student-qr.git
# Push to GitHub
git branch -M main
git push -u origin mainAdd these badges to your README for a professional look:



student-qr-attendance-system/
βββ README.md
βββ LICENSE
βββ .gitignore
βββ build.gradle
βββ gradle/
βββ gradlew
βββ gradlew.bat
βββ src/
βββ main/
βββ java/com/example/studentqr/
βββ resources/