How mahmoudesawi/hr works
This is a full-stack HR management system: staff use an Angular SPA to reach an ASP.NET Core REST API for sign-in and employee, department, and vacation workflows; the API persists data through Entity Framework Core to SQL Server. The graph includes the documented lookup classifications and role-based JWT authentication. The frontend API integration and some screens are documented but not represented in the sampled component source, so their internal wiring is kept at the documented SPA-to-API boundary.
Main entry points: HrDbContext.cs EF Core context · Program.cs API host · main.ts Angular SPA · AuthController.cs Authentication
Components 13
Angular client
- Angular SPA
Frontend/HR/src/main.ts - Root app
Frontend/HR/src/app/app.ts - Employee screen
Frontend/HR/src/app/components/employees/employees.ts
Web API
- API host
HR/Program.cs
HR workflows
- Authentication
HR/Controllers/AuthController.cs - Employee management
HR/Controllers/EmployeesController.cs - Department tracking
HR/Controllers/DepartmentsController.cs - Vacation tracking
HR/Controllers/VacationsController.cs - Lookup classifications
HR/Model/Lookup.cs - HR entities
HR/Model
Persistence
- EF Core context
HR/HrDbContext.cs
Other components
- HR user
- SQL Server
Connections 17
- HR user → Angular SPA: uses
- Angular SPA → Root app: bootstraps
- Root app → Employee screen: renders
- Angular SPA → API host: REST requests
- API host → Authentication: routes
- API host → Employee management: routes
- API host → Department tracking: routes
- API host → Vacation tracking: routes
- API host → EF Core context: configures
- API host → Authentication: validates JWTs
- Authentication → EF Core context: reads users
- Employee management → EF Core context: queries and saves
- Department tracking → EF Core context: queries and saves
- Vacation tracking → EF Core context: queries and saves
- EF Core context → SQL Server: reads and writes
- EF Core context → HR entities: maps entities
- EF Core context → Lookup classifications: seeds classifications