# notharshhaa/cloud-native-devops-project architecture

> Architecture diagram of the GitHub repository notharshhaa/cloud-native-devops-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/notharshhaa/cloud-native-devops-project
- Repository: https://github.com/notharshhaa/cloud-native-devops-project

## Overview

This is an expense-transaction API packaged within a cloud-native DevOps deployment project. The user workflow is HTTP requests to the Express API, transaction operations delegated to the service, and MySQL persistence; the service also uses database configuration. The broader documented lifecycle covers AWS infrastructure, Jenkins CI/CD, EKS/Helm deployment, artifact and code-quality services, and monitoring. Application edges are supported by the source excerpts; broader platform relationships rely on README descriptions, so they are shown only where documented.

Main entry points: [`Jenkinsfile`](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/Jenkinsfile) (Jenkins Pipeline), [`TransactionService.js`](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/TransactionService.js) (Transaction Service), [`terraform/40-eks`](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/40-eks) (EKS Cluster), [`index.js`](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/index.js) (HTTP API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Expense API"]
  node_api["HTTP API<br/>[index.js]"]
  node_service["Transaction Service"]
  node_config["DB Configuration<br/>[DbConfig.js]"]
  node_schema["Database Schema<br/>[backend.sql]"]
end

subgraph group_infra["AWS Infrastructure"]
  node_vpc["VPC Networking"]
  node_security["Security Groups"]
  node_bastion["Bastion Host"]
  node_rds[("RDS Database")]
  node_eks["EKS Cluster"]
  node_cert["TLS Certificates"]
  node_ingress["ALB Ingress"]
  node_ecr["ECR Registry"]
end

subgraph group_deploy["Build and Deployment"]
  node_jenkins["Jenkins Pipeline"]
  node_docker["Container Image"]
  node_helm["Helm Deployment"]
  node_nexus[("Nexus Repository")]
end

subgraph group_ops["Quality and Operations"]
  node_sonar["SonarQube"]
  node_scanning["Security Scanning"]
  node_monitoring["Monitoring Stack"]
end

node_user(("API Client"))
node_mysql[("MySQL Database")]
node_aws{{"AWS"}}

node_user -->|"sends requests"| node_api
node_api -->|"delegates operations"| node_service
node_service -->|"loads credentials"| node_config
node_service -->|"queries transactions"| node_mysql
node_schema -.->|"defines schema"| node_mysql
node_vpc -->|"provisions networking"| node_aws
node_security -->|"provisions controls"| node_aws
node_bastion -->|"provisions host"| node_aws
node_rds -->|"provisions database"| node_aws
node_eks -->|"provisions cluster"| node_aws
node_cert -->|"provisions certificates"| node_aws
node_ingress -->|"provisions ingress"| node_aws
node_ecr -->|"provisions registry"| node_aws
node_jenkins -.->|"runs quality analysis"| node_sonar
node_jenkins -.->|"runs security scans"| node_scanning
node_jenkins -.->|"publishes artifacts"| node_nexus
node_jenkins -.->|"builds image"| node_docker
node_jenkins -.->|"pushes image"| node_ecr
node_jenkins -.->|"deploys charts"| node_helm
node_helm -.->|"deploys application"| node_eks
node_monitoring -.->|"observes platform"| node_eks

click node_api "https://github.com/notharshhaa/cloud-native-devops-project/blob/master/index.js"
click node_service "https://github.com/notharshhaa/cloud-native-devops-project/blob/master/TransactionService.js"
click node_config "https://github.com/notharshhaa/cloud-native-devops-project/blob/master/DbConfig.js"
click node_schema "https://github.com/notharshhaa/cloud-native-devops-project/blob/master/schema/backend.sql"
click node_vpc "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/00-vpc"
click node_security "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/10-sg"
click node_bastion "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/20-bastion"
click node_rds "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/30-db"
click node_eks "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/40-eks"
click node_cert "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/50-acm"
click node_ingress "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/60-ingress-alb"
click node_ecr "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/70-ecr"
click node_jenkins "https://github.com/notharshhaa/cloud-native-devops-project/blob/master/Jenkinsfile"
click node_docker "https://github.com/notharshhaa/cloud-native-devops-project/blob/master/Dockerfile"
click node_helm "https://github.com/notharshhaa/cloud-native-devops-project/tree/master/helm/templates"

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_api,node_service,node_config,node_schema,node_user toneBlue
class node_vpc,node_security,node_bastion,node_rds,node_eks,node_cert,node_ingress,node_ecr,node_mysql toneAmber
class node_jenkins,node_docker,node_helm,node_nexus toneMint
class node_sonar,node_scanning,node_monitoring toneRose
class node_aws toneIndigo
```

## Components

### Expense API

- [HTTP API](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/index.js): `index.js`
- [Transaction Service](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/TransactionService.js): `TransactionService.js`
- [DB Configuration](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/DbConfig.js): `DbConfig.js`
- [Database Schema](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/schema/backend.sql): `schema/backend.sql`

### AWS Infrastructure

- [VPC Networking](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/00-vpc): `terraform/00-vpc`
- [Security Groups](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/10-sg): `terraform/10-sg`
- [Bastion Host](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/20-bastion): `terraform/20-bastion`
- [RDS Database](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/30-db): `terraform/30-db`
- [EKS Cluster](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/40-eks): `terraform/40-eks`
- [TLS Certificates](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/50-acm): `terraform/50-acm`
- [ALB Ingress](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/60-ingress-alb): `terraform/60-ingress-alb`
- [ECR Registry](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/terraform/70-ecr): `terraform/70-ecr`

### Build and Deployment

- [Jenkins Pipeline](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/Jenkinsfile): `Jenkinsfile`
- [Container Image](https://github.com/notharshhaa/cloud-native-devops-project/blob/master/Dockerfile): `Dockerfile`
- [Helm Deployment](https://github.com/notharshhaa/cloud-native-devops-project/tree/master/helm/templates): `helm/templates`
- **Nexus Repository**

### Quality and Operations

- **SonarQube**
- **Security Scanning**
- **Monitoring Stack**

### Other components

- **API Client**
- **MySQL Database**
- **AWS**

## Connections

- API Client → HTTP API: sends requests (evidence: `index.js`)
- HTTP API → Transaction Service: delegates operations (evidence: `index.js`)
- Transaction Service → DB Configuration: loads credentials (evidence: `TransactionService.js`)
- Transaction Service → MySQL Database: queries transactions (evidence: `TransactionService.js`)
- Database Schema → MySQL Database: defines schema
- VPC Networking → AWS: provisions networking (evidence: `README.md`)
- Security Groups → AWS: provisions controls (evidence: `README.md`)
- Bastion Host → AWS: provisions host (evidence: `README.md`)
- RDS Database → AWS: provisions database (evidence: `README.md`)
- EKS Cluster → AWS: provisions cluster (evidence: `README.md`)
- TLS Certificates → AWS: provisions certificates (evidence: `README.md`)
- ALB Ingress → AWS: provisions ingress (evidence: `README.md`)
- ECR Registry → AWS: provisions registry (evidence: `README.md`)
- Jenkins Pipeline → SonarQube: runs quality analysis (evidence: `README.md`)
- Jenkins Pipeline → Security Scanning: runs security scans (evidence: `README.md`)
- Jenkins Pipeline → Nexus Repository: publishes artifacts (evidence: `README.md`)
- Jenkins Pipeline → Container Image: builds image (evidence: `README.md`)
- Jenkins Pipeline → ECR Registry: pushes image (evidence: `README.md`)
- Jenkins Pipeline → Helm Deployment: deploys charts (evidence: `README.md`)
- Helm Deployment → EKS Cluster: deploys application (evidence: `README.md`)
- Monitoring Stack → EKS Cluster: observes platform (evidence: `README.md`)
