Skip to content

πŸš€ A frontend-only Employee Management System built with React.js & Tailwind CSS. Features role-based dashboards, task assignment, employee tracking, and persistent data using localStorage.

Notifications You must be signed in to change notification settings

Angshu09/Employee_Management_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Employee Management System

A Frontend-only Employee Management System built using React.js and Tailwind CSS, leveraging LocalStorage for data persistence. The app features role-based dashboards for admin and employees, allowing seamless task assignment, status tracking, and management.

πŸš€ Features

  • Authentication System
    • One predefined admin
    • Employee registration and login supported
  • Admin Dashboard
    • View all registered employees
    • Assign tasks to any employee
    • Monitor task statistics: Active, New, Completed, Failed
  • Employee Dashboard
    • View personal tasks categorized by status
    • Accept new tasks, mark tasks as complete or failed
  • Local Storage Data Persistence
    • Stores user sessions, employee records, and task data in localStorage
  • Modern UI
    • Built with Tailwind CSS for responsive and elegant styling

πŸ‘€ Admin and Demo Employee Accounts

πŸ” Admin Login (Only One Admin)

The admin is predefined and has full access to all employee-related data and task assignment functionalities.

Name Email Password
John Doe admin@example.com 123

πŸ‘₯ Demo Employee Accounts

These demo users are already registered with sample task data.

Name Email Password
Rahul Kapoor employee1@example.com 123
Ankita Joshi employee2@example.com 123
Ravi Verma employee3@example.com 123
Priya Singh employee4@example.com 123
Karan Mehta employee5@example.com 123

πŸ“ Register as a New Employee

You can also register a new employee from the login page.

⚠️ Only employees can register. Admin cannot be created via the UI.

πŸ’‘ What I Learned

  1. React.js: State, props, context API, and component-based architecture
  2. Tailwind CSS: Building responsive, utility-first styled UIs
  3. LocalStorage API: Data persistence without a backend
  4. Role-based UI Logic: Handling conditional rendering for admin vs. employees
  5. Task Management Logic: Designing features like task assignment, status checking, mark as completed and failed, accepting new tasks etc.

πŸ› οΈ Technologies Used

  • React.js
  • Tailwind CSS
  • JavaScript (ES6+)
  • LocalStorage API
  • Vite (for development & build)

πŸ“‚ Project Structure

EMPLOYEE_MANAGEMENT_SYSTEM/
β”œβ”€β”€ node_modules/             
β”œβ”€β”€ public/                   
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/               
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ auth/
β”‚   β”‚   β”‚   └── Login.jsx
β”‚   β”‚   β”œβ”€β”€ dashboard/
β”‚   β”‚   β”‚   β”œβ”€β”€ AdminDashboard.jsx
β”‚   β”‚   β”‚   └── EmployeeDashboard.jsx
β”‚   β”‚   β”œβ”€β”€ others/
β”‚   β”‚   β”‚   β”œβ”€β”€ Activity.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ ActivityList.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ AllAssignedTasks.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ AllEmployeeDetails.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ CreateTask.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Footer.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Header.jsx
β”‚   β”‚   β”‚   β”œβ”€β”€ Task.jsx
β”‚   β”‚   β”‚   └── TaskList.jsx
β”‚   β”œβ”€β”€ context/
β”‚   β”‚   └── AuthProvider.jsx
β”‚   β”œβ”€β”€ modal/
β”‚   β”‚   └── Modal.jsx
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   └── LocalStorage.jsx
β”‚   β”œβ”€β”€ App.jsx
β”‚   β”œβ”€β”€ main.jsx
β”‚   └── index.css
β”œβ”€β”€ .gitignore
β”œβ”€β”€ eslint.config.js
β”œβ”€β”€ index.html
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ postcss.config.js
β”œβ”€β”€ tailwind.config.js
β”œβ”€β”€ vite.config.js
└── README.md

βš™οΈ Installation and Setup

  1. Clone the Repository

    git clone https://github.com/Angshu09/Employee_Management_System.git
  2. Navigate to the Project Directory

    cd Employee_Management_System
  3. Install Dependencies

    npm install
  4. Start the Development Server

    npm run dev
  5. Open your browser and navigate to http://localhost:5173/ to explore this project.

πŸ“Έ Screenshots

Login & Register

Login Page Register Page

Admin Dashboard

Admin Page Admin Page

Employee Dashboard

Admin Page


Developed with ❀️ by Angshu Das.

About

πŸš€ A frontend-only Employee Management System built with React.js & Tailwind CSS. Features role-based dashboards, task assignment, employee tracking, and persistent data using localStorage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published