# joshitha2005-bit/major-project-real-estate- architecture

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

- Interactive diagram: https://gitdiagram.com/joshitha2005-bit/major-project-real-estate-
- Repository: https://github.com/joshitha2005-bit/major-project-real-estate-

## Overview

GeoSmart Price AI is a Bengaluru property-search and valuation platform. A user browses or submits a property through the React app; FastAPI routes requests to listing, location, and AI capabilities, which use property data and return search, geospatial, valuation, and analysis results. The product also includes authentication, subscriptions, loans, owner listings, private administration, and a voice lead assistant. The README documents multimodal XGBoost/TreeSHAP capabilities, but sampled excerpts do not show the complete model pipeline; those links are therefore documented at the API capability level. Some subsystem internals are unsampled.

Main entry points: [`backend/app/main.py`](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/main.py) (FastAPI application), [`backend/app/api/v1/properties.py`](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/properties.py) (Property routes), [`frontend/src/services/api.js`](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/services/api.js) (API client), [`backend/app/api/v1/ai.py`](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/ai.py) (AI routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web experience"]
  node_webapp["React application<br/>[App.jsx]"]
  node_authctx["Session context<br/>[AuthContext.jsx]"]
  node_webapi["API client<br/>[api.js]"]
  node_propertyui["Property browsing"]
  node_dashboard["GIS dashboard<br/>[DashboardPage.jsx]"]
end

subgraph group_api["Backend API"]
  node_backend["FastAPI application<br/>[main.py]"]
  node_authapi["Authentication routes<br/>[auth.py]"]
  node_propertyapi["Property routes<br/>[properties.py]"]
  node_listingapi["Owner listings<br/>[listings.py]"]
  node_locationapi["Location routes<br/>[location.py]"]
  node_aiapi["AI routes<br/>[ai.py]"]
  node_voiceapi["Voice assistant routes<br/>[voice_assistant.py]"]
end

subgraph group_property["Property and location"]
  node_propertydata[("Property records<br/>[property.py]")]
  node_database[("SQL database<br/>[database.py]")]
  node_geoservice["GIS enrichment"]
  node_listingservice["Listing service<br/>[listing_service.py]"]
end

subgraph group_intelligence["AI and assistance"]
  node_valuation["Multimodal valuation"]
  node_voiceengine["Voice conversation"]
end

subgraph group_platform["Accounts and operations"]
  node_accounts[("User accounts<br/>[user.py]")]
  node_admin["Private administration<br/>[admin_private.py]"]
  node_loans["Loan comparison<br/>[loans.py]"]
  node_subscriptions["Subscriptions<br/>[subscriptions.py]"]
end

node_visitor(("Property user"))
node_geoapify{{"Geoapify"}}
node_enduser(("External owner or buyer"))

node_visitor -->|"browses"| node_webapp
node_webapp -->|"provides session"| node_authctx
node_authctx -->|"requests profile"| node_webapi
node_propertyui -->|"requests property data"| node_webapi
node_dashboard -.->|"requests GIS data"| node_webapi
node_webapi -->|"sends REST requests"| node_backend
node_backend -->|"routes requests"| node_authapi
node_backend -->|"routes requests"| node_propertyapi
node_backend -->|"routes requests"| node_listingapi
node_backend -->|"routes requests"| node_locationapi
node_backend -->|"routes requests"| node_aiapi
node_backend -->|"routes requests"| node_voiceapi
node_backend -->|"routes requests"| node_loans
node_backend -->|"routes requests"| node_admin
node_backend -->|"routes requests"| node_subscriptions
node_propertyapi -->|"queries listings"| node_propertydata
node_listingapi -->|"uses listing logic"| node_listingservice
node_propertyapi -->|"uses listing logic"| node_listingservice
node_locationapi -->|"requests GIS enrichment"| node_geoservice
node_propertyapi -->|"requests routes"| node_geoservice
node_geoservice -.->|"queries places"| node_geoapify
node_aiapi -->|"requests prediction"| node_valuation
node_aiapi -->|"reads property context"| node_propertydata
node_voiceapi -.->|"handles conversations"| node_voiceengine
node_authapi -->|"reads and writes"| node_accounts
node_propertydata -->|"persists records"| node_database
node_enduser -.->|"uses platform"| node_backend

click node_webapp "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/App.jsx"
click node_authctx "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/context/AuthContext.jsx"
click node_webapi "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/services/api.js"
click node_propertyui "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/pages/PropertyDetailsPage.jsx"
click node_dashboard "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/pages/DashboardPage.jsx"
click node_backend "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/main.py"
click node_authapi "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/auth.py"
click node_propertyapi "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/properties.py"
click node_listingapi "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/listings.py"
click node_locationapi "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/location.py"
click node_aiapi "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/ai.py"
click node_propertydata "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/models/property.py"
click node_database "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/core/database.py"
click node_geoservice "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/geoapify_service.py"
click node_listingservice "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/listing_service.py"
click node_valuation "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/price_prediction_service.py"
click node_voiceapi "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/voice_assistant.py"
click node_voiceengine "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/voice_conversation_engine.py"
click node_accounts "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/models/user.py"
click node_admin "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/admin_private.py"
click node_loans "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/loans.py"
click node_subscriptions "https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/subscriptions.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_webapp,node_authctx,node_webapi,node_propertyui,node_dashboard,node_visitor toneBlue
class node_backend,node_authapi,node_propertyapi,node_listingapi,node_locationapi,node_aiapi,node_voiceapi toneAmber
class node_propertydata,node_database,node_geoservice,node_listingservice,node_geoapify toneMint
class node_valuation,node_voiceengine toneRose
class node_accounts,node_admin,node_loans,node_subscriptions,node_enduser toneIndigo
```

## Components

### Web experience

- [React application](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Session context](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [API client](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`
- [Property browsing](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/pages/PropertyDetailsPage.jsx): `frontend/src/pages/PropertyDetailsPage.jsx`
- [GIS dashboard](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/frontend/src/pages/DashboardPage.jsx): `frontend/src/pages/DashboardPage.jsx`

### Backend API

- [FastAPI application](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/main.py): `backend/app/main.py`
- [Authentication routes](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/auth.py): `backend/app/api/v1/auth.py`
- [Property routes](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/properties.py): `backend/app/api/v1/properties.py`
- [Owner listings](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/listings.py): `backend/app/api/v1/listings.py`
- [Location routes](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/location.py): `backend/app/api/v1/location.py`
- [AI routes](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/ai.py): `backend/app/api/v1/ai.py`
- [Voice assistant routes](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/voice_assistant.py): `backend/app/api/v1/voice_assistant.py`

### Property and location

- [Property records](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/models/property.py): `backend/app/models/property.py`
- [SQL database](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/core/database.py): `backend/app/core/database.py`
- [GIS enrichment](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/geoapify_service.py): `backend/app/services/geoapify_service.py`
- [Listing service](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/listing_service.py): `backend/app/services/listing_service.py`

### AI and assistance

- [Multimodal valuation](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/price_prediction_service.py): `backend/app/services/price_prediction_service.py`
- [Voice conversation](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/services/voice_conversation_engine.py): `backend/app/services/voice_conversation_engine.py`

### Accounts and operations

- [User accounts](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/models/user.py): `backend/app/models/user.py`
- [Private administration](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/admin_private.py): `backend/app/api/v1/admin_private.py`
- [Loan comparison](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/loans.py): `backend/app/api/v1/loans.py`
- [Subscriptions](https://github.com/joshitha2005-bit/major-project-real-estate-/blob/main/backend/app/api/v1/subscriptions.py): `backend/app/api/v1/subscriptions.py`

### Other components

- **Property user**
- **Geoapify**
- **External owner or buyer**

## Connections

- Property user → React application: browses (evidence: `frontend/src/App.jsx`)
- React application → Session context: provides session (evidence: `frontend/src/App.jsx`)
- Session context → API client: requests profile (evidence: `frontend/src/context/AuthContext.jsx`)
- Property browsing → API client: requests property data (evidence: `frontend/src/pages/PropertyDetailsPage.jsx`)
- GIS dashboard → API client: requests GIS data
- API client → FastAPI application: sends REST requests (evidence: `frontend/src/services/api.js`)
- FastAPI application → Authentication routes: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → Property routes: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → Owner listings: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → Location routes: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → AI routes: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → Voice assistant routes: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → Loan comparison: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → Private administration: routes requests (evidence: `backend/app/main.py`)
- FastAPI application → Subscriptions: routes requests (evidence: `backend/app/main.py`)
- Property routes → Property records: queries listings (evidence: `backend/app/api/v1/properties.py`)
- Owner listings → Listing service: uses listing logic (evidence: `backend/app/api/v1/listings.py`)
- Property routes → Listing service: uses listing logic (evidence: `backend/app/api/v1/properties.py`)
- Location routes → GIS enrichment: requests GIS enrichment (evidence: `backend/app/api/v1/location.py`)
- Property routes → GIS enrichment: requests routes (evidence: `backend/app/api/v1/properties.py`)
- GIS enrichment → Geoapify: queries places
- AI routes → Multimodal valuation: requests prediction (evidence: `backend/app/api/v1/ai.py`)
- AI routes → Property records: reads property context (evidence: `backend/app/api/v1/ai.py`)
- Voice assistant routes → Voice conversation: handles conversations
- Authentication routes → User accounts: reads and writes (evidence: `backend/app/api/v1/auth.py`)
- Property records → SQL database: persists records (evidence: `backend/app/models/property.py`)
- External owner or buyer → FastAPI application: uses platform
