How ma7moudkolib/hr-managementsystem works
This is a full-stack HR management system: Angular provides user-facing workflows and an ASP.NET Core API implements authentication and HR operations backed by Entity Framework. The principal workflow is a user action through the UI/API, service logic, repositories, and persisted HR records. The README documents company, department, employee, attendance, leave, and payroll capabilities; several implementation files are present in the tree but were not excerpted, so their internal calls are not asserted here. Frontend leave management is explicitly shown using mock data, so it is kept distinct from the API workflow.
Main entry points: ServiceManager.cs Service manager · app.module.ts Angular app · auth Login and registration · leave-manager.component.ts Leave manager
Components 23
Angular application
- Angular app
Frontend/src/app/app.module.ts - Login and registration
Frontend/src/app/features/auth - Company management UI
Frontend/src/app/features/company/company-list/company-list.component.ts - Employee management UI
Frontend/src/app/features/employees/employee-list/employee-list.component.ts - Attendance tracker
Frontend/src/app/features/hr-dashboard/attendance-tracker/attendance-tracker.component.ts - Leave manager
Frontend/src/app/features/hr-dashboard/leave-manager/leave-manager.component.ts - Payroll summary UI
Frontend/src/app/features/hr-dashboard/payroll-summary/payroll-summary.component.ts - Authentication client
Frontend/src/app/services/auth.service.ts - Mock data service
Frontend/src/app/services/mock-data.service.ts
HTTP API
- Authentication API
Backend/src/CompanyEmployees.Presentation/Controllers/AuthenticationController.cs - Companies API
Backend/src/CompanyEmployees.Presentation/Controllers/CompaniesController.cs - Departments API
Backend/src/CompanyEmployees.Presentation/Controllers/DepartmentController.cs - Employees API
Backend/src/CompanyEmployees.Presentation/Controllers/EmployeesController.cs - Attendance API
Backend/src/CompanyEmployees.Presentation/Controllers/AttendanceController.cs - Leave API
Backend/src/CompanyEmployees.Presentation/Controllers/LeaveController.cs - Payroll API
Backend/src/CompanyEmployees.Presentation/Controllers/PayrollController.cs
Application services
- Service manager
Backend/src/Service/ServiceManager.cs - Authentication service
Backend/src/Service/AuthenticationService.cs - HR domain services
Backend/src/Service
Persistence
- Repository manager
Backend/src/Repository/RepositoryManager.cs - HR database context
Backend/src/Repository/DatabaseContext/RepositoryContext.cs
HR workflows
- HR records
Backend/src/Entities/Models
Other components
- HR user
Connections 34
- HR user → Login and registration: uses
- HR user → Company management UI: manages
README.md - HR user → Employee management UI: manages
README.md - HR user → Attendance tracker: tracks
README.md - HR user → Leave manager: manages
Frontend/src/app/features/hr-dashboard/leave-manager/leave-manager.component.ts - HR user → Payroll summary UI: views
README.md - Angular app → Login and registration: declares
Frontend/src/app/app.module.ts - Angular app → Company management UI: declares
Frontend/src/app/app.module.ts - Angular app → Employee management UI: declares
Frontend/src/app/app.module.ts - Angular app → Attendance tracker: declares
Frontend/src/app/app.module.ts - Angular app → Leave manager: declares
Frontend/src/app/app.module.ts - Angular app → Payroll summary UI: declares
Frontend/src/app/app.module.ts - Login and registration → Authentication client: uses
Frontend/src/app/features/auth/register/register.component.ts - Authentication client → Authentication API: posts credentials
Frontend/src/app/services/auth.service.ts - HR user → Authentication API: registers or logs in
README.md - HR user → Companies API: manages
README.md - HR user → Departments API: manages
README.md - HR user → Employees API: manages
README.md - HR user → Attendance API: tracks
README.md - HR user → Leave API: requests approval
README.md - HR user → Payroll API: generates summaries
README.md - Employees API → Service manager: calls services
Backend/src/CompanyEmployees.Presentation/Controllers/EmployeesController.cs - Leave API → Service manager: calls services
Backend/src/CompanyEmployees.Presentation/Controllers/LeaveController.cs - Payroll API → HR domain services: calls payroll service
Backend/src/CompanyEmployees.Presentation/Controllers/PayrollController.cs - Authentication API → Service manager: dispatches authentication
- Companies API → Service manager: dispatches company work
- Departments API → Service manager: dispatches department work
- Attendance API → Service manager: dispatches attendance work
- Service manager → Authentication service: creates
Backend/src/Service/ServiceManager.cs - Service manager → HR domain services: creates services
Backend/src/Service/ServiceManager.cs - HR domain services → Repository manager: uses repositories
- Repository manager → HR database context: uses context
Backend/src/Repository/RepositoryManager.cs - HR database context → HR records: maps records
Backend/src/Repository/DatabaseContext/RepositoryContext.cs - Leave manager → Mock data service: loads and updates
Frontend/src/app/features/hr-dashboard/leave-manager/leave-manager.component.ts