# bekmax/core-app-template architecture

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

- Interactive diagram: https://gitdiagram.com/bekmax/core-app-template
- Repository: https://github.com/bekmax/core-app-template

## Overview

This is a small Spring Boot greeting API. An HTTP client requests either a fixed message or a personalized greeting; the controller delegates to GreetingService, which creates and returns the text. Application starts Spring Boot and enables component scanning. The sampled source shows no persistence or other product subsystems; the README is empty.

Main entry points: [`app/src/main/kotlin/com/core/controller/GreetingController.kt`](https://github.com/bekmax/core-app-template/blob/master/app/src/main/kotlin/com/core/controller/GreetingController.kt) (Greeting controller), [`core/src/main/kotlin/com/core/service/GreetingService.kt`](https://github.com/bekmax/core-app-template/blob/master/core/src/main/kotlin/com/core/service/GreetingService.kt) (Greeting service), [`app/src/main/kotlin/com/core/Application.kt`](https://github.com/bekmax/core-app-template/blob/master/app/src/main/kotlin/com/core/Application.kt) (Application)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_client(("HTTP client"))
node_application["Application<br/>[Application.kt]"]
node_spring["Spring runtime"]
node_controller["Greeting controller"]
node_service["Greeting service<br/>[GreetingService.kt]"]

node_application -->|"starts"| node_spring
node_spring -->|"dispatches requests"| node_controller
node_client -->|"HTTP request"| node_controller
node_controller -->|"requests greeting"| node_service
node_service -->|"returns text"| node_controller
node_controller -->|"HTTP response"| node_client

click node_application "https://github.com/bekmax/core-app-template/blob/master/app/src/main/kotlin/com/core/Application.kt"
click node_controller "https://github.com/bekmax/core-app-template/blob/master/app/src/main/kotlin/com/core/controller/GreetingController.kt"
click node_service "https://github.com/bekmax/core-app-template/blob/master/core/src/main/kotlin/com/core/service/GreetingService.kt"

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_client toneBlue
class node_application,node_controller,node_service toneTeal
class node_spring toneIndigo
```

## Components

### Other components

- **HTTP client**
- [Application](https://github.com/bekmax/core-app-template/blob/master/app/src/main/kotlin/com/core/Application.kt): `app/src/main/kotlin/com/core/Application.kt`
- **Spring runtime**
- [Greeting controller](https://github.com/bekmax/core-app-template/blob/master/app/src/main/kotlin/com/core/controller/GreetingController.kt): `app/src/main/kotlin/com/core/controller/GreetingController.kt`
- [Greeting service](https://github.com/bekmax/core-app-template/blob/master/core/src/main/kotlin/com/core/service/GreetingService.kt): `core/src/main/kotlin/com/core/service/GreetingService.kt`

## Connections

- Application → Spring runtime: starts
- Spring runtime → Greeting controller: dispatches requests
- HTTP client → Greeting controller: HTTP request
- Greeting controller → Greeting service: requests greeting
- Greeting service → Greeting controller: returns text
- Greeting controller → HTTP client: HTTP response
