Skip to content

Employee Management System built with React, Node.js, Express, MongoDB, and TailwindCSS. Manage employees, leaves, and salaries efficiently.

Notifications You must be signed in to change notification settings

ahmedmaajid/Employee-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🧑‍💼 Employee Management System (EMS)

A simple and fully functional MERN Stack Employee Management System that helps manage employees, leaves, roles, and more.


image image image image

Here are some Pictures of the Admin Dashboad, there are more to explore.

Some Pictures of Employee Dashboard image image

🚀 Features

1. Admin dashboard

To manage employees

2. Leave management system

3. Salary Management system

4. Role-based authentication

(Admin / Employee)

5. Secure login using JWT

6. RESTful API

With MongoDB & Express

7. Modern UI built with React


🛠️ Tech Stack

  • Frontend: React, Axios, React Router, TailwindCSS
  • Backend: Node.js, Express.js, MongoDB, Mongoose
  • Auth: JWT (JSON Web Token)

⚙️ Installation Guide

1️⃣ Clone the repository

Use the git clone command:

git clone https://github.com/ahmedmaajid/Employee-Management-System.git
cd EMS

Installing Dependencies

Open two Command Prompts inside the project, in the first one backend

Run this command

cd employee-management-backend
npm install

In the second one

cd employee-management-backend
run npm install

Setup environment variables

Inside the Backend folder, create a .env file and add

MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
PORT=5000

Create the First Admin User

Before using the app, create the first admin account.

cd employee-management-backend
npm run seed-admin

This will create an initial admin credential in your MongoDB database You can sign in by using this credits.
Email: admin@gmail.com
Password: admin123

Now run this command on your first command prompt (The one for backend) npm start

Now run this command on your second cmd (The one for Frontend) npm run dev

Then in your browser

http://localhost:5173

Contributing

Pull requests are welcome For major changes, please open an issue first to discuss what you’d like to improve.

Support

If you found this project helpful, please star this repository to support open-source development.

About

Employee Management System built with React, Node.js, Express, MongoDB, and TailwindCSS. Manage employees, leaves, and salaries efficiently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages