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
Choose domain ownership
Change persistence safely
Add read and write logic
Expose the API
/api/v1 namespace.Document the schema
drf-spectacular --validate can describe request and response contracts.Test boundaries
Extension Rules
- Reuse
BaseModelfor UUID and timestamp consistency where appropriate. - Use
transaction.atomicandselect_for_updatefor 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 owningfeatures/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
rendercomposition pattern rather than Radix-styleasChildprops. - 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.