How rahulp-ht/multi-tier-devops-poc works
This is a books-and-authors management application and an AWS deployment POC. Users view dashboard charts or manage books and authors through the React UI; the Express API handles CRUD requests and persists records in MySQL. The repository also describes Jenkins CI/CD and Terraform-managed ECS infrastructure as product capabilities. Application call paths are supported by sampled source; deployment relationships are documented in the README, while several infrastructure and pipeline files were not sampled.
Main entry points: app.js Express app · terraform Infrastructure provisioning · main.tsx Page router · BooksPage.tsx Books management
Components 26
Web application
- Page router
frontend/src/main.tsx - Dashboard charts
frontend/src/App.tsx - Books management
frontend/src/BooksPage.tsx - Authors management
frontend/src/AuthorsPage.tsx - Book dialogs
frontend/src/components - Author dialogs
frontend/src/components - Book data types
frontend/src/models/Books.ts - Author data type
frontend/src/models/Author.ts
Application API
- Express app
backend/app.js - API routes
backend/routes/index.js - Book CRUD
backend/controllers/BooksController.js - Author CRUD
backend/controllers/AuthorsController.js
Persistence
- MySQL pool
backend/configs/db.js - MySQL database
CI/CD
- Jenkins CI
Jenkinsfile - Jenkins CD
Jenkinsfile.cd - SonarQube
- Trivy scans
AWS platform
- Amazon ECR
- Infrastructure provisioning
terraform - Load balancer
- ECS services
- Amazon RDS
- Secrets Manager
- CloudWatch
monitoring
Other components
- User
Connections 34
- User → Page router: opens
README.md - Page router → Dashboard charts: routes to
frontend/src/main.tsx - Page router → Books management: routes to
frontend/src/main.tsx - Page router → Authors management: routes to
frontend/src/main.tsx - Dashboard charts → Express app: fetches books
frontend/src/App.tsx - Books management → Express app: CRUD requests
frontend/src/BooksPage.tsx - Authors management → Express app: CRUD requests
frontend/src/AuthorsPage.tsx - Books management → Book dialogs: opens dialogs
frontend/src/BooksPage.tsx - Authors management → Author dialogs: opens dialogs
frontend/src/AuthorsPage.tsx - Books management → Book data types: uses types
frontend/src/BooksPage.tsx - Authors management → Author data type: uses type
frontend/src/AuthorsPage.tsx - Express app → API routes: mounts
backend/app.js - API routes → Book CRUD: dispatches
backend/routes/index.js - API routes → Author CRUD: dispatches
backend/routes/index.js - Book CRUD → MySQL pool: queries
backend/controllers/BooksController.js - Author CRUD → MySQL pool: queries
backend/controllers/AuthorsController.js - Express app → MySQL pool: checks connection
backend/app.js - MySQL pool → MySQL database: connects to
- Jenkins CI → SonarQube: runs analysis
README.md - Jenkins CI → Trivy scans: scans images
README.md - Jenkins CI → Jenkins CD: triggers
README.md - Jenkins CD → Amazon ECR: pushes images
README.md - Jenkins CD → ECS services: deploys digests
README.md - Infrastructure provisioning → ECS services: provisions
README.md - Infrastructure provisioning → Load balancer: provisions
README.md - Infrastructure provisioning → Amazon RDS: provisions
README.md - Infrastructure provisioning → Amazon ECR: provisions
README.md - Load balancer → Express app: routes /api
README.md - Load balancer → ECS services: routes traffic
README.md - Express app → Amazon RDS: persists data
README.md - Express app → Secrets Manager: loads credentials
README.md - CloudWatch → ECS services: monitors
README.md - CloudWatch → Load balancer: monitors
README.md - CloudWatch → Amazon RDS: monitors
README.md