# evonyll/hoa-management-system architecture

> Architecture diagram of the GitHub repository evonyll/hoa-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/evonyll/hoa-management-system
- Repository: https://github.com/evonyll/hoa-management-system

## Overview

This is an HOA community-management web application. Residents and visitors enter through public pages or authenticated member/admin routes, use community and account services, and receive content or complete activities such as payments, bookings, and requests. The README also documents major administrative capabilities that are represented in the backend app structure, though their implementation was not sampled. The graph emphasizes evidenced frontend routing and profile/payment calls; links into backend domain handlers are left unverified where source excerpts do not show the dispatch.

Main entry points: [`frontend/src/pages/Admin`](https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Admin) (Admin dashboard), [`frontend/src/router.jsx`](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/router.jsx) (Route selection), [`frontend/src/pages/Public`](https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Public) (Public information), [`frontend/src/pages/Private/Payments.jsx`](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/pages/Private/Payments.jsx) (Member payments)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_app["React application<br/>[App.jsx]"]
  node_router["Route selection<br/>[router.jsx]"]
end

subgraph group_member["Resident experience"]
  node_public["Public information"]
  node_auth["Authentication<br/>[AuthContext.jsx]"]
  node_profile["Profile management<br/>[ProfileContext.jsx]"]
  node_profile_api["Profile API client<br/>[profileService.js]"]
  node_payments_ui["Member payments<br/>[Payments.jsx]"]
  node_payment_gateway["Payment gateway client<br/>[paymentGateway.js]"]
  node_payment_history["Payment history<br/>[PaymentHistory.jsx]"]
  node_member_portal["Member portal"]
end

subgraph group_admin["Administration"]
  node_admin_ui["Admin dashboard"]
end

subgraph group_backend["Backend domains"]
  node_api_root["API routing<br/>[urls.py]"]
  node_user_domain["User and access domain"]
  node_cms_domain["Community content"]
  node_news_domain["News publishing"]
  node_events_domain["Events and RSVP"]
  node_documents_domain["Document library"]
  node_bookings_domain["Facility bookings"]
  node_payments_domain["Payment records"]
  node_tickets_domain["Support tickets"]
  node_forum_domain["Community forum"]
  node_polls_domain["Polls and surveys"]
end

node_visitor(("Visitor or resident"))
node_database[("PostgreSQL")]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_router
node_router -->|"routes to"| node_public
node_router -->|"routes to"| node_member_portal
node_router -->|"routes to"| node_admin_ui
node_router -->|"guards routes"| node_auth
node_auth -.->|"authenticates via"| node_user_domain
node_profile -->|"requests profile data"| node_profile_api
node_profile_api -.->|"calls user endpoints"| node_api_root
node_payments_ui -->|"starts payment"| node_payment_gateway
node_payments_ui -.->|"shows history"| node_payment_history
node_payments_ui -.->|"submits payment"| node_payments_domain
node_admin_ui -.->|"manages content"| node_cms_domain
node_admin_ui -.->|"manages bookings"| node_bookings_domain
node_admin_ui -.->|"tracks payments"| node_payments_domain
node_admin_ui -.->|"manages tickets"| node_tickets_domain
node_admin_ui -.->|"moderates forum"| node_forum_domain
node_admin_ui -.->|"manages polls"| node_polls_domain
node_public -.->|"presents news"| node_news_domain
node_public -.->|"presents events"| node_events_domain
node_public -.->|"presents documents"| node_documents_domain
node_user_domain -.->|"persists data"| node_database
node_cms_domain -.->|"persists data"| node_database
node_news_domain -.->|"persists data"| node_database
node_events_domain -.->|"persists data"| node_database
node_documents_domain -.->|"persists data"| node_database
node_bookings_domain -.->|"persists data"| node_database
node_payments_domain -.->|"persists data"| node_database
node_tickets_domain -.->|"persists data"| node_database
node_forum_domain -.->|"persists data"| node_database
node_polls_domain -.->|"persists data"| node_database

