AttendX is a smart attendance management system powered by facial recognition and GPS validation. This frontend is built with React and Tailwind CSS, offering separate dashboards for students, lecturers, and admins.
- 📍 Role-based UI (Student, Lecturer, Admin)
- 🗓️ Real-time timetable filtering
- 👤 Face check-in feedback
- 📊 Attendance history & status tracking
- 🔒 Token-based login integration (DRF Auth)
- React
- Tailwind CSS
- Vite
- Axios
- React Router DOM
# Clone the repo
git clone https://github.com/Chasemako0/Facial-attendance-react.git
cd facial-attendance-react
# Install dependencies
npm install
# Run the frontend (dev)
npm run dev
🌍 Environment Variables
Create a .env file in the root and configure:
VITE_API_URL=http://127.0.0.1:8000/api/
🔐 Authentication
This project expects a token from Django's DRF auth:
Login via /api/auth/login/
Save token using browser storage
Pass token via Authorization: Token <token>