How sadiq-code-nest/devops-academy works
DevOps Academy is a student-enrollment web application: visitors explore the academy, register or sign in, and use role-gated dashboards; administrators manage student and review data. The React client calls an Express API backed by MongoDB. The README also documents application metrics scraped by Prometheus. Deployment, CI/CD, Kubernetes, and monitoring-platform internals are outside this source tree, so they are not mapped. Some frontend and controller relationships are supported by the SOURCE INDEX rather than inspected implementation excerpts.
Main entry points: app.js Express API · axios.js HTTP client · App.jsx React application · Home.jsx Academy home
Components 28
Web client
- React application
frontend/src/App.jsx - Academy home
frontend/src/pages/Home.jsx - Course information
frontend/src/components/Curriculum.jsx - Enrollment offer
frontend/src/components/Pricing.jsx - Review experience
frontend/src/components/Reviews.jsx - Login and registration
frontend/src/context/AuthContext.jsx - Student dashboard
frontend/src/pages/student/Dashboard.jsx - Admin dashboard
frontend/src/pages/admin/Dashboard.jsx - Instructor dashboard
frontend/src/pages/instructor/Dashboard.jsx - HTTP client
frontend/src/api/axios.js
API and access
- Express API
backend/app.js - Authentication routes
backend/routes/authRoutes.js - Student authentication
backend/controllers/authController.js - Admin routes
backend/routes/adminRoutes.js - Admin operations
backend/controllers/adminController.js - Enrollment routes
backend/routes/enrollRoutes.js - Review routes
backend/routes/reviewRoutes.js - JWT access control
backend/middleware/authMiddleware.js
Enrollment domain
- Enrollment operations
backend/controllers/enrollController.js - Review moderation
backend/controllers/reviewController.js - User records
backend/models/User.js - Enrollment records
backend/models/Enrollment.js - Review records
backend/models/Review.js - MongoDB
App metrics
- Request metrics
backend/metrics.js - Prometheus
Other components
- Visitor / student
- Administrator
Connections 37
- Visitor / student → React application: uses
README.md - Administrator → React application: uses
README.md - React application → Academy home: routes to
frontend/src/App.jsx - React application → Login and registration: provides auth
frontend/src/App.jsx - React application → Student dashboard: routes to
frontend/src/App.jsx - React application → Admin dashboard: routes to
frontend/src/App.jsx - Academy home → Course information: renders
frontend/src/pages/Home.jsx - Academy home → Enrollment offer: renders
frontend/src/pages/Home.jsx - Academy home → Review experience: renders
frontend/src/pages/Home.jsx - Login and registration → HTTP client: calls
frontend/src/context/AuthContext.jsx - Enrollment offer → HTTP client: calls
frontend/src/components/Pricing.jsx - Review experience → HTTP client: calls
frontend/src/components/Reviews.jsx - Student dashboard → HTTP client: calls
frontend/src/pages/student/Dashboard.jsx - Admin dashboard → HTTP client: calls
frontend/src/pages/admin/Dashboard.jsx - Instructor dashboard → HTTP client: calls
frontend/src/pages/instructor/Dashboard.jsx - HTTP client → Express API: REST requests
README.md - Express API → Authentication routes: mounts
backend/app.js - Express API → Enrollment routes: mounts
backend/app.js - Express API → Review routes: mounts
backend/app.js - Express API → Admin routes: mounts
backend/app.js - Authentication routes → Student authentication: dispatches
backend/routes/authRoutes.js - Student authentication → User records: reads / writes
backend/controllers/authController.js - Admin routes → Admin operations: dispatches
backend/routes/adminRoutes.js - Admin routes → JWT access control: protects
backend/routes/adminRoutes.js - Admin operations → User records: reads
backend/controllers/adminController.js - Enrollment routes → Enrollment operations: dispatches
backend/routes/enrollRoutes.js - Enrollment routes → JWT access control: protects
backend/routes/enrollRoutes.js - Enrollment operations → Enrollment records: uses
backend/controllers/enrollController.js - Review routes → Review moderation: dispatches
backend/routes/reviewRoutes.js - Review routes → JWT access control: protects approval
backend/routes/reviewRoutes.js - Review moderation → Review records: reads / writes
backend/controllers/reviewController.js - JWT access control → User records: loads user
backend/middleware/authMiddleware.js - User records → MongoDB: persists in
README.md - Enrollment records → MongoDB: persists in
README.md - Review records → MongoDB: persists in
README.md - Express API → Request metrics: registers middleware
backend/app.js - Prometheus → Express API: scrapes metrics
README.md