# davitsroun/zentrio-backend architecture

> Architecture diagram of the GitHub repository davitsroun/zentrio-backend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/davitsroun/zentrio-backend
- Repository: https://github.com/davitsroun/zentrio-backend

## Overview

The tree identifies Zentrio Backend as a Java/Spring backend with user API, persistence, JWT security, and OTP/email verification areas. A likely user-account workflow spans these areas, but the README is empty and no source excerpts are available, so runtime call order, endpoint behavior, and integration relationships cannot be verified. The graph therefore records the identifiable product components without inventing connections or external services.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_user["User Accounts"]
  node_user_api["User API"]
  node_user_service["User Service<br/>[AppUserImpl.java]"]
  node_user_contract["User Service Contract"]
  node_user_repository[("User Repository")]
  node_user_entity["User Entity<br/>[AppUser.java]"]
  node_user_dtos["User DTOs"]
end

subgraph group_security["Authentication"]
  node_jwt_filter["JWT Filter<br/>[JwtAuthFilter.java]"]
  node_jwt_service["JWT Service<br/>[JwtService.java]"]
  node_security_config["Security Config"]
  node_auth_entry["Auth Entry Point"]
end

subgraph group_verification["Verification"]
  node_otp_service["OTP Service<br/>[OtpService.java]"]
  node_otp_entry["OTP Entry<br/>[OtpEntry.java]"]
  node_email_service["Email Service<br/>[EmailService.java]"]
end

subgraph group_platform["Backend Platform"]
  node_app_config["App Config<br/>[AppConfig.java]"]
  node_minio_config["MinIO Config<br/>[MinioConfig.java]"]
  node_exception_handler["Exception Handler"]
  node_application["Application Entry"]
end

node_client(("API Client"))

click node_user_api "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/controller/AppUserController.java"
click node_user_service "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/service/serviceImpl/AppUserImpl.java"
click node_user_contract "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/service/AppUserService.java"
click node_user_repository "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/repository/AppUserRepository.java"
click node_user_entity "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/model/enity/AppUser.java"
click node_user_dtos "https://github.com/davitsroun/zentrio-backend/tree/master/src/main/java/org/example/zentriobackend/model/dto"
click node_jwt_filter "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/jwt/JwtAuthFilter.java"
click node_jwt_service "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/jwt/JwtService.java"
click node_security_config "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/configuration/SecurityConfig.java"
click node_auth_entry "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/jwt/JwtAuthEntryPoint.java"
click node_otp_service "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/verfiy/OtpService.java"
click node_otp_entry "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/verfiy/OtpEntry.java"
click node_email_service "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/verfiy/EmailService.java"
click node_app_config "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/configuration/AppConfig.java"
click node_minio_config "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/configuration/MinioConfig.java"
click node_exception_handler "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/exception/GlobalExceptionHandler.java"
click node_application "https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/ZentrioBackendApplication.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_user_api,node_user_service,node_user_contract,node_user_repository,node_user_entity,node_user_dtos,node_client toneBlue
class node_jwt_filter,node_jwt_service,node_security_config,node_auth_entry toneAmber
class node_otp_service,node_otp_entry,node_email_service toneMint
class node_app_config,node_minio_config,node_exception_handler,node_application toneRose
```

## Components

### User Accounts

- [User API](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/controller/AppUserController.java): `src/main/java/org/example/zentriobackend/controller/AppUserController.java`
- [User Service](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/service/serviceImpl/AppUserImpl.java): `src/main/java/org/example/zentriobackend/service/serviceImpl/AppUserImpl.java`
- [User Service Contract](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/service/AppUserService.java): `src/main/java/org/example/zentriobackend/service/AppUserService.java`
- [User Repository](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/repository/AppUserRepository.java): `src/main/java/org/example/zentriobackend/repository/AppUserRepository.java`
- [User Entity](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/model/enity/AppUser.java): `src/main/java/org/example/zentriobackend/model/enity/AppUser.java`
- [User DTOs](https://github.com/davitsroun/zentrio-backend/tree/master/src/main/java/org/example/zentriobackend/model/dto): `src/main/java/org/example/zentriobackend/model/dto`

### Authentication

- [JWT Filter](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/jwt/JwtAuthFilter.java): `src/main/java/org/example/zentriobackend/jwt/JwtAuthFilter.java`
- [JWT Service](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/jwt/JwtService.java): `src/main/java/org/example/zentriobackend/jwt/JwtService.java`
- [Security Config](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/configuration/SecurityConfig.java): `src/main/java/org/example/zentriobackend/configuration/SecurityConfig.java`
- [Auth Entry Point](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/jwt/JwtAuthEntryPoint.java): `src/main/java/org/example/zentriobackend/jwt/JwtAuthEntryPoint.java`

### Verification

- [OTP Service](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/verfiy/OtpService.java): `src/main/java/org/example/zentriobackend/verfiy/OtpService.java`
- [OTP Entry](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/verfiy/OtpEntry.java): `src/main/java/org/example/zentriobackend/verfiy/OtpEntry.java`
- [Email Service](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/verfiy/EmailService.java): `src/main/java/org/example/zentriobackend/verfiy/EmailService.java`

### Backend Platform

- [App Config](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/configuration/AppConfig.java): `src/main/java/org/example/zentriobackend/configuration/AppConfig.java`
- [MinIO Config](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/configuration/MinioConfig.java): `src/main/java/org/example/zentriobackend/configuration/MinioConfig.java`
- [Exception Handler](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/exception/GlobalExceptionHandler.java): `src/main/java/org/example/zentriobackend/exception/GlobalExceptionHandler.java`
- [Application Entry](https://github.com/davitsroun/zentrio-backend/blob/master/src/main/java/org/example/zentriobackend/ZentrioBackendApplication.java): `src/main/java/org/example/zentriobackend/ZentrioBackendApplication.java`

### Other components

- **API Client**
