How jaanviplexoc-ship-it/employee-management-system works
This is an employee-management application with a React client and an ASP.NET Core API. The visible client workflow routes users through login and role/protection checks to dashboard, employee, attendance, and leave screens; the API has authentication plus employee, department, and designation operations backed by services, repositories, and Entity Framework storage. The excerpts establish internal API wiring but do not show client HTTP calls or attendance/leave server endpoints, so those links are omitted. Several screens and API components are represented from the tree and source index rather than inspected excerpts.
Main entry points: Program.cs API composition · AppRoutes.jsx Page routing · EmployeeDbContext.cs Application database · EmployeeService.cs Employee operations
Components 23
React client
- Client app
client/EmployeeApp/src/App.jsx - Page routing
client/EmployeeApp/src/routes/AppRoutes.jsx - Auth state
client/EmployeeApp/src/context/AuthContext.jsx - Login screen
client/EmployeeApp/src/pages/Login.jsx - Registration screen
client/EmployeeApp/src/pages/Register.jsx - Dashboard
client/EmployeeApp/src/pages/Dashboard.jsx - Employee screen
client/EmployeeApp/src/pages/Employees.jsx - Attendance screen
client/EmployeeApp/src/pages/Attendance.jsx - Leave screen
client/EmployeeApp/src/pages/Leave.jsx
API endpoints
- Auth endpoint
server/EmployeeApp.Api/controllers/AuthController.cs - Employee endpoint
server/EmployeeApp.Api/controllers/EmployeeController.cs - Department endpoint
server/EmployeeApp.Api/controllers/DepartmentController.cs - Designation endpoint
server/EmployeeApp.Api/controllers/DesignationController.cs - API composition
server/EmployeeApp.Api/Program.cs
Domain services
- Authentication
server/EmployeeApp.Api/services/AuthService.cs - Employee operations
server/EmployeeApp.Api/services/EmployeeService.cs - Department operations
server/EmployeeApp.Api/services/DepartmentService.cs - Designation operations
server/EmployeeApp.Api/services/DesignationService.cs
Persistence
- Employee repository
server/EmployeeApp.Api/repositories/EmployeeRepository.cs - Department repository
server/EmployeeApp.Api/repositories/DepartmentRepository.cs - Designation repository
server/EmployeeApp.Api/repositories/DesignationRepository.cs - Application database
server/EmployeeApp.Api/data/EmployeeDbContext.cs
Other components
- User
Connections 30
- User → Client app: uses
- Client app → Auth state: provides context
client/EmployeeApp/src/App.jsx - Client app → Page routing: renders routes
client/EmployeeApp/src/App.jsx - Page routing → Login screen: routes to
client/EmployeeApp/src/routes/AppRoutes.jsx - Page routing → Registration screen: routes to
client/EmployeeApp/src/routes/AppRoutes.jsx - Page routing → Dashboard: routes to
client/EmployeeApp/src/routes/AppRoutes.jsx - Page routing → Employee screen: routes to
client/EmployeeApp/src/routes/AppRoutes.jsx - Page routing → Attendance screen: routes to
client/EmployeeApp/src/routes/AppRoutes.jsx - Page routing → Leave screen: routes to
client/EmployeeApp/src/routes/AppRoutes.jsx - Page routing → Auth state: checks auth
- Auth endpoint → Authentication: delegates auth
server/EmployeeApp.Api/controllers/AuthController.cs - Employee endpoint → Employee operations: delegates operations
server/EmployeeApp.Api/controllers/EmployeeController.cs - Department endpoint → Department operations: delegates operations
server/EmployeeApp.Api/controllers/DepartmentController.cs - Designation endpoint → Designation operations: delegates operations
server/EmployeeApp.Api/controllers/DesignationController.cs - Employee operations → Employee repository: delegates CRUD
server/EmployeeApp.Api/services/EmployeeService.cs - Employee operations → Application database: checks and writes
server/EmployeeApp.Api/services/EmployeeService.cs - Department operations → Department repository: delegates data
server/EmployeeApp.Api/services/DepartmentService.cs - Designation operations → Designation repository: delegates data
server/EmployeeApp.Api/services/DesignationService.cs - Authentication → Application database: reads users
server/EmployeeApp.Api/services/AuthService.cs - Employee repository → Application database: reads and writes
server/EmployeeApp.Api/repositories/EmployeeRepository.cs - Department repository → Application database: reads and writes
server/EmployeeApp.Api/repositories/DepartmentRepository.cs - Designation repository → Application database: reads and writes
server/EmployeeApp.Api/repositories/DesignationRepository.cs - API composition → Application database: configures
server/EmployeeApp.Api/Program.cs - API composition → Employee operations: registers service
server/EmployeeApp.Api/Program.cs - API composition → Department operations: registers service
server/EmployeeApp.Api/Program.cs - API composition → Designation operations: registers service
server/EmployeeApp.Api/Program.cs - API composition → Authentication: registers service
server/EmployeeApp.Api/Program.cs - API composition → Employee repository: registers repository
server/EmployeeApp.Api/Program.cs - API composition → Department repository: registers repository
server/EmployeeApp.Api/Program.cs - API composition → Designation repository: registers repository
server/EmployeeApp.Api/Program.cs