How satwikvarma/devsecops-3tier-app works
This is a task-list web app presented as a DevSecOps and containerization demonstration. A user interacts with the React app to list, create, toggle, and delete tasks; the app sends HTTP requests to the Express API, whose handlers use a Mongoose model backed by MongoDB. The README also describes container orchestration and a CI/security-scanning workflow. Those operational links are documented, but their source files were not excerpted, so they are represented only where the README supports them.
Main entry points: server.js Express server · App.jsx Task app · docker-compose.yml Container orchestration · api.js API client
Components 13
Task interface
- Task app
frontend/src/App.jsx - API client
frontend/src/services/api.js
Task API
- Express server
backend/server.js - Task routes
backend/routes/taskRoutes.js - Task handlers
backend/controllers/taskController.js - Task model
backend/models/Task.js - DB connection
backend/config/db.js
Operations and security
- Container orchestration
docker-compose.yml - Web proxy
nginx/default.conf - CI pipeline
.github/workflows/ci.yml - Image scanning
Other components
- User
- MongoDB
Connections 13
- User → Task app: uses
README.md - Task app → API client: calls
frontend/src/App.jsx - API client → Express server: sends HTTP
README.md - Express server → Task routes: mounts
backend/server.js - Task routes → Task handlers: dispatches
backend/routes/taskRoutes.js - Task handlers → Task model: queries
backend/controllers/taskController.js - Express server → DB connection: connects
backend/server.js - DB connection → MongoDB: connects
backend/config/db.js - Container orchestration → Task app: orchestrates
README.md - Container orchestration → Express server: orchestrates
README.md - Container orchestration → MongoDB: orchestrates
README.md - Web proxy → Task app: serves
- CI pipeline → Image scanning: scans images
README.md