# tmabhinandan8-bit/real-estate architecture

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

- Interactive diagram: https://gitdiagram.com/tmabhinandan8-bit/real-estate
- Repository: https://github.com/tmabhinandan8-bit/real-estate

## Overview

This is a real-estate listing and transaction management application with two documented deployment styles: an embedded Java HTTP server and a separate Servlet/Maven source tree. The principal workflow is a user browsing or managing listings, then arranging a visit or rental/purchase-related action, with the backend persisting records. The excerpts show selected persistence, session, filtering, visit, rental, and email behavior; other README capabilities are represented only at the documented subsystem level because their source was not sampled.

Main entry points: [`backend.java`](https://github.com/tmabhinandan8-bit/real-estate/blob/main/backend.java) (Embedded HTTP server), [`RealEstateBackend.java`](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java) (Owner verification), [`supabase_schema.sql`](https://github.com/tmabhinandan8-bit/real-estate/blob/main/supabase_schema.sql) (MySQL database), [`frontend`](https://github.com/tmabhinandan8-bit/real-estate/blob/main/frontend) (Web frontend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User experience"]
  node_frontend["Web frontend"]
end

subgraph group_backend["Application backend"]
  node_embedded["Embedded HTTP server<br/>[backend.java]"]
  node_servlet["Servlet backend"]
  node_sessions["JWT sessions"]
  node_async_notifications["Async notifications"]
end

subgraph group_domain["Property workflows"]
  node_property_search["Property search"]
  node_property_management["Property management"]
  node_visits["Visit scheduling<br/>[backend.java]"]
  node_agreements["Rental agreements"]
  node_verification["Owner verification"]
  node_admin["Admin dashboard"]
end

subgraph group_infrastructure["Persistence and integrations"]
  node_mysql[("MySQL database")]
  node_supabase["Supabase API<br/>[backend.java]"]
  node_resend["Resend email"]
end

node_users(("Property users"))

node_users -->|"use"| node_frontend
node_frontend -.->|"send requests"| node_embedded
node_embedded -.->|"resolve tokens"| node_sessions
node_embedded -.->|"serve search"| node_property_search
node_embedded -.->|"serve listings"| node_property_management
node_embedded -->|"route visits"| node_visits
node_embedded -.->|"serve agreements"| node_agreements
node_embedded -.->|"serve verification"| node_verification
node_embedded -.->|"serve dashboard"| node_admin
node_property_search -.->|"persist listings"| node_mysql
node_property_management -.->|"store changes"| node_mysql
node_visits -->|"create visits"| node_supabase
node_agreements -->|"store agreements"| node_supabase
node_admin -->|"read metrics"| node_supabase
node_verification -->|"send email"| node_resend
node_embedded -->|"use API"| node_supabase
node_embedded -.->|"fallback storage"| node_mysql
node_verification -.->|"queue alerts"| node_async_notifications

click node_frontend "https://github.com/tmabhinandan8-bit/real-estate/blob/main/frontend"
click node_embedded "https://github.com/tmabhinandan8-bit/real-estate/blob/main/backend.java"
click node_servlet "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_sessions "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_property_search "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_property_management "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_visits "https://github.com/tmabhinandan8-bit/real-estate/blob/main/backend.java"
click node_agreements "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_verification "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_admin "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_async_notifications "https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java"
click node_mysql "https://github.com/tmabhinandan8-bit/real-estate/blob/main/supabase_schema.sql"
click node_supabase "https://github.com/tmabhinandan8-bit/real-estate/blob/main/backend.java"

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_frontend,node_users toneBlue
class node_embedded,node_servlet,node_sessions,node_async_notifications toneAmber
class node_property_search,node_property_management,node_visits,node_agreements,node_verification,node_admin toneMint
class node_mysql,node_supabase,node_resend toneRose
```

## Components

### User experience

- [Web frontend](https://github.com/tmabhinandan8-bit/real-estate/blob/main/frontend): `frontend`

### Application backend

- [Embedded HTTP server](https://github.com/tmabhinandan8-bit/real-estate/blob/main/backend.java): `backend.java`
- [Servlet backend](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`
- [JWT sessions](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`
- [Async notifications](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`

### Property workflows

- [Property search](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`
- [Property management](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`
- [Visit scheduling](https://github.com/tmabhinandan8-bit/real-estate/blob/main/backend.java): `backend.java`
- [Rental agreements](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`
- [Owner verification](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`
- [Admin dashboard](https://github.com/tmabhinandan8-bit/real-estate/blob/main/RealEstateBackend.java): `RealEstateBackend.java`

### Persistence and integrations

- [MySQL database](https://github.com/tmabhinandan8-bit/real-estate/blob/main/supabase_schema.sql): `supabase_schema.sql`
- [Supabase API](https://github.com/tmabhinandan8-bit/real-estate/blob/main/backend.java): `backend.java`
- **Resend email**

### Other components

- **Property users**

## Connections

- Property users → Web frontend: use (evidence: `README.md`)
- Web frontend → Embedded HTTP server: send requests
- Embedded HTTP server → JWT sessions: resolve tokens (evidence: `backend.java`)
- Embedded HTTP server → Property search: serve search (evidence: `backend.java`)
- Embedded HTTP server → Property management: serve listings (evidence: `backend.java`)
- Embedded HTTP server → Visit scheduling: route visits (evidence: `backend.java`)
- Embedded HTTP server → Rental agreements: serve agreements (evidence: `backend.java`)
- Embedded HTTP server → Owner verification: serve verification (evidence: `backend.java`)
- Embedded HTTP server → Admin dashboard: serve dashboard (evidence: `backend.java`)
- Property search → MySQL database: persist listings
- Property management → MySQL database: store changes
- Visit scheduling → Supabase API: create visits (evidence: `backend.java`)
- Rental agreements → Supabase API: store agreements (evidence: `RealEstateBackend.java`)
- Admin dashboard → Supabase API: read metrics (evidence: `RealEstateBackend.java`)
- Owner verification → Resend email: send email (evidence: `RealEstateBackend.java`)
- Embedded HTTP server → Supabase API: use API (evidence: `backend.java`)
- Embedded HTTP server → MySQL database: fallback storage
- Owner verification → Async notifications: queue alerts (evidence: `RealEstateBackend.java`)
