Skip to content

A robust, full-stack Employee Management System (EMS). Built with a React/Vite frontend (styled with Tailwind CSS) and a high-performance Node.js/Express backend, utilizing Prisma and PostgreSQL for reliable data management and JWT for secure authentication.

Notifications You must be signed in to change notification settings

govindmehta/EmployeeManagementSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Employee Management System

A full-stack Employee Management System built with modern web technologies.

πŸš€ Tech Stack

Frontend

  • React - UI library for building user interfaces
  • Vite - Fast build tool and dev server
  • Tailwind CSS - Utility-first CSS framework
  • ESLint - Code linting and quality

Backend

  • Node.js - JavaScript runtime environment
  • Express - Web application framework
  • Prisma - Modern ORM for database management
  • PostgreSQL - Relational database (Neon)
  • JWT - Authentication and authorization
  • bcryptjs - Password hashing
  • Multer - File upload handling

πŸ“ Project Structure

EmployeeManagementSystem/
β”œβ”€β”€ frontend/          # React frontend application
β”‚   β”œβ”€β”€ src/          # Source files
β”‚   β”œβ”€β”€ public/       # Static assets
β”‚   └── package.json  # Frontend dependencies
└── backend/          # Backend application

πŸ› οΈ Installation & Setup

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • PostgreSQL database (or use a cloud provider like Neon)

Frontend Setup

  1. Navigate to the frontend directory:
cd frontend
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Build for production:
npm run build

Backend Setup

  1. Navigate to the backend directory:
cd backend
  1. Install dependencies:
npm install
  1. Set up environment variables:

    • Create a .env file in the backend directory
    • Add the following variables:
      DATABASE_URL="your_postgresql_connection_string"
      JWT_SECRET="your_secret_key"
      PORT=3000
      
  2. Set up the database:

npx prisma generate
npx prisma migrate dev
  1. (Optional) Seed the database:
node userSeed.js
  1. Start the development server:
npm start

The backend server will run on port 3000 by default.

πŸ“ Features

  • Employee data management
  • Modern and responsive UI
  • Fast development experience with Vite
  • Styled with Tailwind CSS

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“„ License

This project is open source and available under the MIT License.

πŸ‘€ Author

Govind Mehta


⭐ Star this repository if you find it helpful!

About

A robust, full-stack Employee Management System (EMS). Built with a React/Vite frontend (styled with Tailwind CSS) and a high-performance Node.js/Express backend, utilizing Prisma and PostgreSQL for reliable data management and JWT for secure authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages