This project demonstrates a fullstack microservices architecture with a NestJS backend and React frontend, integrated into a complete CI/CD pipeline using Jenkins, Docker, and Kubernetes (KIND).
- Backend: NestJS (monorepo, microservices)
- Frontend: React
- CI/CD: Jenkins Pipeline
- Security Scans: Trivy, OWASP Dependency Check
- Containerization: Docker, Docker Compose
- Orchestration: Kubernetes (using KIND for local cluster)
- Ingress: NGINX with custom domain (
local-k8s.souravcodes.in)
-
🔄 Full CI/CD Pipeline
- Automatic build, scan, test, and deploy stages
- Docker image tagging and pushing to Docker Hub
-
🧪 Security Integration
- OWASP Dependency Check for backend dependencies
- Trivy image scan for vulnerabilities
-
📦 Multi-Service Support
- API Gateway
- Booking Service
- Admin Service
-
🧰 Kubernetes-Based Deployment
- KIND cluster for local K8s simulation
- Ingress configured to access via
local-k8s.souravcodes.in
The pipeline includes the following stages:
- Clean Workspace
- Checkout Code
- Install Dependencies (inside Docker)
- OWASP Dependency Check
- SonarQube Analysis
- Docker Build & Tag
- Trivy Image Scan
- Push Docker Images
- Deploy to KIND Cluster
- (Optional) Port forwarding or domain access via
local-k8s.souravcodes.in
After deployment:
-
API Gateway:
Via Ingress:http://local-k8s.souravcodes.in/api/...
Or via NodePort:http://localhost:30080 -
Update your local
/etc/hosts:sudo nano /etc/hosts
Add 127.0.0.1 127.0.0.1 k8s.local