The Employee Management System (EMS) is a web-based application built using React (Vite) for the frontend, Node.js (Express.js) for the backend, and MySQL (via XAMPP ) as the database. The system allows administrators to manage employees, categorize them, and track salary information.
/EmployeeMS
│── /employeems # Frontend (React + Vite)
│── /server # Backend (Node.js + Express)/mysql
-
Admin Dashboard
- View total admins, employees, and salaries.
- Manage categories.
-
Employee Management
- List all employees.
- View detailed employee profiles.
- Update or delete employee information.
-
Authentication System
- Admin login with email and password.
- Secure password storage.
-
MySQL Database Integration
- Tables for admin, categories, and employees.
- React (Vite)
- Bootstrap (for styling)
- Node.js (Express.js)
- Axios (for API calls)
- MySQL (via XAMPP)
npm install # to install dependenciescd employeems
npm run dev # Start the frontend (Runs on Vite default port)cd server
npm install # Install backend dependencies
npm start # Start the server- Open XAMPP Control Panel and start Apache & MySQL.
- Open ** Workbench** and create a database:
CREATE DATABASE employeems;
- Create required tables:
CREATE TABLE admin ( id INT AUTO_INCREMENT PRIMARY KEY, email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL ); CREATE TABLE category ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL ); CREATE TABLE employee ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, salary DECIMAL(10,2) NOT NULL, image VARCHAR(255) );
- Import Database Structure Screenshot:








