Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Management System (Basic Scaffold)

This is a minimal full‑stack scaffold: React (Vite) frontend, Node.js/Express API, MySQL via Sequelize, JWT auth.

Quick start

Using Docker (recommended)

  1. Start DB and API
docker-compose up -d
  1. API runs at http://localhost:4000. Seeded admin user:

  2. Start frontend

cd client
npm install
npm run dev

Open http://localhost:5173 and login with the seeded admin.

Without Docker

  • Start MySQL locally and create ems_db.
  • Create server/.env (see variables in docker-compose.yml).
  • Run API:
cd server
npm install
npm run dev
  • Run frontend as above.

API endpoints

  • POST /api/auth/login
  • POST /api/auth/register
  • GET /api/employees (auth)
  • POST /api/employees (admin/manager)
  • GET /api/employees/:id (auth)
  • PUT /api/employees/:id (admin/manager)
  • DELETE /api/employees/:id (admin)

Notes

  • JWT is returned on login; frontend stores it in localStorage.
  • Sequelize syncs models automatically on boot.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages