Skip to content

vishal-n2403/Employee360

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Employee360

Live Demo Use App MongoDB React Node.js Express

A modern, full-stack employee management system with real-time analytics and task tracking

πŸš€ Use App β€’ πŸ“Š Live Demo β€’ πŸ› Report Bug β€’ ✨ Request Feature


✨ Features

  • πŸ” Secure Authentication - JWT-based authentication with bcrypt password hashing
  • πŸ‘₯ Employee Management - Complete CRUD operations with advanced filtering
  • πŸ“Š Real-time Analytics - Interactive charts and statistics dashboard
  • βœ… Task Tracking - Assign and monitor tasks with status updates
  • 🎨 Modern UI/UX - Dark theme with glassmorphism effects and smooth animations
  • πŸ“± Responsive Design - Fully optimized for desktop, tablet, and mobile
  • πŸš€ Serverless Deployment - Deployed on Vercel with MongoDB Atlas

πŸ› οΈ Tech Stack

Frontend

  • React 18.3 - Modern UI library with hooks
  • Vite - Lightning-fast build tool and dev server
  • Tailwind CSS - Utility-first CSS framework
  • Framer Motion - Smooth animations and transitions
  • Recharts - Beautiful, composable charts
  • React Router - Client-side routing
  • Axios - HTTP client for API requests
  • React Select - Advanced dropdown components

Backend

  • Node.js 22.x - JavaScript runtime
  • Express 4.18 - Fast, minimalist web framework
  • MongoDB Atlas - Cloud-hosted NoSQL database
  • Mongoose - Elegant MongoDB object modeling
  • JWT - Secure token-based authentication
  • Bcrypt - Password hashing and salting
  • Helmet - Security middleware
  • CORS - Cross-origin resource sharing

DevOps

  • Vercel - Serverless deployment platform
  • GitHub Actions - CI/CD pipeline
  • ESLint - Code linting and formatting

πŸ“Έ Screenshots

Login

Login

Register

Register

Dashboard

Dashboard

Employee Management

Employees

Task Tracking

Tasks


πŸš€ Quick Start

Prerequisites

  • Node.js 20.19+ or 22.12+
  • MongoDB Atlas account (or local MongoDB)
  • npm or yarn

Installation

  1. Clone the repository

    git clone https://github.com/vishal-n2403/Employee360.git
    cd Employee360
  2. Install backend dependencies

    cd backend
    npm install
  3. Install frontend dependencies

    cd ../frontend
    npm install
  4. Configure environment variables

    Create backend/.env:

    PORT=5000
    MONGO_URI=your_mongodb_connection_string
    JWT_SECRET=your_jwt_secret_key
  5. Run the application

    Backend (Terminal 1):

    cd backend
    npm start

    Frontend (Terminal 2):

    cd frontend
    npm run dev
  6. Access the application


πŸ“ Project Structure

Employee360/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ models/          # Mongoose schemas
β”‚   β”‚   β”œβ”€β”€ User.js
β”‚   β”‚   β”œβ”€β”€ Employee.js
β”‚   β”‚   └── Task.js
β”‚   β”œβ”€β”€ routes/          # API routes
β”‚   β”‚   β”œβ”€β”€ auth.routes.js
β”‚   β”‚   β”œβ”€β”€ employee.routes.js
β”‚   β”‚   β”œβ”€β”€ task.routes.js
β”‚   β”‚   └── stats.routes.js
β”‚   β”œβ”€β”€ server.js        # Express app entry point
β”‚   └── package.json
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/  # Reusable components
β”‚   β”‚   β”œβ”€β”€ pages/       # Page components
β”‚   β”‚   β”œβ”€β”€ context/     # React context (Auth)
β”‚   β”‚   β”œβ”€β”€ utils/       # Utility functions
β”‚   β”‚   └── main.jsx     # App entry point
β”‚   β”œβ”€β”€ public/
β”‚   └── package.json
β”‚
└── vercel.json          # Vercel deployment config

πŸ”‘ API Endpoints

Authentication

  • POST /api/auth/register - Register new user
  • POST /api/auth/login - Login user
  • GET /api/auth/me - Get current user

Employees

  • GET /api/employees - Get all employees
  • POST /api/employees - Create employee
  • PUT /api/employees/:id - Update employee
  • DELETE /api/employees/:id - Delete employee

Tasks

  • GET /api/tasks - Get all tasks
  • POST /api/tasks - Create task
  • PUT /api/tasks/:id - Update task
  • DELETE /api/tasks/:id - Delete task

Statistics

  • GET /api/stats/dashboard - Get dashboard analytics

🌐 Deployment

The application is deployed on Vercel with the following configuration:

Environment Variables (Vercel)

MONGO_URI=mongodb+srv://...
JWT_SECRET=your_secret_key

Deploy Your Own

Deploy with Vercel

  1. Click the button above
  2. Add environment variables
  3. Deploy!

🎨 Design Features

  • Dark Theme - Easy on the eyes with a modern aesthetic
  • Glassmorphism - Frosted glass effects for cards and modals
  • Smooth Animations - Framer Motion for delightful interactions
  • Gradient Accents - Indigo/Purple color scheme
  • Responsive Layout - Mobile-first design approach
  • Interactive Charts - Real-time data visualization

🀝 Contributing

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

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“ License

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


πŸ‘€ Author

Vishal N


πŸ™ Acknowledgments


⭐ Star this repo if you find it helpful!

Made with ❀️ by Vishal N

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published