click node_app "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/App.jsx"
click node_router "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/router.jsx"
click node_public "https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Public"
click node_auth "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/context/AuthContext.jsx"
click node_profile "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/context/ProfileContext.jsx"
click node_profile_api "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/services/profileService.js"
click node_payments_ui "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/pages/Private/Payments.jsx"
click node_payment_gateway "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/services/paymentGateway.js"
click node_payment_history "https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/pages/Private/PaymentHistory.jsx"
click node_member_portal "https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Private"
click node_admin_ui "https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Admin"
click node_api_root "https://github.com/evonyll/hoa-management-system/blob/master/backend/hoa_backend/urls.py"
click node_user_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/users"
click node_cms_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/cms"
click node_news_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/news"
click node_events_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/events"
click node_documents_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/documents"
click node_bookings_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/bookings"
click node_payments_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/payments"
click node_tickets_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/tickets"
click node_forum_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/forum"
click node_polls_domain "https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/polls"

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_app,node_router toneBlue
class node_public,node_auth,node_profile,node_profile_api,node_payments_ui,node_payment_gateway,node_payment_history,node_member_portal,node_database toneAmber
class node_admin_ui toneMint
class node_api_root,node_user_domain,node_cms_domain,node_news_domain,node_events_domain,node_documents_domain,node_bookings_domain,node_payments_domain,node_tickets_domain,node_forum_domain,node_polls_domain toneRose
class node_visitor toneIndigo
```

## Components

### Application entry

- [React application](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Route selection](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/router.jsx): `frontend/src/router.jsx`

### Resident experience

- [Public information](https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Public): `frontend/src/pages/Public`
- [Authentication](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/context/AuthContext.jsx): `frontend/src/context/AuthContext.jsx`
- [Profile management](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/context/ProfileContext.jsx): `frontend/src/context/ProfileContext.jsx`
- [Profile API client](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/services/profileService.js): `frontend/src/services/profileService.js`
- [Member payments](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/pages/Private/Payments.jsx): `frontend/src/pages/Private/Payments.jsx`
- [Payment gateway client](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/services/paymentGateway.js): `frontend/src/services/paymentGateway.js`
- [Payment history](https://github.com/evonyll/hoa-management-system/blob/master/frontend/src/pages/Private/PaymentHistory.jsx): `frontend/src/pages/Private/PaymentHistory.jsx`
- [Member portal](https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Private): `frontend/src/pages/Private`

### Administration

- [Admin dashboard](https://github.com/evonyll/hoa-management-system/tree/master/frontend/src/pages/Admin): `frontend/src/pages/Admin`

### Backend domains

- [API routing](https://github.com/evonyll/hoa-management-system/blob/master/backend/hoa_backend/urls.py): `backend/hoa_backend/urls.py`
- [User and access domain](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/users): `backend/apps/users`
- [Community content](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/cms): `backend/apps/cms`
- [News publishing](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/news): `backend/apps/news`
- [Events and RSVP](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/events): `backend/apps/events`
- [Document library](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/documents): `backend/apps/documents`
- [Facility bookings](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/bookings): `backend/apps/bookings`
- [Payment records](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/payments): `backend/apps/payments`
- [Support tickets](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/tickets): `backend/apps/tickets`
- [Community forum](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/forum): `backend/apps/forum`
- [Polls and surveys](https://github.com/evonyll/hoa-management-system/tree/master/backend/apps/polls): `backend/apps/polls`

### Other components

- **Visitor or resident**
- **PostgreSQL**

## Connections

- Visitor or resident → React application: opens
- React application → Route selection: renders (evidence: `frontend/src/App.jsx`)
- Route selection → Public information: routes to (evidence: `frontend/src/router.jsx`)
- Route selection → Member portal: routes to (evidence: `frontend/src/router.jsx`)
- Route selection → Admin dashboard: routes to (evidence: `frontend/src/router.jsx`)
- Route selection → Authentication: guards routes (evidence: `frontend/src/router.jsx`)
- Authentication → User and access domain: authenticates via
- Profile management → Profile API client: requests profile data (evidence: `frontend/src/context/ProfileContext.jsx`)
- Profile API client → API routing: calls user endpoints
- Member payments → Payment gateway client: starts payment (evidence: `frontend/src/pages/Private/Payments.jsx`)
- Member payments → Payment history: shows history
- Member payments → Payment records: submits payment
- Admin dashboard → Community content: manages content
- Admin dashboard → Facility bookings: manages bookings
- Admin dashboard → Payment records: tracks payments
- Admin dashboard → Support tickets: manages tickets
- Admin dashboard → Community forum: moderates forum
- Admin dashboard → Polls and surveys: manages polls
- Public information → News publishing: presents news
- Public information → Events and RSVP: presents events
- Public information → Document library: presents documents
- User and access domain → PostgreSQL: persists data
- Community content → PostgreSQL: persists data
- News publishing → PostgreSQL: persists data
- Events and RSVP → PostgreSQL: persists data
- Document library → PostgreSQL: persists data
- Facility bookings → PostgreSQL: persists data
- Payment records → PostgreSQL: persists data
- Support tickets → PostgreSQL: persists data
- Community forum → PostgreSQL: persists data
- Polls and surveys → PostgreSQL: persists data
