EstateHub

System Architecture

EstateHub Core is a Django 5.2+ application using Django REST Framework, Simple JWT, PostgreSQL in development and production, SQLite in the test settings, and ASGI through Daphne.

Runtime Architecture

flowchart LR
subgraph Platform[" "]
  direction TB
  Browser["User Browser<br/>Web browser — desktop or mobile"]
  Frontend["Next.js Frontend<br/>React-based web application"]
  Backend["Django REST Framework Backend<br/>Business logic, API endpoints, and authentication"]
  Database[("PostgreSQL Database<br/>Primary data storage")]

  Browser --> Frontend
  Frontend -->|REST API| Backend
  Backend --> Database
end

subgraph Services["Supporting Services"]
  direction TB
  Storage["Storage<br/>Property media and private documents"]
  Email["Email<br/>Transactional email delivery"]
  Payments["Manual Payments<br/>Bank transfer and administrator verification"]
  Jobs["Redis / Celery<br/>Production caching and background-task option"]
end

Backend --> Storage
Backend --> Email
Backend --> Payments
Backend --> Jobs

classDef browser fill:#f8fbff,stroke:#bfdbfe,color:#0f2747,stroke-width:1px
classDef frontend fill:#effcf5,stroke:#a7f3d0,color:#0f2747,stroke-width:1px
classDef backend fill:#eff6ff,stroke:#93c5fd,color:#0f2747,stroke-width:1px
classDef database fill:#f5f3ff,stroke:#c4b5fd,color:#0f2747,stroke-width:1px
classDef service fill:#ffffff,stroke:#cbd5e1,color:#0f2747,stroke-width:1px

class Browser browser
class Frontend frontend
class Backend backend
class Database database
class Storage,Email,Payments,Jobs service

style Platform fill:transparent,stroke:transparent
style Services fill:#f3fcf7,stroke:#34d399,stroke-width:1px,stroke-dasharray:5 4,color:#047857

Installed Applications

ApplicationResponsibility
accountsUsers, roles, JWT sessions, social authentication, KYC, and KYB.
propertiesListings, media, resources, amenities, favorites, saved searches, comparisons, and discovery.
communicationsConversations, messages, participant read state, and WebSocket consumer support.
appointmentsProperty tours, inspections, document reviews, negotiations, and scheduling actions.
dealsPurchase records, rental applications, leases, and progress checklists.
paymentsPayments, payouts, and immutable financial records.
reviewsProperty and transaction reviews.
notificationsUser notifications, announcements, and real-time notification events.
documents / auditGeneric documents and append-only audit history.
dashboardAdministrator and seller summary queries.
platform_configPlatform identity, branding, commissions, and integration configuration.
uploadsManaged upload preparation, completion, protected delivery, and deletion.

Code Boundaries

  • Views authenticate, authorize, validate serializers, and shape HTTP responses.
  • Selectors own reusable read queries and ownership-scoped lookups.
  • Services own writes, transactions, state transitions, notifications, and audit events.
  • Models define durable state and database constraints.
  • Serializers validate request data and expose response fields.
  • Role-specific URL namespaces separate customer, seller, and administrator surfaces.

Operational Status

The root Compose stack includes PostgreSQL, Redis, and a Celery worker. Review the cache, channel-layer, and worker configuration for your deployment topology.