# sakethchowdary07/course-recommendation-system architecture

> Architecture diagram of the GitHub repository sakethchowdary07/course-recommendation-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/sakethchowdary07/course-recommendation-system
- Repository: https://github.com/sakethchowdary07/course-recommendation-system

## Overview

This is a Flask-based Udemy course recommendation and analytics app. A user submits a course title; the root route loads the cleaned-course CSV, attempts title-similarity recommendations, and falls back to subscriber-ranked title search before rendering results. A separate dashboard route computes subject, level, profit, and subscriber summaries for a dashboard view. The graph follows calls visible in app.py and dashboard.py; the README is empty, and the HTML files were not excerpted, so their internal behavior is not inferred.

Main entry points: [`app.py`](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py) (Flask routes), [`index.html`](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/index.html) (Results view), [`dashboard.html`](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/dashboard.html) (Dashboard view), [`UdemyCleanedTitle.csv`](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/UdemyCleanedTitle.csv) (Course dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_flask["Flask routes<br/>[app.py]"]
  node_results_view["Results view<br/>[index.html]"]
  node_dashboard_view["Dashboard view<br/>[dashboard.html]"]
end

subgraph group_recommend["Recommendations"]
  node_course_data["Course dataset"]
  node_load_data["Load data<br/>[app.py]"]
  node_clean_titles["Clean titles<br/>[app.py]"]
  node_title_vectors["Title vectors<br/>[app.py]"]
  node_similarity["Similarity matrix<br/>[app.py]"]
  node_rank_courses["Rank courses<br/>[app.py]"]
  node_title_search["Title search<br/>[app.py]"]
  node_result_fields["Result fields<br/>[app.py]"]
end

subgraph group_analytics["Analytics"]
  node_dashboard_metrics["Dashboard metrics<br/>[dashboard.py]"]
end

node_user(("User"))

node_user -->|"submits title"| node_flask
node_flask -->|"loads data"| node_load_data
node_load_data -->|"reads CSV"| node_course_data
node_flask -->|"cleans titles"| node_clean_titles
node_flask -->|"builds vectors"| node_title_vectors
node_flask -->|"computes similarity"| node_similarity
node_flask -->|"ranks matches"| node_rank_courses
node_flask -->|"searches fallback"| node_title_search
node_flask -->|"extracts fields"| node_result_fields
node_flask -->|"renders results"| node_results_view
node_user -->|"opens dashboard"| node_flask
node_flask -->|"computes metrics"| node_dashboard_metrics
node_flask -->|"renders dashboard"| node_dashboard_view

click node_flask "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_results_view "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/index.html"
click node_dashboard_view "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/dashboard.html"
click node_course_data "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/UdemyCleanedTitle.csv"
click node_load_data "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_clean_titles "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_title_vectors "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_similarity "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_rank_courses "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_title_search "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_result_fields "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py"
click node_dashboard_metrics "https://github.com/sakethchowdary07/course-recommendation-system/blob/main/dashboard.py"

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_flask,node_results_view,node_dashboard_view,node_user toneBlue
class node_course_data,node_load_data,node_clean_titles,node_title_vectors,node_similarity,node_rank_courses,node_title_search,node_result_fields toneAmber
class node_dashboard_metrics toneMint
```

## Components

### Web application

- [Flask routes](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`
- [Results view](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/index.html): `index.html`
- [Dashboard view](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/dashboard.html): `dashboard.html`

### Recommendations

- [Course dataset](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/UdemyCleanedTitle.csv): `UdemyCleanedTitle.csv`
- [Load data](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`
- [Clean titles](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`
- [Title vectors](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`
- [Similarity matrix](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`
- [Rank courses](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`
- [Title search](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`
- [Result fields](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/app.py): `app.py`

### Analytics

- [Dashboard metrics](https://github.com/sakethchowdary07/course-recommendation-system/blob/main/dashboard.py): `dashboard.py`

### Other components

- **User**

## Connections

- User → Flask routes: submits title (evidence: `app.py`)
- Flask routes → Load data: loads data (evidence: `app.py`)
- Load data → Course dataset: reads CSV (evidence: `app.py`)
- Flask routes → Clean titles: cleans titles (evidence: `app.py`)
- Flask routes → Title vectors: builds vectors (evidence: `app.py`)
- Flask routes → Similarity matrix: computes similarity (evidence: `app.py`)
- Flask routes → Rank courses: ranks matches (evidence: `app.py`)
- Flask routes → Title search: searches fallback (evidence: `app.py`)
- Flask routes → Result fields: extracts fields (evidence: `app.py`)
- Flask routes → Results view: renders results (evidence: `app.py`)
- User → Flask routes: opens dashboard (evidence: `app.py`)
- Flask routes → Dashboard metrics: computes metrics (evidence: `app.py`)
- Flask routes → Dashboard view: renders dashboard (evidence: `app.py`)
