The EMS Backend is a scalable RESTful API built with the MERN stack to manage employee records, departments, and HR operations efficiently.
It handles authentication, authorization, and data management while ensuring smooth integration with the EMS frontend application.
π₯ Employee Management (CRUD operations) π’ Department Management π Secure Authentication (JWT) π‘οΈ Role-Based Access Control (Admin / Employee / HR) π RESTful API architecture β‘ Scalable Node.js backend ποΈ MongoDB data modeling
- π’ Node.js
- π Express.js
- π MongoDB
- π§© Mongoose
- π JWT Authentication
- π bcrypt
ems-backend/
β£ config/
β£ controllers/
β£ models/
β£ routes/
β£ middlewares/
β£ services/
β£ utils/
β£ app.js
β server.js
git clone https://github.com/SakithNizar/ems-backend.git
cd ems-backendnpm installCreate a .env file:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_keynpm run devPOST /api/auth/registerβ Register userPOST /api/auth/loginβ Login userGET /api/employeesβ Get all employeesPOST /api/employeesβ Create employeePUT /api/employees/:idβ Update employeeDELETE /api/employees/:idβ Delete employee
π JWT authentication π‘οΈ Protected routes π€ Role-based access control π Password hashing with bcrypt
π Admin analytics dashboard π© Email notifications π Real-time updates π± Mobile API support β‘ Performance optimization
Sakith Nizar π GitHub: https://github.com/SakithNizar
This project is licensed under the MIT License.