Skip to content
mohitMaliJsPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Management System

A full-stack application for managing organizations, teams, employees, and leave requests.

Features

  • Authentication and authorization with role-based access control
  • Organization and team management
  • Employee management with reporting structure
  • Leave request and approval system
  • Responsive UI with modern design

Tech Stack

Frontend

  • Next.js 14 with App Router
  • TypeScript
  • Tailwind CSS
  • Shadcn UI components
  • NextAuth.js for authentication
  • React Hook Form for form handling
  • Zod for validation

Backend

  • NestJS
  • TypeScript
  • Prisma ORM
  • MongoDB
  • JWT authentication
  • Passport.js
  • Class-validator

Getting Started

Prerequisites

  • Node.js 18+ and npm
  • MongoDB (local or Atlas)

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/employee-management.git
cd employee-management
  1. Install dependencies:
# Install backend dependencies
cd backend
npm install

# Install frontend dependencies
cd ../frontend
npm install
  1. Set up environment variables:

Backend (.env)

DATABASE_URL="mongodb+srv://username:password@cluster.mongodb.net/employee-management?retryWrites=true&w=majority"
JWT_SECRET="your-jwt-secret"
JWT_EXPIRATION="1d"
PORT=12001

Frontend (.env.local)

NEXT_PUBLIC_API_URL=http://localhost:12001
NEXTAUTH_URL=http://localhost:8080
NEXTAUTH_SECRET=your-nextauth-secret
  1. Generate Prisma client:
cd backend
npx prisma generate
  1. Seed the database:
cd backend
npm run prisma:seed

Running the Application

  1. Start the backend:
cd backend
npm run start:dev
  1. Start the frontend:
cd frontend
npm run dev
  1. Access the application:

Default Users

After seeding the database, you can log in with the following credentials:

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages