# palurujaswanth/learning_management_system architecture

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

- Interactive diagram: https://gitdiagram.com/palurujaswanth/learning_management_system
- Repository: https://github.com/palurujaswanth/learning_management_system

## Overview

This repository contains an online learning management system with two distinct runtime implementations: a browser frontend backed by a monolithic Express server, and a separate Express course API. The browser flow handles signup, login, and course listing; the monolithic server excerpt also documents enrollment, profiles, and reviews. A second backend exposes basic course listing and creation. The README is empty, and the frontend/server excerpt is partial, so some UI and server relationships are not shown.

Main entry points: [`frontend/server.js`](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js) (LMS HTTP Server), [`backend/server.js`](https://github.com/palurujaswanth/learning_management_system/blob/main/backend/server.js) (Course API Server), [`frontend/js/main.js`](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/js/main.js) (Browser Handlers), [`frontend/js/api.js`](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/js/api.js) (API Client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Browser Experience"]
  node_forms["Auth and Courses Pages<br/>[login.html]"]
  node_browser_logic["Browser Handlers<br/>[main.js]"]
  node_api_client["API Client<br/>[api.js]"]
end

subgraph group_monolith["LMS Server"]
  node_lms_server["LMS HTTP Server<br/>[server.js]"]
  node_authentication["Authentication<br/>[server.js]"]
  node_catalog["Course Catalog<br/>[server.js]"]
  node_enrollment["Enrollment and Profile<br/>[server.js]"]
  node_reviews["Course Reviews<br/>[server.js]"]
end

subgraph group_api["Course API"]
  node_course_server["Course API Server<br/>[server.js]"]
  node_course_routes["Course Routes<br/>[courses.js]"]
  node_course_model["Course Model<br/>[course.js]"]
end

subgraph group_data["Persistence"]
  node_lms_store[("LMS MongoDB")]
  node_course_store[("MongoDB")]
end

node_learner(("Learner"))
node_hosted_service["Configured Hosted API"]

node_learner -->|"submits forms"| node_browser_logic
node_browser_logic -->|"calls auth and catalog"| node_api_client
node_api_client -->|"sends HTTP requests"| node_hosted_service
node_lms_server -->|"handles auth routes"| node_authentication
node_lms_server -->|"handles course routes"| node_catalog
node_lms_server -->|"handles account routes"| node_enrollment
node_lms_server -->|"handles review routes"| node_reviews
node_lms_server -->|"connects and queries"| node_lms_store
node_course_server -->|"mounts routes"| node_course_routes
node_course_server -->|"connects MongoDB"| node_course_store
node_course_routes -->|"queries and saves"| node_course_model
node_course_model -.->|"defines persisted model"| node_course_store

click node_forms "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/login.html"
click node_browser_logic "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/js/main.js"
click node_api_client "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/js/api.js"
click node_lms_server "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js"
click node_authentication "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js"
click node_catalog "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js"
click node_enrollment "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js"
click node_reviews "https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js"
click node_course_server "https://github.com/palurujaswanth/learning_management_system/blob/main/backend/server.js"
click node_course_routes "https://github.com/palurujaswanth/learning_management_system/blob/main/backend/routes/courses.js"
click node_course_model "https://github.com/palurujaswanth/learning_management_system/blob/main/backend/models/course.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_forms,node_browser_logic,node_api_client toneBlue
class node_lms_server,node_authentication,node_catalog,node_enrollment,node_reviews toneAmber
class node_course_server,node_course_routes,node_course_model,node_hosted_service toneMint
class node_lms_store,node_course_store toneRose
class node_learner toneIndigo
```

## Components

### Browser Experience

- [Auth and Courses Pages](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/login.html): `frontend/login.html`
- [Browser Handlers](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/js/main.js): `frontend/js/main.js`
- [API Client](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/js/api.js): `frontend/js/api.js`

### LMS Server

- [LMS HTTP Server](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js): `frontend/server.js`
- [Authentication](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js): `frontend/server.js`
- [Course Catalog](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js): `frontend/server.js`
- [Enrollment and Profile](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js): `frontend/server.js`
- [Course Reviews](https://github.com/palurujaswanth/learning_management_system/blob/main/frontend/server.js): `frontend/server.js`

### Course API

- [Course API Server](https://github.com/palurujaswanth/learning_management_system/blob/main/backend/server.js): `backend/server.js`
- [Course Routes](https://github.com/palurujaswanth/learning_management_system/blob/main/backend/routes/courses.js): `backend/routes/courses.js`
- [Course Model](https://github.com/palurujaswanth/learning_management_system/blob/main/backend/models/course.js): `backend/models/course.js`

### Persistence

- **LMS MongoDB**
- **MongoDB**

### Other components

- **Learner**
- **Configured Hosted API**

## Connections

- Learner → Browser Handlers: submits forms (evidence: `frontend/js/main.js`)
- Browser Handlers → API Client: calls auth and catalog (evidence: `frontend/js/main.js`)
- API Client → Configured Hosted API: sends HTTP requests (evidence: `frontend/js/api.js`)
- LMS HTTP Server → Authentication: handles auth routes (evidence: `frontend/server.js`)
- LMS HTTP Server → Course Catalog: handles course routes (evidence: `frontend/server.js`)
- LMS HTTP Server → Enrollment and Profile: handles account routes (evidence: `frontend/server.js`)
- LMS HTTP Server → Course Reviews: handles review routes (evidence: `frontend/server.js`)
- LMS HTTP Server → LMS MongoDB: connects and queries (evidence: `frontend/server.js`)
- Course API Server → Course Routes: mounts routes (evidence: `backend/server.js`)
- Course API Server → MongoDB: connects MongoDB (evidence: `backend/server.js`)
- Course Routes → Course Model: queries and saves (evidence: `backend/routes/courses.js`)
- Course Model → MongoDB: defines persisted model
