π Leave Tracker
A full-stack Leave Management and Attendance Tracking System that helps students monitor attendance and manage allowable leaves based on the 80% attendance rule.
Built using React, Node.js, Express, MongoDB, and JWT Authentication.
π Live Demo
Frontend (Vercel) https://your-vercel-app.vercel.app
Backend API (Render) https://leave-tracker-z363.onrender.com
π Tech Stack
Frontend
React (Vite)
Tailwind CSS
Axios
dnd-kit (Drag & Drop)
Backend
Node.js
Express.js
MongoDB Atlas
Mongoose
JWT Authentication
β¨ Features
β’ User authentication (Register / Login with JWT) β’ Add and manage subjects (15 / 30 / 45 lecture types) β’ Automatic 80% attendance rule calculation β’ Mark leaves for subjects β’ Leave history with search and filters β’ Drag and drop subject reordering β’ Delete subjects and leave records β’ Attendance analytics dashboard β’ Fully responsive UI (desktop + mobile)
π Project Structure
Leave-Tracker βββ client/ β React frontend βββ server/ β Express backend βββ README.md
βοΈ Running the Project Locally
Clone the repository
git clone https://github.com/yourusername/leave-tracker.git
cd leave-tracker
Backend setup
cd server npm install
Create .env inside server/
PORT=7777 MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key RESEND_API_KEY=your_resend_api_key
Start backend
npm start
Frontend setup
cd client npm install npm run dev
Frontend runs on: http://localhost:5173
π Environment Variables
Backend (.env)
PORT MONGO_URI JWT_SECRET RESEND_API_KEY
Frontend (.env)
VITE_API_BASE=https://leave-tracker-z363.onrender.com
π¨βπ» Author
Vedang Mane BTech CSE Student Full Stack Developer
β Support
If you like this project, consider starring the repository.