How kiranpatted/banking-app works
This repository combines a core-banking REST API with a GitOps delivery platform. Users open accounts, deposit, withdraw, transfer funds, and inspect transaction history; the documented API and repository tree identify the relevant code, but no source excerpts were provided to verify internal calls. GitHub-triggered Tekton builds and pushes images, updates the dev deployment tag, and ArgoCD deploys environment overlays. Promotion reuses image tags. Terraform provisions AWS infrastructure, while Datadog supplies cluster monitoring and environment-specific monitors/SLOs.
Main entry points: AccountService.java Banking operations · ci-pipeline.yaml CI pipeline · overlays Environment overlays · applicationset.yaml ArgoCD applications
Components 22
Banking API
- Account API
src/main/java/com/example/banking/web/AccountController.java - Banking operations
src/main/java/com/example/banking/service/AccountService.java - Account state
src/main/java/com/example/banking/domain/Account.java - Transaction history
src/main/java/com/example/banking/domain/Transaction.java - Account persistence
src/main/java/com/example/banking/repository/AccountRepository.java - Transaction persistence
src/main/java/com/example/banking/repository/TransactionRepository.java - H2 / PostgreSQL
Build and Promotion
- CI pipeline
tekton/pipelines/ci-pipeline.yaml - Build and GitOps tasks
tekton/tasks - Promotion pipeline
tekton/pipelines/promote-pipeline.yaml - Image registry
GitOps Deployment
- Environment overlays
deploy/overlays - ArgoCD applications
argocd/applicationset.yaml - OpenShift workloads
deploy/base
AWS Infrastructure
- Environment provisioning
terraform/environments - AWS services and clusters
terraform/modules
Monitoring
- Datadog agent
datadog/base/datadog-agent.yaml - Monitors and SLOs
terraform/modules/datadog-monitors/main.tf
Other components
- API client
- Developer
- GitHub
- Datadog
Connections 17
- API client → Account API: calls API
README.md - Developer → GitHub: pushes code
README.md - GitHub → CI pipeline: webhook triggers
README.md - CI pipeline → Build and GitOps tasks: runs tasks
README.md - CI pipeline → Image registry: pushes image
README.md - Build and GitOps tasks → Environment overlays: updates dev tag
README.md - Promotion pipeline → Environment overlays: promotes image tag
README.md - ArgoCD applications → Environment overlays: syncs applications
README.md - ArgoCD applications → OpenShift workloads: deploys workloads
README.md - Environment provisioning → AWS services and clusters: provisions resources
README.md - Datadog agent → Datadog: reports telemetry
README.md - Monitors and SLOs → Datadog: configures monitors
README.md - Account API → Banking operations: delegates operations
- Banking operations → Account persistence: persists accounts
- Banking operations → Transaction persistence: persists transactions
- Account persistence → H2 / PostgreSQL: reads and writes
- Transaction persistence → H2 / PostgreSQL: reads and writes