# etsisi-ems/pipeline-ci-githubactions-java architecture

> Architecture diagram of the GitHub repository etsisi-ems/pipeline-ci-githubactions-java, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/etsisi-ems/pipeline-ci-githubactions-java
- Repository: https://github.com/etsisi-ems/pipeline-ci-githubactions-java

## Overview

This is a small Spring Boot greeting application in a CI/CD training repository. A visitor requests the greeting page; the controller redirects the root path to `/hola`, supplies a name and background value to the view model, and returns the `hola` template. The servlet initializer provides an alternate deployment entry point. Terraform files are present, but their contents and connections to the application were not sampled, so they are represented as a separate infrastructure capability without inferred edges.

Main entry points: [`src/main/java/es/upm/etsisi/ems/HolaController.java`](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/HolaController.java) (Greeting controller), [`src/main/java/es/upm/etsisi/ems/DemoServletInitializer.java`](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/DemoServletInitializer.java) (Servlet initializer), [`src/main/java/es/upm/etsisi/ems/DemoApplication.java`](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/DemoApplication.java) (Spring Boot app), [`src/main/resources/templates/hola.html`](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/resources/templates/hola.html) (Greeting template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Web application"]
  node_application["Spring Boot app"]
  node_servlet["Servlet initializer"]
  node_controller["Greeting controller"]
end

subgraph group_presentation["Page presentation"]
  node_template["Greeting template<br/>[hola.html]"]
  node_styles["Page styles<br/>[style.css]"]
end

subgraph group_infrastructure["Infrastructure"]
  node_terraform["Terraform configuration"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests page"| node_controller
node_controller -->|"returns view"| node_template
node_servlet -->|"configures sources"| node_application

click node_application "https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/DemoApplication.java"
click node_servlet "https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/DemoServletInitializer.java"
click node_controller "https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/HolaController.java"
click node_template "https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/resources/templates/hola.html"
click node_styles "https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/resources/static/css/style.css"
click node_terraform "https://github.com/etsisi-ems/pipeline-ci-githubactions-java/tree/main/iac"

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_application,node_servlet,node_controller toneBlue
class node_template,node_styles toneAmber
class node_terraform toneMint
class node_visitor toneIndigo
```

## Components

### Web application

- [Spring Boot app](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/DemoApplication.java): `src/main/java/es/upm/etsisi/ems/DemoApplication.java`
- [Servlet initializer](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/DemoServletInitializer.java): `src/main/java/es/upm/etsisi/ems/DemoServletInitializer.java`
- [Greeting controller](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/java/es/upm/etsisi/ems/HolaController.java): `src/main/java/es/upm/etsisi/ems/HolaController.java`

### Page presentation

- [Greeting template](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/resources/templates/hola.html): `src/main/resources/templates/hola.html`
- [Page styles](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/blob/main/src/main/resources/static/css/style.css): `src/main/resources/static/css/style.css`

### Infrastructure

- [Terraform configuration](https://github.com/etsisi-ems/pipeline-ci-githubactions-java/tree/main/iac): `iac`

### Other components

- **Visitor**

## Connections

- Visitor → Greeting controller: requests page (evidence: `src/main/java/es/upm/etsisi/ems/HolaController.java`)
- Greeting controller → Greeting template: returns view (evidence: `src/main/java/es/upm/etsisi/ems/HolaController.java`)
- Servlet initializer → Spring Boot app: configures sources (evidence: `src/main/java/es/upm/etsisi/ems/DemoServletInitializer.java`)
