How snkshukla/masterclass-sample works
This sample demonstrates a small item-list web application and ways to run it. A browser reaches the Express app, which reads items from PostgreSQL and renders the results; form submissions insert an item and redirect to the list. Docker Compose and Kubernetes manifests represent separate deployment approaches. The application flow is visible in app.js; deployment links are limited to relationships described by the README because those configuration files were not sampled. The README mentions Helm, but no Helm files are present in the tree.
Main entry points: app.js Express app · compose.yaml Compose environment · basic Basic manifests · Dockerfile Image definition
Components 8
Web application
- Express app
app.js - Items view
views/index.ejs
Persistence
- PostgreSQL
Container setup
- Image definition
Dockerfile - Compose environment
compose.yaml
Kubernetes setup
- Basic manifests
k8s/basic - Deployment manifests
k8s/deployments
Other components
- Browser
Connections 11
- Browser → Express app: requests pages
README.md - Express app → PostgreSQL: queries items
app.js - Express app → PostgreSQL: creates table
app.js - Express app → PostgreSQL: inserts items
app.js - Express app → Items view: renders
app.js - Image definition → Express app: packages
README.md - Compose environment → Express app: runs with database
README.md - Compose environment → PostgreSQL: configures database
README.md - Basic manifests → Express app: deploys application
README.md - Basic manifests → PostgreSQL: includes database resources
README.md - Deployment manifests → Express app: offers advanced deployment
README.md