How healenium/healenium-backend works
And Label Major Components
• Docker & Containers: At the highest level, illustrate the two container components – one for the hlm-backend (Spring Boot application) and another for the database (e.g., Postgres as seen in the docker-compose examples).
• API Layer: This consists of the various REST controllers (EliteaController, HealingController, ImageController, ReportController) that expose the backend’s functionalities.
• Service Layer: Represent the business logic encapsulated by services (HealingService, EliteaService, ReportService, SelectorService) and their corresponding implementations.
• Data Access Layer: Show the repositories corresponding to domain entities (HealingRepository, HealingResultRepository, ReportRepository, SelectorRepository) that manage persistence.
• Domain Model & Converters: Include a section to represent the domain models (found in model/domain, model/dto, model/wrapper) along with converters and mappers that transform data between representations.
• Configuration & Integration: Don’t forget the configuration classes (LiquibaseConfiguration, JacksonConfiguration, WebConfiguration) and the external integrations (e.g., GitRestService, AmazonRestService).
Interactions and Data Flow
• That controllers delegate requests to the Service Layer, passing the data through converters if needed.
• Services interacting with the Data Access Layer (repositories) for CRUD operations, and highlight how Liquibase runs migration scripts via its configuration.
Architectural Patterns and Design Principles
• Layered (or MVC-like) architecture: separation of concerns between the presentation (controllers), business (services), and persistence (repositories) layers.
• Use of dependency injection and inversion of control provided by Spring Boot.
• Role of configuration management and migration (Liquibase) in maintaining the database schema.
• Mention how Docker and docker-compose are used for containerization and simplified deployment; the Dockerfile in the project supports creating consistent container images.