This is the backend of the Leave Management System (LMS), built using Node.js, Express, and MongoDB.
It handles user authentication, leave requests, leave balance tracking, and admin leave approvals.
π Live Server: https://leave-management-system-backend.onrender.com
- Node.js β Backend runtime
- Express.js β Web framework
- MongoDB + Mongoose β Database
- JWT (JSON Web Token) β Authentication
- bcrypt.js β Password hashing
- dotenv β Environment configuration
- CORS β Secure cross-origin requests
- Register and login securely.
- Apply for leave (with type, reason, and dates).
- View leave history and status.
- See remaining leave balance in dashboard.
- View all employee leave requests.
- Approve or reject leaves.
- Automatically updates employee leave balance upon approval.
- Delete leave requests (with automatic balance adjustment).