# basahota/aws-ecr-cicd architecture

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

- Interactive diagram: https://gitdiagram.com/basahota/aws-ecr-cicd
- Repository: https://github.com/basahota/aws-ecr-cicd

## Overview

This is a small Spring Boot REST API for managing courses. An HTTP client sends create, list, fetch-by-ID, update, or delete requests to the controller; the controller delegates those operations to the service and returns HTTP status codes and course data. The service stores courses in an in-memory list, not an RDS database—the source comment mentions RDS, but the implementation shown does not connect to one. The graph shows the visible calls and model use; framework-driven startup and HTTP dispatch are not expanded.

Main entry points: [`src/main/java/com/javatechie/controller/CourseController.java`](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/controller/CourseController.java) (Course controller), [`src/main/java/com/javatechie/AwsDemoApplication.java`](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/AwsDemoApplication.java) (Spring Boot entry), [`src/main/java/com/javatechie/service/CourseService.java`](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/service/CourseService.java) (Course service and in-memory state), [`src/main/java/com/javatechie/dto/Course.java`](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/dto/Course.java) (Course model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_application["Spring Boot entry"]
end

subgraph group_api["Course API"]
  node_controller["Course controller"]
end

subgraph group_domain["Course domain"]
  node_service["Course service and in-memory state<br/>[CourseService.java]"]
  node_course["Course model<br/>[Course.java]"]
end

node_client(("HTTP client"))

node_client -->|"sends HTTP requests"| node_controller
node_controller -->|"delegates operations"| node_service
node_service -->|"uses course data"| node_course
node_controller -->|"returns HTTP responses"| node_client
node_application -->|"starts Spring Boot"| node_application

click node_application "https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/AwsDemoApplication.java"
click node_controller "https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/controller/CourseController.java"
click node_service "https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/service/CourseService.java"
click node_course "https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/dto/Course.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_application,node_client toneBlue
class node_controller toneAmber
class node_service,node_course toneMint
```

## Components

### Application entry

- [Spring Boot entry](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/AwsDemoApplication.java): `src/main/java/com/javatechie/AwsDemoApplication.java`

### Course API

- [Course controller](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/controller/CourseController.java): `src/main/java/com/javatechie/controller/CourseController.java`

### Course domain

- [Course service and in-memory state](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/service/CourseService.java): `src/main/java/com/javatechie/service/CourseService.java`
- [Course model](https://github.com/basahota/aws-ecr-cicd/blob/main/src/main/java/com/javatechie/dto/Course.java): `src/main/java/com/javatechie/dto/Course.java`

### Other components

- **HTTP client**

## Connections

- HTTP client → Course controller: sends HTTP requests (evidence: `src/main/java/com/javatechie/controller/CourseController.java`)
- Course controller → Course service and in-memory state: delegates operations (evidence: `src/main/java/com/javatechie/controller/CourseController.java`)
- Course service and in-memory state → Course model: uses course data (evidence: `src/main/java/com/javatechie/service/CourseService.java`)
- Course controller → HTTP client: returns HTTP responses (evidence: `src/main/java/com/javatechie/controller/CourseController.java`)
- Spring Boot entry → Spring Boot entry: starts Spring Boot (evidence: `src/main/java/com/javatechie/AwsDemoApplication.java`)
