How mailtoraj369/employee-hub-ui works
Employee Hub UI is an Angular experience backed by a Spring Boot API façade that proxies employee queries to a separately configured service. The main user journey is login, guarded dashboard/report navigation, then employee or aggregate data retrieval and display; the Java layer forwards API calls and returns JSON. Metrics and error handling are additional backend capabilities. The repository evidence shows frontend-to-controller routing and controller-to-client calls; the downstream service implementation is outside this repository.
Main entry points: app.routes.ts Route configuration · app.ts Angular app shell · EmployeeController.java Employee API · employee.service.ts HTTP data service
Components 16
Angular experience
- Angular app shell
ui/src/app/app.ts - Route configuration
ui/src/app/routes/app.routes.ts - Login and auth state
ui/src/app/auth/auth.service.ts - Auth route guard
ui/src/app/auth/auth.guard.ts - Employee dashboard
ui/src/app/dashboard/dashboard.component.ts - Employee reports
ui/src/app/report/report.component.ts - HTTP data service
ui/src/app/services/employee.service.ts
Spring API façade
- Spring Boot app
src/main/java/com/acme/employeehub/ui/EmployeeHubUiApplication.java - Employee API
src/main/java/com/acme/employeehub/ui/controller/EmployeeController.java - Downstream REST client
src/main/java/com/acme/employeehub/ui/client/EmployeeRestClient.java - API error handling
src/main/java/com/acme/employeehub/ui/exception/GlobalExceptionHandler.java
API observability
- Metrics endpoints
src/main/java/com/acme/employeehub/ui/controller/MetricsController.java - API metric counters
src/main/java/com/acme/employeehub/ui/config/ApiMetrics.java - Request timing
src/main/java/com/acme/employeehub/ui/config/RequestTimingAspect.java
Other components
- User
- Employee service
Connections 15
- User → Angular app shell: uses
README.md - Angular app shell → Route configuration: configures
- Route configuration → Auth route guard: guards routes
ui/src/app/routes/app.routes.ts - Auth route guard → Login and auth state: checks auth
ui/src/app/auth/auth.guard.ts - Angular app shell → Login and auth state: logs out
ui/src/app/app.ts - Route configuration → Employee dashboard: routes to
ui/src/app/routes/app.routes.ts - Route configuration → Employee reports: routes to
ui/src/app/routes/app.routes.ts - Employee dashboard → HTTP data service: requests employees
ui/src/app/dashboard/dashboard.component.ts - Employee reports → HTTP data service: requests aggregates
ui/src/app/report/report.component.ts - HTTP data service → Employee API: calls API
README.md - Employee API → Downstream REST client: delegates queries
src/main/java/com/acme/employeehub/ui/controller/EmployeeController.java - Downstream REST client → Employee service: calls service
src/main/java/com/acme/employeehub/ui/client/EmployeeRestClient.java - Employee API → API error handling: handled by
- Metrics endpoints → API metric counters: reads counters
src/main/java/com/acme/employeehub/ui/controller/MetricsController.java - Request timing → API metric counters: records timings
src/main/java/com/acme/employeehub/ui/config/RequestTimingAspect.java