How learningtigris/swiggy-devops-cicd-pipeline works
This repository combines a static Swiggy-style restaurant discovery frontend with a documented AWS CI/CD deployment project. The frontend entry point mounts a page composed of navigation, offers and food categories, restaurant collections, city/cuisine links, and a footer; restaurant and offer content is rendered from hard-coded markup. The README describes a separate Jenkins-led build, analysis, scan, image-publishing, and deployment workflow, with Terraform provisioning AWS infrastructure. Pipeline wiring is shown by the README, not sampled Jenkins or Terraform source.
Main entry points: App.js Page composition · Jenkinsfile Jenkins pipeline · index.js React entry · OffersBanner.jsx Offers and categories
Components 20
Restaurant frontend
- React entry
src/index.js - Page composition
src/App.js - Location navigation
src/Components/Navigate.jsx - Offers and categories
src/Components/OffersBanner.jsx - Restaurant chains
src/Components/RestaurentChain.jsx - Delivery listings
src/Components/RestaurentOnline.jsx - City and cuisine links
src/Components/BestRest.jsx - App and company footer
src/Components/Footer.jsx
CI/CD pipeline
- Jenkins pipeline
jenkins/Jenkinsfile - Quality gate
jenkins/Jenkinsfile - Docker image build
docker/Dockerfile
Cloud infrastructure
- Terraform provisioning
terraform/main.tf - Hosted application
docker/Dockerfile
External services
- Swiggy media CDN
- GitHub source
- SonarQube analysis
- Trivy security scan
- DockerHub registry
- AWS EC2 and network
Other components
- Site visitor
Connections 20
- Site visitor → React entry: opens
- React entry → Page composition: renders
src/index.js - Page composition → Location navigation: renders
src/App.js - Page composition → Offers and categories: renders
src/App.js - Page composition → Restaurant chains: renders
src/App.js - Page composition → Delivery listings: renders
src/App.js - Page composition → City and cuisine links: renders
src/App.js - Page composition → App and company footer: renders
src/App.js - Offers and categories → Swiggy media CDN: loads images
src/Components/OffersBanner.jsx - Delivery listings → Swiggy media CDN: loads images
src/Components/RestaurentOnline.jsx - Restaurant chains → Swiggy media CDN: loads images
src/Components/RestaurentChain.jsx - GitHub source → Jenkins pipeline: triggers pipeline
README.md - Jenkins pipeline → SonarQube analysis: runs analysis
README.md - Jenkins pipeline → Quality gate: validates results
README.md - Jenkins pipeline → Trivy security scan: runs scans
README.md - Jenkins pipeline → Docker image build: builds image
README.md - Jenkins pipeline → DockerHub registry: pushes image
README.md - Terraform provisioning → AWS EC2 and network: provisions infrastructure
README.md - Jenkins pipeline → AWS EC2 and network: deploys container
README.md - DockerHub registry → Hosted application: supplies image
README.md