EstateHub

Backend Customization

Extend EstateHub within an owning Django application. Preserve the existing view → serializer/selector → service → model boundary instead of placing workflow logic directly in views.

Adding a Backend Capability

1

Choose domain ownership

Place the change in the application that owns the data and lifecycle.
2

Change persistence safely

Add model constraints and a reviewed migration. Do not rewrite historical migrations after release.
3

Add read and write logic

Put reusable queries in selectors and transactional mutations in services.
4

Expose the API

Add request/response serializers, the correct role and object checks, and a route under the appropriate /api/v1 namespace.
5

Document the schema

Annotate APIViews so drf-spectacular --validate can describe request and response contracts.
6

Test boundaries

Cover permissions, ownership, state transitions, concurrency, errors, notifications, and audit behavior.

Extension Rules

  • Reuse BaseModel for UUID and timestamp consistency where appropriate.
  • Use transaction.atomic and select_for_update for competing inventory or financial mutations.
  • Add audit records for administrator actions that change sensitive business state.
  • Check add-on release requirements before extending Core workflows with an optional module.
  • Do not add an enum value as a substitute for implementing a complete workflow.

Frontend Extensions

  • Keep route files under app/ thin and compose business behavior from the owning features/ domain.
  • Reuse shared layout, form, media, and UI components before creating a new component.
  • Use RTK Query for API-backed server state and Redux slices only for shared client state.
  • Keep property search and filtering state in URL parameters so views remain shareable and restorable.
  • Import through the @/* alias and follow the existing kebab-case file and PascalCase component conventions.
  • Use Base UI's render composition pattern rather than Radix-style asChild props.
  • Extend the existing Tailwind theme tokens instead of scattering new hard-coded colors and spacing values.

Branding and Frontend Customization

The frontend theme tokens are defined in frontend/app/globals.css, while reusable public and portal layouts live under components/layout/ and components/portal/. Static brand assets are served from public/.

The backend platform_config application stores the platform name, branding URLs/uploads, default currency, language, timezone, commission rates, and supported integration configuration. The frontend reads platform name, favicon, brand colors, reservation settings, and OAuth public IDs. Rebuild the frontend after customizing assets, homepage components, or theme tokens.

See Development Standards and Frontend Customization.