A location-based attendance system for teachers that allows them to mark their attendance when they're within the college premises using their phones.
- Location Verification: Uses the Haversine formula to calculate distance from the college
- Attendance Marking: Teachers can mark attendance when within 500 meters of the college
- Todo List: Teachers can manage their daily tasks
- Schedule Viewer: Teachers can view their daily and weekly schedules
- Statistics: Teachers can view their attendance records and analytics
- Frontend: Next.js, React, Tailwind CSS, shadcn/ui
- Backend: Next.js API Routes
- Database: MongoDB
- Authentication: Simple ID/Password authentication
- Clone the repository
- Install dependencies:
npm install - Set up environment variables:
- Create a
.env.localfile with: ``` MONGODB_URI=your_mongodb_connection_string ```
- Create a
- Run the development server:
npm run dev - Open http://localhost:3000 in your browser
This project can be deployed to Vercel:
- Push your code to a GitHub repository
- Import the repository to Vercel
- Set up the environment variables
- Deploy
- College Location: Update the coordinates in
app/dashboard/page.tsx - Range Limit: Adjust the 500-meter range in
lib/distance-calculator.ts - Schedule Format: Customize the schedule display format in
app/schedule/page.tsx
MIT