# mansibhole/career-recommender architecture

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

- Interactive diagram: https://gitdiagram.com/mansibhole/career-recommender
- Repository: https://github.com/mansibhole/career-recommender

## Overview

This is a Flask career-recommendation app. Users can sign up and log in, submit skills, interests, and marks for a career prediction, and view saved predictions on a dashboard. A separate training script reads the dataset, trains a decision-tree classifier, and saves the model and encoders for the app to load. The excerpts show route, template, model, and database interactions; template contents and database schema were not provided.

Main entry points: [`app.py`](https://github.com/mansibhole/career-recommender/blob/main/app.py) (Prediction route), [`model.py`](https://github.com/mansibhole/career-recommender/blob/main/model.py) (Model training), [`templates/index.html`](https://github.com/mansibhole/career-recommender/blob/main/templates/index.html) (Home page), [`model.pkl`](https://github.com/mansibhole/career-recommender/blob/main/model.pkl) (Trained model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web and accounts"]
  node_home["Home route<br/>[app.py]"]
  node_signup["Signup route<br/>[app.py]"]
  node_login["Login route<br/>[app.py]"]
  node_logout["Logout route<br/>[app.py]"]
  node_dashboard["Dashboard route<br/>[app.py]"]
  node_index_page["Home page<br/>[index.html]"]
  node_signup_page["Signup page<br/>[signup.html]"]
  node_login_page["Login page<br/>[login.html]"]
  node_dashboard_page["Dashboard page<br/>[dashboard.html]"]
end

subgraph group_recommendation["Career recommendation"]
  node_prediction["Prediction route<br/>[app.py]"]
  node_training["Model training<br/>[model.py]"]
  node_dataset["Training dataset<br/>[dataset.csv]"]
  node_model_artifact["Trained model<br/>[model.pkl]"]
  node_career_result["Career result<br/>[app.py]"]
end

subgraph group_storage["Prediction storage"]
  node_mysql[("MySQL database")]
end

node_user(("User"))

node_user -->|"opens"| node_home
node_home -->|"renders"| node_index_page
node_user -->|"submits"| node_signup
node_signup -->|"renders"| node_signup_page
node_signup -->|"inserts user"| node_mysql
node_user -->|"submits"| node_login
node_login -->|"checks credentials"| node_mysql
node_login -->|"renders"| node_login_page
node_user -->|"submits inputs"| node_prediction
node_prediction -->|"loads"| node_model_artifact
node_prediction -->|"predicts career"| node_career_result
node_prediction -->|"saves prediction"| node_mysql
node_career_result -->|"renders result"| node_index_page
node_user -->|"opens"| node_dashboard
node_dashboard -->|"reads predictions"| node_mysql
node_dashboard -->|"renders data"| node_dashboard_page
node_user -->|"requests"| node_logout
node_training -->|"reads"| node_dataset
node_training -->|"writes"| node_model_artifact

click node_home "https://github.com/mansibhole/career-recommender/blob/main/app.py"
click node_signup "https://github.com/mansibhole/career-recommender/blob/main/app.py"
click node_login "https://github.com/mansibhole/career-recommender/blob/main/app.py"
click node_logout "https://github.com/mansibhole/career-recommender/blob/main/app.py"
click node_dashboard "https://github.com/mansibhole/career-recommender/blob/main/app.py"
click node_index_page "https://github.com/mansibhole/career-recommender/blob/main/templates/index.html"
click node_signup_page "https://github.com/mansibhole/career-recommender/blob/main/templates/signup.html"
click node_login_page "https://github.com/mansibhole/career-recommender/blob/main/templates/login.html"
click node_dashboard_page "https://github.com/mansibhole/career-recommender/blob/main/templates/dashboard.html"
click node_prediction "https://github.com/mansibhole/career-recommender/blob/main/app.py"
click node_training "https://github.com/mansibhole/career-recommender/blob/main/model.py"
click node_dataset "https://github.com/mansibhole/career-recommender/blob/main/dataset.csv"
click node_model_artifact "https://github.com/mansibhole/career-recommender/blob/main/model.pkl"
click node_career_result "https://github.com/mansibhole/career-recommender/blob/main/app.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_home,node_signup,node_login,node_logout,node_dashboard,node_index_page,node_signup_page,node_login_page,node_dashboard_page,node_user toneBlue
class node_prediction,node_training,node_dataset,node_model_artifact,node_career_result toneAmber
class node_mysql toneMint
```

## Components

### Web and accounts

- [Home route](https://github.com/mansibhole/career-recommender/blob/main/app.py): `app.py`
- [Signup route](https://github.com/mansibhole/career-recommender/blob/main/app.py): `app.py`
- [Login route](https://github.com/mansibhole/career-recommender/blob/main/app.py): `app.py`
- [Logout route](https://github.com/mansibhole/career-recommender/blob/main/app.py): `app.py`
- [Dashboard route](https://github.com/mansibhole/career-recommender/blob/main/app.py): `app.py`
- [Home page](https://github.com/mansibhole/career-recommender/blob/main/templates/index.html): `templates/index.html`
- [Signup page](https://github.com/mansibhole/career-recommender/blob/main/templates/signup.html): `templates/signup.html`
- [Login page](https://github.com/mansibhole/career-recommender/blob/main/templates/login.html): `templates/login.html`
- [Dashboard page](https://github.com/mansibhole/career-recommender/blob/main/templates/dashboard.html): `templates/dashboard.html`

### Career recommendation

- [Prediction route](https://github.com/mansibhole/career-recommender/blob/main/app.py): `app.py`
- [Model training](https://github.com/mansibhole/career-recommender/blob/main/model.py): `model.py`
- [Training dataset](https://github.com/mansibhole/career-recommender/blob/main/dataset.csv): `dataset.csv`
- [Trained model](https://github.com/mansibhole/career-recommender/blob/main/model.pkl): `model.pkl`
- [Career result](https://github.com/mansibhole/career-recommender/blob/main/app.py): `app.py`

### Prediction storage

- **MySQL database**

### Other components

- **User**

## Connections

- User → Home route: opens (evidence: `app.py`)
- Home route → Home page: renders (evidence: `app.py`)
- User → Signup route: submits (evidence: `app.py`)
- Signup route → Signup page: renders (evidence: `app.py`)
- Signup route → MySQL database: inserts user (evidence: `app.py`)
- User → Login route: submits (evidence: `app.py`)
- Login route → MySQL database: checks credentials (evidence: `app.py`)
- Login route → Login page: renders (evidence: `app.py`)
- User → Prediction route: submits inputs (evidence: `app.py`)
- Prediction route → Trained model: loads (evidence: `app.py`)
- Prediction route → Career result: predicts career (evidence: `app.py`)
- Prediction route → MySQL database: saves prediction (evidence: `app.py`)
- Career result → Home page: renders result (evidence: `app.py`)
- User → Dashboard route: opens (evidence: `app.py`)
- Dashboard route → MySQL database: reads predictions (evidence: `app.py`)
- Dashboard route → Dashboard page: renders data (evidence: `app.py`)
- User → Logout route: requests (evidence: `app.py`)
- Model training → Training dataset: reads (evidence: `model.py`)
- Model training → Trained model: writes (evidence: `model.py`)
