# armenvardanyan95/modern-angular-hrms architecture

> Architecture diagram of the GitHub repository armenvardanyan95/modern-angular-hrms, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/armenvardanyan95/modern-angular-hrms
- Repository: https://github.com/armenvardanyan95/modern-angular-hrms

## Overview

This is an Angular HRMS application. Users enter through login or registration, then navigate to employee, recruitment, and work areas; those areas expose employee management, candidate evaluation, project views, and time-off management. The source excerpts show route ownership, authentication setup, and the time-off management service’s request orchestration. Many page-to-service interactions and backend integrations are not shown, so those links are omitted rather than inferred.

Main entry points: [`src/app/app.routes.ts`](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/app.routes.ts) (Top-level routes), [`src/app/pages/employees/employees.routes.ts`](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/employees.routes.ts) (Employee routes), [`src/app/pages/recruitment/recruitment.routes.ts`](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/recruitment/recruitment.routes.ts) (Recruitment routes), [`src/app/pages/work/work.routes.ts`](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/work.routes.ts) (Work routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application and access"]
  node_bootstrap["Application bootstrap<br/>[main.ts]"]
  node_app["Application shell<br/>[app.component.ts]"]
  node_routes["Top-level routes<br/>[app.routes.ts]"]
  node_login["Login<br/>[login.component.ts]"]
  node_registration["Registration"]
  node_auth["Authentication service<br/>[auth.service.ts]"]
  node_guard["Auth guard<br/>[auth.guard.ts]"]
  node_header["Header"]
end

subgraph group_employees["Employee management"]
  node_employee_routes["Employee routes"]
  node_employee_list["Employee list"]
  node_employee_details["Employee details"]
  node_employee_create["Create employee"]
  node_employee_edit["Edit employee"]
  node_employee_service["Employee service"]
  node_employee_resolver["Employee details resolver"]
end

subgraph group_recruitment["Recruitment"]
  node_recruitment_routes["Recruitment routes"]
  node_candidate_list["Candidate list"]
  node_candidate_details["Candidate details"]
  node_candidate_stages["Candidate workflow stages"]
  node_candidate_service["Candidate service"]
  node_candidate_resolver["Candidate details resolver"]
end

subgraph group_work["Work management"]
  node_work_routes["Work routes<br/>[work.routes.ts]"]
  node_project_list["Project list"]
  node_project_details["Project details"]
  node_project_service["Project service<br/>[project.service.ts]"]
  node_timeoff_page["Time-off management"]
  node_timeoff_management["Time-off orchestration"]
  node_timeoff_requests["Time-off request service"]
  node_timeoff_type["Time-off request model"]
  node_notifications["Notification service"]
  node_notification_type["Notification model<br/>[notification.ts]"]
end

node_user(("User"))
node_login_api{{"Authentication API"}}

node_user -.->|"opens"| node_app
node_bootstrap -->|"bootstraps"| node_app
node_app -->|"renders"| node_header
node_app -.->|"hosts routes"| node_routes
node_routes -->|"routes to"| node_login
node_routes -->|"loads"| node_registration
node_routes -->|"loads"| node_employee_routes
node_routes -->|"loads"| node_recruitment_routes
node_routes -->|"loads"| node_work_routes
node_routes -->|"guards access"| node_guard
node_login -->|"uses"| node_auth
node_auth -->|"posts credentials"| node_login_api
node_employee_routes -->|"routes to"| node_employee_list
node_employee_routes -->|"routes to"| node_employee_details
node_employee_routes -->|"routes to"| node_employee_create
node_employee_routes -->|"routes to"| node_employee_edit
node_employee_routes -->|"resolves details"| node_employee_resolver
node_recruitment_routes -->|"routes to"| node_candidate_list
node_recruitment_routes -->|"routes to"| node_candidate_details
node_recruitment_routes -->|"resolves details"| node_candidate_resolver
node_candidate_details -->|"uses stages"| node_candidate_stages
node_work_routes -->|"routes to"| node_project_list
node_work_routes -->|"routes to"| node_project_details
node_work_routes -->|"routes to"| node_timeoff_page
node_timeoff_management -->|"calls"| node_timeoff_requests
node_timeoff_management -->|"uses model"| node_timeoff_type
node_timeoff_management -->|"uses model"| node_notification_type
node_notifications -->|"uses model"| node_notification_type

click node_bootstrap "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/main.ts"
click node_app "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/app.component.ts"
click node_routes "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/app.routes.ts"
click node_login "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/login.component.ts"
click node_registration "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/registration.component.ts"
click node_auth "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/auth.service.ts"
click node_guard "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/guards/auth.guard.ts"
click node_header "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/components/header.component.ts"
click node_employee_routes "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/employees.routes.ts"
click node_employee_list "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/employee-list.component.ts"
click node_employee_details "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/employee-details.component.ts"
click node_employee_create "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/create-employee.component.ts"
click node_employee_edit "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/edit-employee.component.ts"
click node_employee_service "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/employee.service.ts"
click node_recruitment_routes "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/recruitment/recruitment.routes.ts"
click node_candidate_list "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/recruitment/candidates-list.component.ts"
click node_candidate_details "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/recruitment/candidate-details.component.ts"
click node_candidate_stages "https://github.com/armenvardanyan95/modern-angular-hrms/tree/main/src/app/pages/recruitment/components"
click node_candidate_service "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/candidate.service.ts"
click node_work_routes "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/work.routes.ts"
click node_project_list "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/project-list.component.ts"
click node_project_details "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/project-details.component.ts"
click node_project_service "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/project.service.ts"
click node_timeoff_page "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/time-off-management.component.ts"
click node_timeoff_management "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/time-off-management.service.ts"
click node_timeoff_requests "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/time-off-request.service.ts"
click node_timeoff_type "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/infrastructure/types/time-off-request.type.ts"
click node_notifications "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/notification.service.ts"
click node_notification_type "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/infrastructure/types/notification.ts"
click node_employee_resolver "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/resolvers/employee-details.resolver.ts"
click node_candidate_resolver "https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/resolvers/candidate-details.resolver.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_app,node_routes,node_login,node_registration,node_auth,node_guard,node_header,node_user toneBlue
class node_employee_routes,node_employee_list,node_employee_details,node_employee_create,node_employee_edit,node_employee_service,node_employee_resolver toneAmber
class node_recruitment_routes,node_candidate_list,node_candidate_details,node_candidate_stages,node_candidate_service,node_candidate_resolver,node_login_api toneMint
class node_work_routes,node_project_list,node_project_details,node_project_service,node_timeoff_page,node_timeoff_management,node_timeoff_requests,node_timeoff_type,node_notifications,node_notification_type toneRose
```

## Components

### Application and access

- [Application bootstrap](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/main.ts): `src/main.ts`
- [Application shell](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/app.component.ts): `src/app/app.component.ts`
- [Top-level routes](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Login](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/login.component.ts): `src/app/pages/login.component.ts`
- [Registration](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/registration.component.ts): `src/app/pages/registration.component.ts`
- [Authentication service](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/auth.service.ts): `src/app/services/auth.service.ts`
- [Auth guard](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/guards/auth.guard.ts): `src/app/shared/guards/auth.guard.ts`
- [Header](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/components/header.component.ts): `src/app/shared/components/header.component.ts`

### Employee management

- [Employee routes](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/employees.routes.ts): `src/app/pages/employees/employees.routes.ts`
- [Employee list](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/employee-list.component.ts): `src/app/pages/employees/employee-list.component.ts`
- [Employee details](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/employee-details.component.ts): `src/app/pages/employees/employee-details.component.ts`
- [Create employee](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/create-employee.component.ts): `src/app/pages/employees/create-employee.component.ts`
- [Edit employee](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/employees/edit-employee.component.ts): `src/app/pages/employees/edit-employee.component.ts`
- [Employee service](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/employee.service.ts): `src/app/services/employee.service.ts`
- [Employee details resolver](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/resolvers/employee-details.resolver.ts): `src/app/shared/resolvers/employee-details.resolver.ts`

### Recruitment

- [Recruitment routes](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/recruitment/recruitment.routes.ts): `src/app/pages/recruitment/recruitment.routes.ts`
- [Candidate list](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/recruitment/candidates-list.component.ts): `src/app/pages/recruitment/candidates-list.component.ts`
- [Candidate details](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/recruitment/candidate-details.component.ts): `src/app/pages/recruitment/candidate-details.component.ts`
- [Candidate workflow stages](https://github.com/armenvardanyan95/modern-angular-hrms/tree/main/src/app/pages/recruitment/components): `src/app/pages/recruitment/components`
- [Candidate service](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/candidate.service.ts): `src/app/services/candidate.service.ts`
- [Candidate details resolver](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/shared/resolvers/candidate-details.resolver.ts): `src/app/shared/resolvers/candidate-details.resolver.ts`

### Work management

- [Work routes](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/work.routes.ts): `src/app/pages/work/work.routes.ts`
- [Project list](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/project-list.component.ts): `src/app/pages/work/project-list.component.ts`
- [Project details](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/project-details.component.ts): `src/app/pages/work/project-details.component.ts`
- [Project service](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/project.service.ts): `src/app/services/project.service.ts`
- [Time-off management](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/pages/work/time-off-management.component.ts): `src/app/pages/work/time-off-management.component.ts`
- [Time-off orchestration](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/time-off-management.service.ts): `src/app/services/time-off-management.service.ts`
- [Time-off request service](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/time-off-request.service.ts): `src/app/services/time-off-request.service.ts`
- [Time-off request model](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/infrastructure/types/time-off-request.type.ts): `src/app/infrastructure/types/time-off-request.type.ts`
- [Notification service](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/services/notification.service.ts): `src/app/services/notification.service.ts`
- [Notification model](https://github.com/armenvardanyan95/modern-angular-hrms/blob/main/src/app/infrastructure/types/notification.ts): `src/app/infrastructure/types/notification.ts`

### Other components

- **User**
- **Authentication API**

## Connections

- User → Application shell: opens
- Application bootstrap → Application shell: bootstraps (evidence: `src/main.ts`)
- Application shell → Header: renders (evidence: `src/app/app.component.ts`)
- Application shell → Top-level routes: hosts routes
- Top-level routes → Login: routes to (evidence: `src/app/app.routes.ts`)
- Top-level routes → Registration: loads (evidence: `src/app/app.routes.ts`)
- Top-level routes → Employee routes: loads (evidence: `src/app/app.routes.ts`)
- Top-level routes → Recruitment routes: loads (evidence: `src/app/app.routes.ts`)
- Top-level routes → Work routes: loads (evidence: `src/app/app.routes.ts`)
- Top-level routes → Auth guard: guards access (evidence: `src/app/app.routes.ts`)
- Login → Authentication service: uses (evidence: `src/app/pages/login.component.ts`)
- Authentication service → Authentication API: posts credentials (evidence: `src/app/services/auth.service.ts`)
- Employee routes → Employee list: routes to (evidence: `src/app/pages/employees/employees.routes.ts`)
- Employee routes → Employee details: routes to (evidence: `src/app/pages/employees/employees.routes.ts`)
- Employee routes → Create employee: routes to (evidence: `src/app/pages/employees/employees.routes.ts`)
- Employee routes → Edit employee: routes to (evidence: `src/app/pages/employees/employees.routes.ts`)
- Employee routes → Employee details resolver: resolves details (evidence: `src/app/pages/employees/employees.routes.ts`)
- Recruitment routes → Candidate list: routes to (evidence: `src/app/pages/recruitment/recruitment.routes.ts`)
- Recruitment routes → Candidate details: routes to (evidence: `src/app/pages/recruitment/recruitment.routes.ts`)
- Recruitment routes → Candidate details resolver: resolves details (evidence: `src/app/pages/recruitment/recruitment.routes.ts`)
- Candidate details → Candidate workflow stages: uses stages (evidence: `src/app/pages/recruitment/candidate-details.component.ts`)
- Work routes → Project list: routes to (evidence: `src/app/pages/work/work.routes.ts`)
- Work routes → Project details: routes to (evidence: `src/app/pages/work/work.routes.ts`)
- Work routes → Time-off management: routes to (evidence: `src/app/pages/work/work.routes.ts`)
- Time-off orchestration → Time-off request service: calls (evidence: `src/app/services/time-off-management.service.ts`)
- Time-off orchestration → Time-off request model: uses model (evidence: `src/app/services/time-off-management.service.ts`)
- Time-off orchestration → Notification model: uses model (evidence: `src/app/services/time-off-management.service.ts`)
- Notification service → Notification model: uses model (evidence: `src/app/services/notification.service.ts`)
