How skbablualam/nestly works
Purpose and Entry Points
Nestly is a small Airbnb-inspired stay-listing application used primarily to demonstrate a Node/Express-to-Kubernetes DevOps delivery lifecycle. The runtime entry point is server.js; the browser entry asset is public/index.html, which loads client behavior from public/app.js.
Application Runtime
The Node.js/Express server serves the application on port 3000 and provides the boundary between HTTP clients and static frontend assets. Dependencies and npm start/test scripts are defined in package.json. The frontend is a static HTML/CSS/JavaScript experience under public/, with no indicated database, authentication, booking, or payment integration.
Paths:
• server.js
• package.json
• public/index.html
Frontend Delivery
The browser receives static listing UI markup, styling, and interactive behavior from the public asset bundle. This is a same-origin static frontend served by Express rather than a separately deployed SPA or API client.
Paths:
• public/index.html
• public/app.js
• public/style.css
Container Boundary
Dockerfile packages the Node application and public assets into a portable image exposing the application runtime. .dockerignore constrains Docker build context. The resulting image is intended for local execution and publication to Docker Hub.
Paths:
• Dockerfile
• .dockerignore
• package.json
CI/CD Control Plane
Jenkinsfile defines the automation pipeline initiated by source changes in GitHub. The documented flow runs Jest/Supertest testing, SonarCloud quality analysis, and Trivy security scanning before building an image, pushing it to Docker Hub, and deploying it to Kubernetes. Jenkins requires Docker socket access and cluster credentials; kubeconfig-jenkins.yaml is the cluster-access boundary for the Jenkins environment.
Paths:
• Jenkinsfile
• kubeconfig-jenkins.yaml
• package.json
Kubernetes Deployment
Kubernetes manifests separate workload rollout from network exposure. The deployment consumes the built container image and creates application pods; the service exposes those pods within/through the Minikube cluster. Kubernetes is the production-like runtime target, while Minikube is the documented local cluster implementation.
Paths:
• k8s/deployment.yaml
• k8s/service.yaml
• Dockerfile
External Services and Observability
The delivery path crosses GitHub, Jenkins, SonarCloud, Trivy, Docker Hub, and Kubernetes. Prometheus and Grafana are installed as an external cluster monitoring stack through Helm; they monitor Kubernetes/application infrastructure rather than being application code in this repository. No persistence or third-party business API is represented.
Paths:
• Jenkinsfile
• k8s/deployment.yaml
• README.md
Main entry points: Jenkinsfile Jenkins pipeline · server.js Express server · deployment.yaml Deployment · index.html Listing UI
Components 19
Application
- Browser
- Express server · Serves the same-origin static application on port 3000.
server.js - Listing UI
public/index.html - Client behavior
public/app.js - UI styles
public/style.css - Node package · Defines dependencies and start/test scripts.
package.json
Delivery Pipeline
- GitHub
- Jenkins pipeline · Runs validation, image delivery, and deployment.
Jenkinsfile - Jest / Supertest
package.json - SonarCloud
- Trivy
- Container build · Packages the Node runtime and public assets.
Dockerfile - Docker Hub
- Jenkins kubeconfig
kubeconfig-jenkins.yaml
Kubernetes Runtime
- Deployment · Rolls out pods from the published container image.
k8s/deployment.yaml - Service
k8s/service.yaml - Application pods
- Minikube
- Prometheus + Grafana · Helm-installed external monitoring stack.
Connections 20
- Browser → Express server: HTTP
- Express server → Listing UI: serves
- Listing UI → Client behavior: loads
- Listing UI → UI styles: loads
- Node package → Express server: starts
- GitHub → Jenkins pipeline: source changes trigger
- Jenkins pipeline → Jest / Supertest: runs
- Jenkins pipeline → SonarCloud: analyzes
- Jenkins pipeline → Trivy: scans
- Jenkins pipeline → Container build: builds
- Container build → Docker Hub: pushes image
- Jenkins pipeline → Jenkins kubeconfig: uses credentials
- Jenkins pipeline → Deployment: deploys
- Docker Hub → Deployment: image
- Deployment → Application pods: creates
- Service → Application pods: routes to
- Minikube → Deployment: hosts
- Minikube → Service: hosts
- Prometheus + Grafana → Minikube: monitors
- Container build → Express server: packages