A comprehensive web-based attendance management system built with HTML, CSS, JavaScript, and Firebase Firestore.
-
User Authentication
- Secure login and registration
- Email/password authentication
- Session management
-
Dashboard
- Real-time attendance statistics
- Digital clock with date
- Quick overview of present/absent employees
-
Employee Management
- Add, edit, and delete employee records
- Track employee details (ID, Name, CNIC, Mobile)
- Employee status management (Active/Inactive)
-
Attendance Tracking
- Mark attendance with multiple statuses (Present, Absent, Leave, OFF, WFH, DO)
- Add comments for Leave and DO statuses
- Update previous attendance records
- Bulk mark all as present
-
Reporting
- Daily attendance reports
- Monthly calendar view
- Employee-specific reports
- Export to Excel/PDF (placeholder)
- Firebase account (https://firebase.google.com/)
- Modern web browser with JavaScript enabled
-
Create a Firebase Project
- Go to the Firebase Console
- Create a new project
- Enable Authentication (Email/Password)
- Create a Firestore Database in production mode
- Get your Firebase configuration
-
Configure Firebase
- Open
firebase-config.js - Replace the placeholder values with your Firebase project configuration
- Open
-
Deploy the Application
- You can host this on any static web hosting service (Firebase Hosting, Netlify, Vercel, etc.)
- For local development, you can use a simple HTTP server like
http-serverorlive-server
ams-attendance-app/
├── css/
│ └── style.css # Main stylesheet
├── js/
│ ├── app.js # Core application logic
│ ├── auth.js # Authentication functions
│ ├── dashboard.js # Dashboard functionality
│ ├── employees.js # Employee management
│ ├── attendance.js # Attendance tracking
│ ├── reports.js # Reporting functionality
│ └── firebase-config.js # Firebase configuration
├── index.html # Login/Registration
├── dashboard.html # Main dashboard
├── employees.html # Employee management
├── attendance.html # Attendance marking
├── reports.html # Reports
└── README.md # This file
Set up the following security rules in your Firestore database:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// Allow read/write for authenticated users
match /{document=**} {
allow read, write: if request.auth != null;
}
// Additional security rules can be added here
// to restrict access to specific collections/documents
}
}-
Login
- Open
index.htmlin a web browser - Register a new account or login with existing credentials
- Open
-
Dashboard
- View attendance statistics at a glance
- Navigate to different sections using the sidebar
-
Manage Employees
- Add new employees with their details
- Edit or remove existing employee records
- Update employee status
-
Mark Attendance
- Select a date to view/edit attendance
- Choose status for each employee
- Add comments for Leave/DO statuses
- Save attendance records
-
Generate Reports
- View daily attendance reports
- Browse monthly calendar view
- Export reports (placeholder)
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
For support, please open an issue in the GitHub repository.