# ibrahimallmamun/rangon architecture

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

- Interactive diagram: https://gitdiagram.com/ibrahimallmamun/rangon
- Repository: https://github.com/ibrahimallmamun/rangon

## Overview

Rangon Fashion is an omnichannel retail and e-commerce platform: a Next.js storefront, in-store POS, and admin interface use a shared Django REST backend and business data. The principal customer journey is browsing the catalog, adding items to a cart, checking out, and receiving a confirmed order; COD is the documented working payment method. The graph also preserves major operational capabilities documented in the README. Django domain links are limited to dependencies named in the source index; broader backend and infrastructure links follow the README’s architecture description.

Main entry points: [`apps/api/config/api_urls.py`](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/config/api_urls.py) (Django REST API), [`apps/web/src/app/(storefront)`](https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(storefront)) (Storefront), [`apps/web/src/app/(pos)`](https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(pos)) (Point of sale), [`apps/web/src/app/(admin)`](https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(admin)) (Admin panel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experiences"]
  node_storefront["Storefront"]
  node_pos["Point of sale"]
  node_admin["Admin panel"]
end

subgraph group_commerce["Customer commerce"]
  node_catalog["Product catalog"]
  node_cartcheckout["Cart and checkout<br/>[checkout.py]"]
  node_orders["Orders and returns"]
  node_payments["Payments<br/>[payments.py]"]
  node_customers["Customer accounts"]
end

subgraph group_operations["Retail operations"]
  node_inventory["Inventory ledger<br/>[services.py]"]
  node_purchasing["Purchasing<br/>[services.py]"]
  node_shipping["Shipping"]
  node_accounts["Staff and permissions"]
  node_finance["Finance<br/>[services.py]"]
  node_reports["Reports<br/>[services.py]"]
  node_content["Store content"]
  node_engagement["Reviews and wishlist"]
  node_notifications["Notifications"]
end

subgraph group_platform["Shared platform"]
  node_api["Django REST API<br/>[api_urls.py]"]
  node_database[("PostgreSQL")]
  node_redis[("Redis")]
  node_celery["Celery workers<br/>[celery.py]"]
end

node_shopper(("Shopper"))
node_staff(("Retail staff"))

node_shopper -->|"browses and buys"| node_storefront
node_staff -->|"records sales"| node_pos
node_staff -->|"manages retail"| node_admin
node_storefront -->|"requests commerce"| node_api
node_pos -->|"uses shared backend"| node_api
node_admin -->|"uses shared backend"| node_api
node_api -->|"serves catalog"| node_catalog
node_storefront -->|"starts checkout"| node_cartcheckout
node_cartcheckout -->|"creates order"| node_orders
node_orders -->|"handles payment"| node_payments
node_api -->|"serves accounts"| node_customers
node_api -->|"shares inventory"| node_inventory
node_api -->|"supports purchasing"| node_purchasing
node_api -->|"supports shipping"| node_shipping
node_api -->|"serves staff access"| node_accounts
node_api -->|"supports finance"| node_finance
node_api -->|"serves reports"| node_reports
node_api -->|"serves store content"| node_content
node_api -->|"supports engagement"| node_engagement
node_api -->|"supports notifications"| node_notifications
node_catalog -->|"queues revalidation"| node_content
node_api -->|"reads and writes"| node_database
node_api -->|"uses shared cache"| node_redis
node_api -->|"queues background work"| node_celery

click node_storefront "https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(storefront)"
click node_pos "https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(pos)"
click node_admin "https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(admin)"
click node_api "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/config/api_urls.py"
click node_catalog "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/catalog"
click node_cartcheckout "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/orders/services/checkout.py"
click node_orders "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/orders"
click node_payments "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/orders/services/payments.py"
click node_customers "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/customers"
click node_inventory "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/inventory/services.py"
click node_purchasing "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/purchasing/services.py"
click node_shipping "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/shipping"
click node_accounts "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/accounts"
click node_finance "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/finance/services.py"
click node_reports "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/reports/services.py"
click node_content "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/content"
click node_engagement "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/engagement"
click node_notifications "https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/notifications"
click node_celery "https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/config/celery.py"

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_pos,node_admin toneBlue
class node_catalog,node_cartcheckout,node_orders,node_payments,node_customers toneAmber
class node_inventory,node_purchasing,node_shipping,node_accounts,node_finance,node_reports,node_content,node_engagement,node_notifications toneMint
class node_api,node_database,node_redis,node_celery toneRose
class node_shopper,node_staff toneIndigo
```

## Components

### Web experiences

- [Storefront](https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(storefront)): `apps/web/src/app/(storefront)`
- [Point of sale](https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(pos)): `apps/web/src/app/(pos)`
- [Admin panel](https://github.com/ibrahimallmamun/rangon/tree/main/apps/web/src/app/(admin)): `apps/web/src/app/(admin)`

### Customer commerce

- [Product catalog](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/catalog): `apps/api/catalog`
- [Cart and checkout](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/orders/services/checkout.py): `apps/api/orders/services/checkout.py`
- [Orders and returns](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/orders): `apps/api/orders`
- [Payments](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/orders/services/payments.py): `apps/api/orders/services/payments.py`
- [Customer accounts](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/customers): `apps/api/customers`

### Retail operations

- [Inventory ledger](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/inventory/services.py): `apps/api/inventory/services.py`
- [Purchasing](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/purchasing/services.py): `apps/api/purchasing/services.py`
- [Shipping](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/shipping): `apps/api/shipping`
- [Staff and permissions](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/accounts): `apps/api/accounts`
- [Finance](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/finance/services.py): `apps/api/finance/services.py`
- [Reports](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/reports/services.py): `apps/api/reports/services.py`
- [Store content](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/content): `apps/api/content`
- [Reviews and wishlist](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/engagement): `apps/api/engagement`
- [Notifications](https://github.com/ibrahimallmamun/rangon/tree/main/apps/api/notifications): `apps/api/notifications`

### Shared platform

- [Django REST API](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/config/api_urls.py): `apps/api/config/api_urls.py`
- **PostgreSQL**
- **Redis**
- [Celery workers](https://github.com/ibrahimallmamun/rangon/blob/main/apps/api/config/celery.py): `apps/api/config/celery.py`

### Other components

- **Shopper**
- **Retail staff**

## Connections

- Shopper → Storefront: browses and buys (evidence: `README.md`)
- Retail staff → Point of sale: records sales (evidence: `README.md`)
- Retail staff → Admin panel: manages retail (evidence: `README.md`)
- Storefront → Django REST API: requests commerce (evidence: `README.md`)
- Point of sale → Django REST API: uses shared backend (evidence: `README.md`)
- Admin panel → Django REST API: uses shared backend (evidence: `README.md`)
- Django REST API → Product catalog: serves catalog (evidence: `README.md`)
- Storefront → Cart and checkout: starts checkout (evidence: `README.md`)
- Cart and checkout → Orders and returns: creates order (evidence: `README.md`)
- Orders and returns → Payments: handles payment (evidence: `README.md`)
- Django REST API → Customer accounts: serves accounts (evidence: `README.md`)
- Django REST API → Inventory ledger: shares inventory (evidence: `README.md`)
- Django REST API → Purchasing: supports purchasing (evidence: `README.md`)
- Django REST API → Shipping: supports shipping (evidence: `README.md`)
- Django REST API → Staff and permissions: serves staff access (evidence: `README.md`)
- Django REST API → Finance: supports finance (evidence: `README.md`)
- Django REST API → Reports: serves reports (evidence: `README.md`)
- Django REST API → Store content: serves store content (evidence: `README.md`)
- Django REST API → Reviews and wishlist: supports engagement (evidence: `README.md`)
- Django REST API → Notifications: supports notifications (evidence: `README.md`)
- Product catalog → Store content: queues revalidation (evidence: `apps/api/catalog/services.py`)
- Django REST API → PostgreSQL: reads and writes (evidence: `README.md`)
- Django REST API → Redis: uses shared cache (evidence: `README.md`)
- Django REST API → Celery workers: queues background work (evidence: `README.md`)
