# ishita3120/banglore-house-price-prediction architecture

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

- Interactive diagram: https://gitdiagram.com/ishita3120/banglore-house-price-prediction
- Repository: https://github.com/ishita3120/banglore-house-price-prediction

## Overview

This is a Bangalore house-price prediction web application. Users choose a location and enter area, BHK, and bathroom counts; the browser requests locations and submits those inputs, Flask delegates prediction to a utility that loads the saved model and feature columns, and the result is displayed in lakh. The README also describes the data-preparation and model-training workflow, represented here at a high level because the notebook was not sampled. The browser’s `/api` URLs differ from Flask’s routes; the source comments mention a reverse proxy, but its configuration is not present in the tree.

Main entry points: [`server/server.py`](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/server.py) (HTTP API), [`server/util.py`](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/util.py) (Feature encoding and prediction), [`client/app.html`](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.html) (Prediction interface), [`client/app.js`](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.js) (Form and API logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_browser["Prediction interface<br/>[app.html]"]
  node_client_logic["Form and API logic<br/>[app.js]"]
  node_styles["Interface styling<br/>[app.css]"]
end

subgraph group_service["Prediction service"]
  node_flask["HTTP API<br/>[server.py]"]
  node_prediction["Feature encoding and prediction<br/>[util.py]"]
end

subgraph group_ml["Model assets and workflow"]
  node_columns["Feature columns<br/>[columns1.json]"]
  node_model["Trained regression model"]
  node_training["Data preparation and training"]
end

node_user(("Home buyer"))

node_user -->|"enters inputs"| node_browser
node_browser -->|"runs handlers"| node_client_logic
node_client_logic -->|"requests locations"| node_flask
node_client_logic -->|"posts prediction inputs"| node_flask
node_flask -->|"delegates prediction"| node_prediction
node_flask -->|"gets locations"| node_prediction
node_prediction -->|"loads feature columns"| node_columns
node_prediction -->|"loads and predicts"| node_model
node_training -.->|"produces model"| node_model
node_browser -.->|"uses styling"| node_styles

click node_browser "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.html"
click node_client_logic "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.js"
click node_flask "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/server.py"
click node_prediction "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/util.py"
click node_columns "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/artifacts/columns1.json"
click node_model "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/artifacts/HousePricePredicyionBanglore.pickle"
click node_training "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/model/HousePricePredicyionBanglore.ipynb"
click node_styles "https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.css"

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_browser,node_client_logic,node_styles toneBlue
class node_flask,node_prediction toneAmber
class node_columns,node_model,node_training toneMint
class node_user toneIndigo
```

## Components

### Web interface

- [Prediction interface](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.html): `client/app.html`
- [Form and API logic](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.js): `client/app.js`
- [Interface styling](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/client/app.css): `client/app.css`

### Prediction service

- [HTTP API](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/server.py): `server/server.py`
- [Feature encoding and prediction](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/util.py): `server/util.py`

### Model assets and workflow

- [Feature columns](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/artifacts/columns1.json): `server/artifacts/columns1.json`
- [Trained regression model](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/server/artifacts/HousePricePredicyionBanglore.pickle): `server/artifacts/HousePricePredicyionBanglore.pickle`
- [Data preparation and training](https://github.com/ishita3120/banglore-house-price-prediction/blob/main/model/HousePricePredicyionBanglore.ipynb): `model/HousePricePredicyionBanglore.ipynb`

### Other components

- **Home buyer**

## Connections

- Home buyer → Prediction interface: enters inputs
- Prediction interface → Form and API logic: runs handlers (evidence: `client/app.js`)
- Form and API logic → HTTP API: requests locations (evidence: `client/app.js`)
- Form and API logic → HTTP API: posts prediction inputs (evidence: `client/app.js`)
- HTTP API → Feature encoding and prediction: delegates prediction (evidence: `server/server.py`)
- HTTP API → Feature encoding and prediction: gets locations (evidence: `server/server.py`)
- Feature encoding and prediction → Feature columns: loads feature columns (evidence: `server/util.py`)
- Feature encoding and prediction → Trained regression model: loads and predicts (evidence: `server/util.py`)
- Data preparation and training → Trained regression model: produces model
- Prediction interface → Interface styling: uses styling
