# sireyboth/roumdoul architecture

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

- Interactive diagram: https://gitdiagram.com/sireyboth/roumdoul
- Repository: https://github.com/sireyboth/roumdoul

## Overview

Roumdoul is a storefront and administration app for services, including purchasable digital invitations. Customers browse services, build a session-backed cart, and place orders; confirmed orders provision invitation records that customers can manage and guests can view or RSVP to. Filament provides operational management and reporting. Several page and controller implementations are listed but not sampled, so their connections are shown only where supported or marked unverified.

Main entry points: [`app/Services/CartService.php`](https://github.com/sireyboth/roumdoul/blob/main/app/Services/CartService.php) (Cart service), [`app/Livewire/Pages/ServiceDetailPage.php`](https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/ServiceDetailPage.php) (Service detail), [`app/Models/Order.php`](https://github.com/sireyboth/roumdoul/blob/main/app/Models/Order.php) (Orders), [`app/Models/Invitation.php`](https://github.com/sireyboth/roumdoul/blob/main/app/Models/Invitation.php) (Invitations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commerce["Storefront commerce"]
  node_storefront["Shop and pages<br/>[ShopPage.php]"]
  node_service_detail["Service detail"]
  node_cart["Cart service<br/>[CartService.php]"]
  node_checkout["Checkout<br/>[CheckoutPage.php]"]
end

subgraph group_invitations["Invitation lifecycle"]
  node_invitation_templates[("Invitation templates")]
  node_invitation_records[("Invitations<br/>[Invitation.php]")]
  node_manage_invitation["Invitation management"]
  node_preview["Owner preview"]
  node_guest_view["Guest invitation view"]
  node_rsvp["Guest RSVP"]
end

subgraph group_operations["Administration"]
  node_filament_catalog["Catalog admin"]
  node_filament_orders["Order admin<br/>[OrderResource.php]"]
  node_filament_templates["Template admin"]
  node_dashboard["Sales dashboard<br/>[OrdersOverview.php]"]
end

subgraph group_domain["Domain services"]
  node_orders[("Orders<br/>[Order.php]")]
  node_catalog[("Service catalog<br/>[Service.php]")]
  node_plans[("Service plans<br/>[ServicePlan.php]")]
  node_promo[("Promo codes<br/>[PromoCode.php]")]
  node_customers[("Customer accounts<br/>[Customer.php]")]
  node_moderator["Content moderation"]
end

node_customer(("Customer"))
node_admin(("Admin operator"))

node_customer -.->|"browses"| node_storefront
node_customer -.->|"views"| node_service_detail
node_service_detail -->|"loads service"| node_catalog
node_service_detail -->|"uses cart"| node_cart
node_cart -->|"loads services"| node_catalog
node_cart -->|"loads plans"| node_plans
node_cart -->|"validates promo"| node_promo
node_customer -.->|"checks out"| node_checkout
node_checkout -.->|"creates order"| node_orders
node_orders -->|"finds purchased template"| node_invitation_templates
node_orders -->|"provisions invitations"| node_invitation_records
node_customer -.->|"edits invitation"| node_manage_invitation
node_preview -->|"loads invitation"| node_invitation_records
node_preview -->|"renders view"| node_guest_view
node_rsvp -->|"loads invitation"| node_invitation_records
node_rsvp -->|"moderates response"| node_moderator
node_admin -.->|"manages catalog"| node_filament_catalog
node_admin -.->|"manages orders"| node_filament_orders
node_admin -.->|"manages invitations"| node_filament_templates
node_admin -.->|"reviews metrics"| node_dashboard

click node_storefront "https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/ShopPage.php"
click node_service_detail "https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/ServiceDetailPage.php"
click node_cart "https://github.com/sireyboth/roumdoul/blob/main/app/Services/CartService.php"
click node_checkout "https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/CheckoutPage.php"
click node_orders "https://github.com/sireyboth/roumdoul/blob/main/app/Models/Order.php"
click node_catalog "https://github.com/sireyboth/roumdoul/blob/main/app/Models/Service.php"
click node_plans "https://github.com/sireyboth/roumdoul/blob/main/app/Models/ServicePlan.php"
click node_promo "https://github.com/sireyboth/roumdoul/blob/main/app/Models/PromoCode.php"
click node_customers "https://github.com/sireyboth/roumdoul/blob/main/app/Models/Customer.php"
click node_invitation_templates "https://github.com/sireyboth/roumdoul/blob/main/app/Models/InvitationTemplate.php"
click node_invitation_records "https://github.com/sireyboth/roumdoul/blob/main/app/Models/Invitation.php"
click node_manage_invitation "https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/Dashboard/InvitationManagePage.php"
click node_preview "https://github.com/sireyboth/roumdoul/blob/main/app/Http/Controllers/InvitationPreviewController.php"
click node_guest_view "https://github.com/sireyboth/roumdoul/blob/main/app/Http/Controllers/InvitationShowController.php"
click node_rsvp "https://github.com/sireyboth/roumdoul/blob/main/app/Http/Controllers/InvitationRsvpController.php"
click node_moderator "https://github.com/sireyboth/roumdoul/blob/main/app/Services/ContentModerator.php"
click node_filament_catalog "https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Resources/Services/ServiceResource.php"
click node_filament_orders "https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Resources/Orders/OrderResource.php"
click node_filament_templates "https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Resources/InvitationTemplates/RelationManagers/InvitationsRelationManager.php"
click node_dashboard "https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Widgets/OrdersOverview.php"

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_storefront,node_service_detail,node_cart,node_checkout toneBlue
class node_invitation_templates,node_invitation_records,node_manage_invitation,node_preview,node_guest_view,node_rsvp toneAmber
class node_filament_catalog,node_filament_orders,node_filament_templates,node_dashboard toneMint
class node_orders,node_catalog,node_plans,node_promo,node_customers,node_moderator toneRose
class node_customer,node_admin toneIndigo
```

## Components

### Storefront commerce

- [Shop and pages](https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/ShopPage.php): `app/Livewire/Pages/ShopPage.php`
- [Service detail](https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/ServiceDetailPage.php): `app/Livewire/Pages/ServiceDetailPage.php`
- [Cart service](https://github.com/sireyboth/roumdoul/blob/main/app/Services/CartService.php): `app/Services/CartService.php`
- [Checkout](https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/CheckoutPage.php): `app/Livewire/Pages/CheckoutPage.php`

### Invitation lifecycle

- [Invitation templates](https://github.com/sireyboth/roumdoul/blob/main/app/Models/InvitationTemplate.php): `app/Models/InvitationTemplate.php`
- [Invitations](https://github.com/sireyboth/roumdoul/blob/main/app/Models/Invitation.php): `app/Models/Invitation.php`
- [Invitation management](https://github.com/sireyboth/roumdoul/blob/main/app/Livewire/Pages/Dashboard/InvitationManagePage.php): `app/Livewire/Pages/Dashboard/InvitationManagePage.php`
- [Owner preview](https://github.com/sireyboth/roumdoul/blob/main/app/Http/Controllers/InvitationPreviewController.php): `app/Http/Controllers/InvitationPreviewController.php`
- [Guest invitation view](https://github.com/sireyboth/roumdoul/blob/main/app/Http/Controllers/InvitationShowController.php): `app/Http/Controllers/InvitationShowController.php`
- [Guest RSVP](https://github.com/sireyboth/roumdoul/blob/main/app/Http/Controllers/InvitationRsvpController.php): `app/Http/Controllers/InvitationRsvpController.php`

### Administration

- [Catalog admin](https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Resources/Services/ServiceResource.php): `app/Filament/Resources/Services/ServiceResource.php`
- [Order admin](https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Resources/Orders/OrderResource.php): `app/Filament/Resources/Orders/OrderResource.php`
- [Template admin](https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Resources/InvitationTemplates/RelationManagers/InvitationsRelationManager.php): `app/Filament/Resources/InvitationTemplates/RelationManagers/InvitationsRelationManager.php`
- [Sales dashboard](https://github.com/sireyboth/roumdoul/blob/main/app/Filament/Widgets/OrdersOverview.php): `app/Filament/Widgets/OrdersOverview.php`

### Domain services

- [Orders](https://github.com/sireyboth/roumdoul/blob/main/app/Models/Order.php): `app/Models/Order.php`
- [Service catalog](https://github.com/sireyboth/roumdoul/blob/main/app/Models/Service.php): `app/Models/Service.php`
- [Service plans](https://github.com/sireyboth/roumdoul/blob/main/app/Models/ServicePlan.php): `app/Models/ServicePlan.php`
- [Promo codes](https://github.com/sireyboth/roumdoul/blob/main/app/Models/PromoCode.php): `app/Models/PromoCode.php`
- [Customer accounts](https://github.com/sireyboth/roumdoul/blob/main/app/Models/Customer.php): `app/Models/Customer.php`
- [Content moderation](https://github.com/sireyboth/roumdoul/blob/main/app/Services/ContentModerator.php): `app/Services/ContentModerator.php`

### Other components

- **Customer**
- **Admin operator**

## Connections

- Customer → Shop and pages: browses
- Customer → Service detail: views
- Service detail → Service catalog: loads service (evidence: `app/Livewire/Pages/ServiceDetailPage.php`)
- Service detail → Cart service: uses cart (evidence: `app/Livewire/Pages/ServiceDetailPage.php`)
- Cart service → Service catalog: loads services (evidence: `app/Services/CartService.php`)
- Cart service → Service plans: loads plans (evidence: `app/Services/CartService.php`)
- Cart service → Promo codes: validates promo (evidence: `app/Services/CartService.php`)
- Customer → Checkout: checks out
- Checkout → Orders: creates order
- Orders → Invitation templates: finds purchased template (evidence: `app/Models/Order.php`)
- Orders → Invitations: provisions invitations (evidence: `app/Models/Order.php`)
- Customer → Invitation management: edits invitation
- Owner preview → Invitations: loads invitation (evidence: `app/Http/Controllers/InvitationPreviewController.php`)
- Owner preview → Guest invitation view: renders view (evidence: `app/Http/Controllers/InvitationPreviewController.php`)
- Guest RSVP → Invitations: loads invitation (evidence: `app/Http/Controllers/InvitationRsvpController.php`)
- Guest RSVP → Content moderation: moderates response (evidence: `app/Http/Controllers/InvitationRsvpController.php`)
- Admin operator → Catalog admin: manages catalog
- Admin operator → Order admin: manages orders
- Admin operator → Template admin: manages invitations
- Admin operator → Sales dashboard: reviews metrics
