# durgesh-315/admission architecture

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

- Interactive diagram: https://gitdiagram.com/durgesh-315/admission
- Repository: https://github.com/durgesh-315/admission

## Overview

This repository is a user and candidate management system: an Angular frontend provides login, employee administration, candidate screens and a dashboard, while a Spring Boot application supplies the backend. The visible employee flow is user form/list or dashboard → employee HTTP service → backend API; login and candidate profiles have separate clients. Backend implementation files and most frontend feature modules are represented from the tree, but their internal calls and routes were not sampled, so those relationships are omitted or marked unverified.

Main entry points: [`ums-frontend/src/app/core/services/employee.service.ts`](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/employee.service.ts) (Employee client), [`employee-crud/src/main/java/com/example/employeecrud/service`](https://github.com/durgesh-315/admission/tree/main/employee-crud/src/main/java/com/example/employeecrud/service) (Domain services), [`employee-crud/src/main/java/com/example/employeecrud/controller/EmployeeController.java`](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/EmployeeController.java) (Employee endpoints), [`employee-crud/src/main/java/com/example/employeecrud/service/AuthService.java`](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/service/AuthService.java) (Auth service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Angular frontend"]
  node_login["Login screen<br/>[login.ts]"]
  node_authclient["Auth client<br/>[auth.service.ts]"]
  node_guard["Route guard<br/>[auth.guard.ts]"]
  node_jwt["JWT interceptor<br/>[jwt.interceptor.ts]"]
  node_routes["App routes<br/>[app.routes.ts]"]
  node_userlist["Employee list<br/>[user-list.ts]"]
  node_userform["Employee form<br/>[user-form.ts]"]
  node_employeedetails["Employee details<br/>[user-details.ts]"]
  node_dashboard["Dashboard<br/>[dashboard.ts]"]
  node_employeesvc["Employee client"]
  node_candidateviews["Candidate screens"]
  node_candidatesvc["Candidate client"]
  node_statesvc["State client<br/>[state.service.ts]"]
end

subgraph group_backend["Spring Boot API"]
  node_authcontroller["Auth endpoints"]
  node_employeecontroller["Employee endpoints"]
  node_candidatecontroller["Candidate endpoints"]
  node_statecontroller["State endpoints"]
  node_files["File storage"]
end

subgraph group_domain["Domain and persistence"]
  node_services["Domain services"]
  node_repositories["Repositories"]
  node_entities["Domain entities"]
end

subgraph group_security["Authentication"]
  node_authservice["Auth service<br/>[AuthService.java]"]
  node_jwtservice["JWT handling<br/>[JwtService.java]"]
  node_userdetails["User lookup"]
end

node_admin(("Admin user"))
node_httpapi{{"HTTP API"}}

node_admin -->|"signs in"| node_login
node_admin -->|"manages employees"| node_userlist
node_login -.->|"submits credentials"| node_authclient
node_authclient -->|"posts login"| node_httpapi
node_routes -.->|"guards routes"| node_guard
node_userlist -->|"loads and deletes"| node_employeesvc
node_userform -->|"creates and updates"| node_employeesvc
node_employeedetails -.->|"uses employee data"| node_employeesvc
node_dashboard -->|"loads employees"| node_employeesvc
node_employeesvc -->|"calls employee API"| node_httpapi
node_candidateviews -.->|"uses candidate client"| node_candidatesvc
node_candidatesvc -->|"calls candidate API"| node_httpapi
node_statesvc -.->|"calls state API"| node_httpapi
node_httpapi -.->|"routes auth"| node_authcontroller
node_httpapi -.->|"routes employees"| node_employeecontroller
node_httpapi -.->|"routes candidates"| node_candidatecontroller
node_httpapi -.->|"routes states"| node_statecontroller
node_authcontroller -.->|"delegates auth"| node_authservice
node_employeecontroller -.->|"delegates operations"| node_services
node_candidatecontroller -.->|"delegates operations"| node_services
node_statecontroller -.->|"delegates operations"| node_services
node_services -.->|"accesses data"| node_repositories
node_repositories -.->|"persists entities"| node_entities
node_authservice -.->|"uses tokens"| node_jwtservice
node_authservice -.->|"looks up users"| node_userdetails
node_employeecontroller -.->|"handles uploads"| node_files

click node_login "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/auth/login/login.ts"
click node_authclient "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/auth.service.ts"
click node_guard "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/guards/auth.guard.ts"
click node_jwt "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/interceptors/jwt.interceptor.ts"
click node_routes "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/app.routes.ts"
click node_userlist "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/users/user-list/user-list.ts"
click node_userform "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/users/user-form/user-form.ts"
click node_employeedetails "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/users/user-details/user-details.ts"
click node_dashboard "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/dashboard/dashboard.ts"
click node_employeesvc "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/employee.service.ts"
click node_candidateviews "https://github.com/durgesh-315/admission/tree/main/ums-frontend/src/app/features/candidates"
click node_candidatesvc "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/candidate-profile.service.ts"
click node_statesvc "https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/state.service.ts"
click node_authcontroller "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/AuthController.java"
click node_employeecontroller "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/EmployeeController.java"
click node_candidatecontroller "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/CandidateProfileController.java"
click node_statecontroller "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/StateController.java"
click node_services "https://github.com/durgesh-315/admission/tree/main/employee-crud/src/main/java/com/example/employeecrud/service"
click node_repositories "https://github.com/durgesh-315/admission/tree/main/employee-crud/src/main/java/com/example/employeecrud/repository"
click node_entities "https://github.com/durgesh-315/admission/tree/main/employee-crud/src/main/java/com/example/employeecrud/entity"
click node_authservice "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/service/AuthService.java"
click node_jwtservice "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/security/JwtService.java"
click node_userdetails "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/security/CustomUserDetailsService.java"
click node_files "https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/service/FileStorageService.java"

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_login,node_authclient,node_guard,node_jwt,node_routes,node_userlist,node_userform,node_employeedetails,node_dashboard,node_employeesvc,node_candidateviews,node_candidatesvc,node_statesvc,node_admin toneBlue
class node_authcontroller,node_employeecontroller,node_candidatecontroller,node_statecontroller,node_files toneAmber
class node_services,node_repositories,node_entities,node_httpapi toneMint
class node_authservice,node_jwtservice,node_userdetails toneRose
```

## Components

### Angular frontend

- [Login screen](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/auth/login/login.ts): `ums-frontend/src/app/features/auth/login/login.ts`
- [Auth client](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/auth.service.ts): `ums-frontend/src/app/core/services/auth.service.ts`
- [Route guard](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/guards/auth.guard.ts): `ums-frontend/src/app/core/guards/auth.guard.ts`
- [JWT interceptor](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/interceptors/jwt.interceptor.ts): `ums-frontend/src/app/core/interceptors/jwt.interceptor.ts`
- [App routes](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/app.routes.ts): `ums-frontend/src/app/app.routes.ts`
- [Employee list](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/users/user-list/user-list.ts): `ums-frontend/src/app/features/users/user-list/user-list.ts`
- [Employee form](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/users/user-form/user-form.ts): `ums-frontend/src/app/features/users/user-form/user-form.ts`
- [Employee details](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/users/user-details/user-details.ts): `ums-frontend/src/app/features/users/user-details/user-details.ts`
- [Dashboard](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/features/dashboard/dashboard.ts): `ums-frontend/src/app/features/dashboard/dashboard.ts`
- [Employee client](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/employee.service.ts): `ums-frontend/src/app/core/services/employee.service.ts`
- [Candidate screens](https://github.com/durgesh-315/admission/tree/main/ums-frontend/src/app/features/candidates): `ums-frontend/src/app/features/candidates`
- [Candidate client](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/candidate-profile.service.ts): `ums-frontend/src/app/core/services/candidate-profile.service.ts`
- [State client](https://github.com/durgesh-315/admission/blob/main/ums-frontend/src/app/core/services/state.service.ts): `ums-frontend/src/app/core/services/state.service.ts`

### Spring Boot API

- [Auth endpoints](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/AuthController.java): `employee-crud/src/main/java/com/example/employeecrud/controller/AuthController.java`
- [Employee endpoints](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/EmployeeController.java): `employee-crud/src/main/java/com/example/employeecrud/controller/EmployeeController.java`
- [Candidate endpoints](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/CandidateProfileController.java): `employee-crud/src/main/java/com/example/employeecrud/controller/CandidateProfileController.java`
- [State endpoints](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/controller/StateController.java): `employee-crud/src/main/java/com/example/employeecrud/controller/StateController.java`
- [File storage](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/service/FileStorageService.java): `employee-crud/src/main/java/com/example/employeecrud/service/FileStorageService.java`

### Domain and persistence

- [Domain services](https://github.com/durgesh-315/admission/tree/main/employee-crud/src/main/java/com/example/employeecrud/service): `employee-crud/src/main/java/com/example/employeecrud/service`
- [Repositories](https://github.com/durgesh-315/admission/tree/main/employee-crud/src/main/java/com/example/employeecrud/repository): `employee-crud/src/main/java/com/example/employeecrud/repository`
- [Domain entities](https://github.com/durgesh-315/admission/tree/main/employee-crud/src/main/java/com/example/employeecrud/entity): `employee-crud/src/main/java/com/example/employeecrud/entity`

### Authentication

- [Auth service](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/service/AuthService.java): `employee-crud/src/main/java/com/example/employeecrud/service/AuthService.java`
- [JWT handling](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/security/JwtService.java): `employee-crud/src/main/java/com/example/employeecrud/security/JwtService.java`
- [User lookup](https://github.com/durgesh-315/admission/blob/main/employee-crud/src/main/java/com/example/employeecrud/security/CustomUserDetailsService.java): `employee-crud/src/main/java/com/example/employeecrud/security/CustomUserDetailsService.java`

### Other components

- **Admin user**
- **HTTP API**

## Connections

- Admin user → Login screen: signs in
- Admin user → Employee list: manages employees
- Login screen → Auth client: submits credentials
- Auth client → HTTP API: posts login (evidence: `ums-frontend/src/app/core/services/auth.service.ts`)
- App routes → Route guard: guards routes
- Employee list → Employee client: loads and deletes (evidence: `ums-frontend/src/app/features/users/user-list/user-list.ts`)
- Employee form → Employee client: creates and updates (evidence: `ums-frontend/src/app/features/users/user-form/user-form.ts`)
- Employee details → Employee client: uses employee data
- Dashboard → Employee client: loads employees (evidence: `ums-frontend/src/app/features/dashboard/dashboard.ts`)
- Employee client → HTTP API: calls employee API (evidence: `ums-frontend/src/app/core/services/employee.service.ts`)
- Candidate screens → Candidate client: uses candidate client
- Candidate client → HTTP API: calls candidate API (evidence: `ums-frontend/src/app/core/services/candidate-profile.service.ts`)
- State client → HTTP API: calls state API
- HTTP API → Auth endpoints: routes auth
- HTTP API → Employee endpoints: routes employees
- HTTP API → Candidate endpoints: routes candidates
- HTTP API → State endpoints: routes states
- Auth endpoints → Auth service: delegates auth
- Employee endpoints → Domain services: delegates operations
- Candidate endpoints → Domain services: delegates operations
- State endpoints → Domain services: delegates operations
- Domain services → Repositories: accesses data
- Repositories → Domain entities: persists entities
- Auth service → JWT handling: uses tokens
- Auth service → User lookup: looks up users
- Employee endpoints → File storage: handles uploads
