# ajithshah/devops-assignment architecture

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

- Interactive diagram: https://gitdiagram.com/ajithshah/devops-assignment
- Repository: https://github.com/ajithshah/devops-assignment

## Overview

This repository is primarily a DevOps assignment: it provides CI/CD and GCP infrastructure designs, a Jenkins pipeline skeleton, and a small Spring Boot sync-service sample. The documented deployment spans QA, Staging, and Production and uses MongoDB. No source excerpts were provided, so the graph captures only README-supported relationships and does not infer runtime or pipeline behavior.

Main entry points: [`sync-service-hello-world/src/main/java/com/example/syncservice/SyncServiceApplication.java`](https://github.com/ajithshah/devops-assignment/blob/master/sync-service-hello-world/src/main/java/com/example/syncservice/SyncServiceApplication.java) (Spring Boot app), [`docs/ci-cd-design.pdf`](https://github.com/ajithshah/devops-assignment/blob/master/docs/ci-cd-design.pdf) (CI/CD design), [`docs/infrastructure-design.pdf`](https://github.com/ajithshah/devops-assignment/blob/master/docs/infrastructure-design.pdf) (Infrastructure design), [`pipeline/Jenkinsfile`](https://github.com/ajithshah/devops-assignment/blob/master/pipeline/Jenkinsfile) (Jenkins pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["DevOps designs"]
  node_cicd_doc["CI/CD design<br/>[ci-cd-design.pdf]"]
  node_jenkins["Jenkins pipeline"]
  node_cicd_diagram["CI/CD diagram"]
  node_infra_doc["Infrastructure design"]
  node_gcp_diagram["GCP diagram"]
end

subgraph group_service["Sample service"]
  node_application["Spring Boot app"]
  node_hello_controller["Hello controller"]
end

subgraph group_platform["Deployment platform"]
  node_mongodb[("MongoDB")]
  node_qa["QA"]
  node_staging["Staging"]
  node_production["Production"]
end

node_engineer(("DevOps engineer"))

node_engineer -->|"reviews"| node_cicd_doc
node_engineer -->|"reviews"| node_infra_doc
node_cicd_doc -->|"designs"| node_jenkins
node_cicd_doc -->|"depicts"| node_cicd_diagram
node_infra_doc -->|"describes"| node_gcp_diagram
node_application -->|"connects to"| node_mongodb
node_application -->|"deployed across"| node_qa
node_application -->|"deployed across"| node_staging
node_application -->|"deployed across"| node_production

click node_cicd_doc "https://github.com/ajithshah/devops-assignment/blob/master/docs/ci-cd-design.pdf"
click node_jenkins "https://github.com/ajithshah/devops-assignment/blob/master/pipeline/Jenkinsfile"
click node_cicd_diagram "https://github.com/ajithshah/devops-assignment/tree/master/diagrams"
click node_infra_doc "https://github.com/ajithshah/devops-assignment/blob/master/docs/infrastructure-design.pdf"
click node_gcp_diagram "https://github.com/ajithshah/devops-assignment/tree/master/diagrams"
click node_application "https://github.com/ajithshah/devops-assignment/blob/master/sync-service-hello-world/src/main/java/com/example/syncservice/SyncServiceApplication.java"
click node_hello_controller "https://github.com/ajithshah/devops-assignment/blob/master/sync-service-hello-world/src/main/java/com/example/syncservice/controller/HelloController.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_cicd_doc,node_jenkins,node_cicd_diagram,node_infra_doc,node_gcp_diagram toneBlue
class node_application,node_hello_controller toneAmber
class node_mongodb,node_qa,node_staging,node_production toneMint
class node_engineer toneIndigo
```

## Components

### DevOps designs

- [CI/CD design](https://github.com/ajithshah/devops-assignment/blob/master/docs/ci-cd-design.pdf): `docs/ci-cd-design.pdf`
- [Jenkins pipeline](https://github.com/ajithshah/devops-assignment/blob/master/pipeline/Jenkinsfile): `pipeline/Jenkinsfile`
- [CI/CD diagram](https://github.com/ajithshah/devops-assignment/tree/master/diagrams): `diagrams`
- [Infrastructure design](https://github.com/ajithshah/devops-assignment/blob/master/docs/infrastructure-design.pdf): `docs/infrastructure-design.pdf`
- [GCP diagram](https://github.com/ajithshah/devops-assignment/tree/master/diagrams): `diagrams`

### Sample service

- [Spring Boot app](https://github.com/ajithshah/devops-assignment/blob/master/sync-service-hello-world/src/main/java/com/example/syncservice/SyncServiceApplication.java): `sync-service-hello-world/src/main/java/com/example/syncservice/SyncServiceApplication.java`
- [Hello controller](https://github.com/ajithshah/devops-assignment/blob/master/sync-service-hello-world/src/main/java/com/example/syncservice/controller/HelloController.java): `sync-service-hello-world/src/main/java/com/example/syncservice/controller/HelloController.java`

### Deployment platform

- **MongoDB**
- **QA**
- **Staging**
- **Production**

### Other components

- **DevOps engineer**

## Connections

- DevOps engineer → CI/CD design: reviews (evidence: `README.md`)
- DevOps engineer → Infrastructure design: reviews (evidence: `README.md`)
- CI/CD design → Jenkins pipeline: designs (evidence: `README.md`)
- CI/CD design → CI/CD diagram: depicts (evidence: `README.md`)
- Infrastructure design → GCP diagram: describes (evidence: `README.md`)
- Spring Boot app → MongoDB: connects to (evidence: `README.md`)
- Spring Boot app → QA: deployed across (evidence: `README.md`)
- Spring Boot app → Staging: deployed across (evidence: `README.md`)
- Spring Boot app → Production: deployed across (evidence: `README.md`)
