# maheshpalakonda/lms-ci_cd architecture

> Architecture diagram of the GitHub repository maheshpalakonda/lms-ci_cd, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maheshpalakonda/lms-ci_cd
- Repository: https://github.com/maheshpalakonda/lms-ci_cd

## Overview

TechSprout is a learning platform for students, educators, and administrators. Students discover courses, enroll, view lectures, and use AI assistance; educators create courses and lectures; administrators manage users and platform settings. The backend also provides authentication, payments, reviews, notifications, live sessions, video, and notes. The graph reflects documented routes and sampled calls; unsampled modules are included where the source index or tree identifies their role, but uncertain connections are omitted.

Main entry points: [`backend/index.js`](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/index.js) (API and socket server), [`frontend/src/App.jsx`](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/App.jsx) (App and routes), [`backend/controllers/courseController.js`](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/courseController.js) (Course management), [`backend/routes/courseRoute.js`](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/routes/courseRoute.js) (Course endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web experience"]
  node_webapp["App and routes<br/>[App.jsx]"]
  node_home["Course discovery<br/>[Home.jsx]"]
  node_course_view["Course learning<br/>[ViewCourse.jsx]"]
  node_ai_search["AI course search<br/>[SearchWithAi.jsx]"]
  node_screenshot["Content protection"]
end

subgraph group_learning["Learning platform"]
  node_course_api["Course management"]
  node_course_routes["Course endpoints<br/>[courseRoute.js]"]
  node_ai_api["AI assistance<br/>[aiController.js]"]
  node_tech_chat["Technical chat"]
  node_live_api["Live sessions<br/>[liveController.js]"]
  node_video_api["Video services<br/>[videoController.js]"]
end

subgraph group_identity["Identity and community"]
  node_auth_api["Authentication<br/>[authController.js]"]
  node_auth_routes["Auth endpoints<br/>[authRoute.js]"]
  node_auth_guard["Session authorization<br/>[isAuth.js]"]
  node_review_api["Course reviews"]
  node_review_routes["Review endpoints<br/>[reviewRoute.js]"]
end

subgraph group_operations["Platform operations"]
  node_payment_api["Payments and orders"]
  node_admin_api["Administration<br/>[adminController.js]"]
  node_notification_api["Notifications"]
  node_server["API and socket server<br/>[index.js]"]
end

subgraph group_data["Persistence and integrations"]
  node_course_data[("Courses<br/>[courseModel.js]")]
  node_lecture_data[("Lectures<br/>[lectureModel.js]")]
  node_user_data[("User accounts<br/>[userModel.js]")]
  node_review_data[("Review records<br/>[reviewModel.js]")]
  node_mail["Email delivery<br/>[Mail.js]"]
  node_object_storage["S3 media storage<br/>[awsS3.js]"]
end

node_learner(("Platform users"))

node_learner -->|"uses"| node_webapp
node_webapp -->|"routes to"| node_home
node_webapp -->|"routes to"| node_course_view
node_webapp -->|"routes to"| node_ai_search
node_webapp -.->|"applies protection"| node_screenshot
node_webapp -.->|"requests API"| node_server
node_server -->|"mounts"| node_course_routes
node_server -->|"mounts"| node_auth_routes
node_server -->|"mounts"| node_review_routes
node_server -->|"mounts live routes"| node_live_api
node_server -->|"mounts payment routes"| node_payment_api
node_server -->|"mounts AI routes"| node_ai_api
node_server -->|"mounts admin routes"| node_admin_api
node_server -->|"mounts video routes"| node_video_api
node_course_routes -->|"dispatches"| node_course_api
node_auth_routes -->|"dispatches"| node_auth_api
node_review_routes -->|"dispatches"| node_review_api
node_review_routes -->|"guards requests"| node_auth_guard
node_course_routes -->|"guards requests"| node_auth_guard
node_auth_api -->|"reads and writes"| node_user_data
node_auth_api -->|"sends email"| node_mail
node_auth_guard -->|"loads user"| node_user_data
node_course_api -->|"reads and writes"| node_course_data
node_course_api -->|"manages lectures"| node_lecture_data
node_course_api -->|"reads user"| node_user_data
node_course_api -->|"uploads media"| node_object_storage
node_ai_api -->|"searches courses"| node_course_data
node_review_api -->|"checks course"| node_course_data
node_review_api -->|"reads and writes"| node_review_data
node_ai_api -.->|"routes AI chat"| node_tech_chat

click node_webapp "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/App.jsx"
click node_home "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/pages/Home.jsx"
click node_course_view "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/pages/ViewCourse.jsx"
click node_ai_search "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/pages/SearchWithAi.jsx"
click node_screenshot "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/customHooks/useScreenshotPrevention.js"
click node_course_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/courseController.js"
click node_course_routes "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/routes/courseRoute.js"
click node_course_data "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/courseModel.js"
click node_lecture_data "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/lectureModel.js"
click node_ai_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/aiController.js"
click node_tech_chat "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/techchatController.js"
click node_auth_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/authController.js"
click node_auth_routes "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/routes/authRoute.js"
click node_auth_guard "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/middlewares/isAuth.js"
click node_user_data "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/userModel.js"
click node_review_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/reviewController.js"
click node_review_routes "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/routes/reviewRoute.js"
click node_review_data "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/reviewModel.js"
click node_live_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/liveController.js"
click node_payment_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/paymentController.js"
click node_admin_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/adminController.js"
click node_notification_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/notificationController.js"
click node_video_api "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/videoController.js"
click node_server "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/index.js"
click node_mail "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/configs/Mail.js"
click node_object_storage "https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/configs/awsS3.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webapp,node_home,node_course_view,node_ai_search,node_screenshot,node_learner toneBlue
class node_course_api,node_course_routes,node_ai_api,node_tech_chat,node_live_api,node_video_api toneAmber
class node_auth_api,node_auth_routes,node_auth_guard,node_review_api,node_review_routes toneMint
class node_payment_api,node_admin_api,node_notification_api,node_server toneRose
class node_course_data,node_lecture_data,node_user_data,node_review_data,node_mail,node_object_storage toneIndigo
```

## Components

### Web experience

- [App and routes](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Course discovery](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/pages/Home.jsx): `frontend/src/pages/Home.jsx`
- [Course learning](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/pages/ViewCourse.jsx): `frontend/src/pages/ViewCourse.jsx`
- [AI course search](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/pages/SearchWithAi.jsx): `frontend/src/pages/SearchWithAi.jsx`
- [Content protection](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/frontend/src/customHooks/useScreenshotPrevention.js): `frontend/src/customHooks/useScreenshotPrevention.js`

### Learning platform

- [Course management](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/courseController.js): `backend/controllers/courseController.js`
- [Course endpoints](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/routes/courseRoute.js): `backend/routes/courseRoute.js`
- [AI assistance](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/aiController.js): `backend/controllers/aiController.js`
- [Technical chat](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/techchatController.js): `backend/controllers/techchatController.js`
- [Live sessions](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/liveController.js): `backend/controllers/liveController.js`
- [Video services](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/videoController.js): `backend/controllers/videoController.js`

### Identity and community

- [Authentication](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/authController.js): `backend/controllers/authController.js`
- [Auth endpoints](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/routes/authRoute.js): `backend/routes/authRoute.js`
- [Session authorization](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/middlewares/isAuth.js): `backend/middlewares/isAuth.js`
- [Course reviews](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/reviewController.js): `backend/controllers/reviewController.js`
- [Review endpoints](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/routes/reviewRoute.js): `backend/routes/reviewRoute.js`

### Platform operations

- [Payments and orders](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/paymentController.js): `backend/controllers/paymentController.js`
- [Administration](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/adminController.js): `backend/controllers/adminController.js`
- [Notifications](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/controllers/notificationController.js): `backend/controllers/notificationController.js`
- [API and socket server](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/index.js): `backend/index.js`

### Persistence and integrations

- [Courses](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/courseModel.js): `backend/models/courseModel.js`
- [Lectures](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/lectureModel.js): `backend/models/lectureModel.js`
- [User accounts](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/userModel.js): `backend/models/userModel.js`
- [Review records](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/models/reviewModel.js): `backend/models/reviewModel.js`
- [Email delivery](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/configs/Mail.js): `backend/configs/Mail.js`
- [S3 media storage](https://github.com/maheshpalakonda/lms-ci_cd/blob/master/backend/configs/awsS3.js): `backend/configs/awsS3.js`

### Other components

- **Platform users**

## Connections

- Platform users → App and routes: uses
- App and routes → Course discovery: routes to (evidence: `frontend/src/App.jsx`)
- App and routes → Course learning: routes to (evidence: `frontend/src/App.jsx`)
- App and routes → AI course search: routes to (evidence: `frontend/src/App.jsx`)
- App and routes → Content protection: applies protection (evidence: `frontend/src/App.jsx`)
- App and routes → API and socket server: requests API
- API and socket server → Course endpoints: mounts (evidence: `backend/index.js`)
- API and socket server → Auth endpoints: mounts (evidence: `backend/index.js`)
- API and socket server → Review endpoints: mounts (evidence: `backend/index.js`)
- API and socket server → Live sessions: mounts live routes (evidence: `backend/index.js`)
- API and socket server → Payments and orders: mounts payment routes (evidence: `backend/index.js`)
- API and socket server → AI assistance: mounts AI routes (evidence: `backend/index.js`)
- API and socket server → Administration: mounts admin routes (evidence: `backend/index.js`)
- API and socket server → Video services: mounts video routes (evidence: `backend/index.js`)
- Course endpoints → Course management: dispatches (evidence: `backend/routes/courseRoute.js`)
- Auth endpoints → Authentication: dispatches (evidence: `backend/routes/authRoute.js`)
- Review endpoints → Course reviews: dispatches (evidence: `backend/routes/reviewRoute.js`)
- Review endpoints → Session authorization: guards requests (evidence: `backend/routes/reviewRoute.js`)
- Course endpoints → Session authorization: guards requests (evidence: `backend/routes/courseRoute.js`)
- Authentication → User accounts: reads and writes (evidence: `backend/controllers/authController.js`)
- Authentication → Email delivery: sends email (evidence: `backend/controllers/authController.js`)
- Session authorization → User accounts: loads user (evidence: `backend/middlewares/isAuth.js`)
- Course management → Courses: reads and writes (evidence: `backend/controllers/courseController.js`)
- Course management → Lectures: manages lectures (evidence: `backend/controllers/courseController.js`)
- Course management → User accounts: reads user (evidence: `backend/controllers/courseController.js`)
- Course management → S3 media storage: uploads media (evidence: `backend/controllers/courseController.js`)
- AI assistance → Courses: searches courses (evidence: `backend/controllers/aiController.js`)
- Course reviews → Courses: checks course (evidence: `backend/controllers/reviewController.js`)
- Course reviews → Review records: reads and writes (evidence: `backend/controllers/reviewController.js`)
- AI assistance → Technical chat: routes AI chat
