# dilharajay/moneyloopdip architecture

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

- Interactive diagram: https://gitdiagram.com/dilharajay/moneyloopdip
- Repository: https://github.com/dilharajay/moneyloopdip

## Overview

MoneyLoop is a Django application for member-based rotating savings groups: users register, create or join groups, contribute, and receive scheduled or cycle-based payouts. The graph follows the web request path into views and domain services, alongside scheduled payout and notification work. The README is empty, so capability coverage relies on the sampled source and repository tree; unsampled views and integrations are not inferred beyond their visible entry points.

Main entry points: [`core/views.py`](https://github.com/dilharajay/moneyloopdip/blob/main/core/views.py) (Web workflows), [`core/models.py`](https://github.com/dilharajay/moneyloopdip/blob/main/core/models.py) (Savings records), [`core/services/notification_service.py`](https://github.com/dilharajay/moneyloopdip/blob/main/core/services/notification_service.py) (Notification service), [`core/services/payment_service.py`](https://github.com/dilharajay/moneyloopdip/blob/main/core/services/payment_service.py) (Contributions and payouts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_routes["Web routes<br/>[urls.py]"]
  node_views["Web workflows<br/>[views.py]"]
  node_forms["Input forms<br/>[forms.py]"]
  node_templates["Page templates"]
end

subgraph group_domain["Savings domain"]
  node_records["Savings records<br/>[models.py]"]
  node_database[("Application database")]
  node_groupsvc["Group cycles<br/>[group_service.py]"]
  node_paymentsvc["Contributions and payouts<br/>[payment_service.py]"]
  node_payoutcommand["Cycle payout command"]
end

subgraph group_operations["Scheduled operations"]
  node_payouttask["Scheduled payout task<br/>[tasks.py]"]
  node_scheduler["Celery scheduler<br/>[celery.py]"]
end

subgraph group_messaging["Notifications"]
  node_notificationsvc["Notification service"]
  node_emailtemplates["Email templates"]
end

node_member(("Member"))

node_member -->|"requests pages"| node_routes
node_routes -->|"routes requests"| node_views
node_views -->|"validates input"| node_forms
node_views -->|"reads and updates"| node_records
node_views -->|"processes contributions"| node_paymentsvc
node_views -->|"sends notifications"| node_notificationsvc
node_views -->|"queues work"| node_payouttask
node_views -->|"renders pages"| node_templates
node_forms -->|"validates models"| node_records
node_records -.->|"persists records"| node_database
node_paymentsvc -->|"records transactions"| node_records
node_paymentsvc -->|"requests confirmation"| node_notificationsvc
node_paymentsvc -.->|"rotates recipients"| node_groupsvc
node_payoutcommand -->|"selects active groups"| node_records
node_payoutcommand -->|"processes cycles"| node_groupsvc
node_groupsvc -->|"records payouts"| node_records
node_groupsvc -->|"creates alerts"| node_notificationsvc
node_payouttask -->|"runs monthly payouts"| node_paymentsvc
node_payouttask -->|"processes disbursements"| node_groupsvc
node_payouttask -->|"sends reminders"| node_notificationsvc
node_scheduler -->|"schedules tasks"| node_payouttask
node_notificationsvc -->|"stores notifications"| node_records
node_notificationsvc -->|"renders email"| node_emailtemplates

click node_routes "https://github.com/dilharajay/moneyloopdip/blob/main/core/urls.py"
click node_views "https://github.com/dilharajay/moneyloopdip/blob/main/core/views.py"
click node_forms "https://github.com/dilharajay/moneyloopdip/blob/main/core/forms.py"
click node_templates "https://github.com/dilharajay/moneyloopdip/tree/main/templates"
click node_records "https://github.com/dilharajay/moneyloopdip/blob/main/core/models.py"
click node_groupsvc "https://github.com/dilharajay/moneyloopdip/blob/main/core/services/group_service.py"
click node_paymentsvc "https://github.com/dilharajay/moneyloopdip/blob/main/core/services/payment_service.py"
click node_payoutcommand "https://github.com/dilharajay/moneyloopdip/blob/main/core/management/commands/process_rosca_payouts.py"
click node_payouttask "https://github.com/dilharajay/moneyloopdip/blob/main/core/tasks.py"
click node_scheduler "https://github.com/dilharajay/moneyloopdip/blob/main/MoneyLoop/celery.py"
click node_notificationsvc "https://github.com/dilharajay/moneyloopdip/blob/main/core/services/notification_service.py"
click node_emailtemplates "https://github.com/dilharajay/moneyloopdip/tree/main/templates/emails"

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_routes,node_views,node_forms,node_templates toneBlue
class node_records,node_database,node_groupsvc,node_paymentsvc,node_payoutcommand toneAmber
class node_payouttask,node_scheduler toneMint
class node_notificationsvc,node_emailtemplates toneRose
class node_member toneIndigo
```

## Components

### Web experience

- [Web routes](https://github.com/dilharajay/moneyloopdip/blob/main/core/urls.py): `core/urls.py`
- [Web workflows](https://github.com/dilharajay/moneyloopdip/blob/main/core/views.py): `core/views.py`
- [Input forms](https://github.com/dilharajay/moneyloopdip/blob/main/core/forms.py): `core/forms.py`
- [Page templates](https://github.com/dilharajay/moneyloopdip/tree/main/templates): `templates`

### Savings domain

- [Savings records](https://github.com/dilharajay/moneyloopdip/blob/main/core/models.py): `core/models.py`
- **Application database**
- [Group cycles](https://github.com/dilharajay/moneyloopdip/blob/main/core/services/group_service.py): `core/services/group_service.py`
- [Contributions and payouts](https://github.com/dilharajay/moneyloopdip/blob/main/core/services/payment_service.py): `core/services/payment_service.py`
- [Cycle payout command](https://github.com/dilharajay/moneyloopdip/blob/main/core/management/commands/process_rosca_payouts.py): `core/management/commands/process_rosca_payouts.py`

### Scheduled operations

- [Scheduled payout task](https://github.com/dilharajay/moneyloopdip/blob/main/core/tasks.py): `core/tasks.py`
- [Celery scheduler](https://github.com/dilharajay/moneyloopdip/blob/main/MoneyLoop/celery.py): `MoneyLoop/celery.py`

### Notifications

- [Notification service](https://github.com/dilharajay/moneyloopdip/blob/main/core/services/notification_service.py): `core/services/notification_service.py`
- [Email templates](https://github.com/dilharajay/moneyloopdip/tree/main/templates/emails): `templates/emails`

### Other components

- **Member**

## Connections

- Member → Web routes: requests pages
- Web routes → Web workflows: routes requests (evidence: `core/urls.py`)
- Web workflows → Input forms: validates input (evidence: `core/views.py`)
- Web workflows → Savings records: reads and updates (evidence: `core/views.py`)
- Web workflows → Contributions and payouts: processes contributions (evidence: `core/views.py`)
- Web workflows → Notification service: sends notifications (evidence: `core/views.py`)
- Web workflows → Scheduled payout task: queues work (evidence: `core/views.py`)
- Web workflows → Page templates: renders pages (evidence: `core/views.py`)
- Input forms → Savings records: validates models (evidence: `core/forms.py`)
- Savings records → Application database: persists records
- Contributions and payouts → Savings records: records transactions (evidence: `core/services/payment_service.py`)
- Contributions and payouts → Notification service: requests confirmation (evidence: `core/services/payment_service.py`)
- Contributions and payouts → Group cycles: rotates recipients
- Cycle payout command → Savings records: selects active groups (evidence: `core/management/commands/process_rosca_payouts.py`)
- Cycle payout command → Group cycles: processes cycles (evidence: `core/management/commands/process_rosca_payouts.py`)
- Group cycles → Savings records: records payouts (evidence: `core/services/group_service.py`)
- Group cycles → Notification service: creates alerts (evidence: `core/services/group_service.py`)
- Scheduled payout task → Contributions and payouts: runs monthly payouts (evidence: `core/tasks.py`)
- Scheduled payout task → Group cycles: processes disbursements (evidence: `core/tasks.py`)
- Scheduled payout task → Notification service: sends reminders (evidence: `core/tasks.py`)
- Celery scheduler → Scheduled payout task: schedules tasks (evidence: `MoneyLoop/celery.py`)
- Notification service → Savings records: stores notifications (evidence: `core/services/notification_service.py`)
- Notification service → Email templates: renders email (evidence: `core/services/notification_service.py`)
