# nihalyp/rincart architecture

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

- Interactive diagram: https://gitdiagram.com/nihalyp/rincart
- Repository: https://github.com/nihalyp/rincart

## Overview

RinCart is a Django e-commerce application. Shoppers browse and search products, manage carts and wishlists, and submit checkout details to create trackable or cancellable orders; users can also register, verify OTPs, and manage accounts. Sellers request approval and manage products, while admins oversee catalog and order records. The map separates these domain areas from Django routing and configured infrastructure. The views excerpt is partial, so some feature-to-model details and integrations are represented only where the README or shown configuration supports them.

Main entry points: [`rincartapp/urls.py`](https://github.com/nihalyp/rincart/blob/main/rincartapp/urls.py) (App routes), [`rincartapp/models.py`](https://github.com/nihalyp/rincart/blob/main/rincartapp/models.py) (Product catalog), [`rincart/urls.py`](https://github.com/nihalyp/rincart/blob/main/rincart/urls.py) (Project routes), [`rincartapp/views.py`](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py) (Account and OTP)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Product discovery"]
  node_catalog_views["Catalog views<br/>[views.py]"]
  node_product_data[("Product catalog<br/>[models.py]")]
  node_search["Product search<br/>[views.py]"]
end

subgraph group_commerce["Shopping and orders"]
  node_cart["Cart management<br/>[views.py]"]
  node_checkout["Checkout<br/>[views.py]"]
  node_orders[("Order records<br/>[models.py]")]
  node_wishlist["Wishlist<br/>[views.py]"]
end

subgraph group_identity["Accounts and support"]
  node_account_views["Account and OTP<br/>[views.py]"]
  node_social_adapter["Social login adapter<br/>[adapters.py]"]
  node_customer_support["Customer contact<br/>[views.py]"]
  node_allauth["Allauth routes"]
end

subgraph group_seller["Seller operations"]
  node_seller_views["Seller management<br/>[views.py]"]
  node_seller_data[("Seller profiles<br/>[models.py]")]
end

subgraph group_platform["Django platform"]
  node_app_router["App routes<br/>[urls.py]"]
  node_project_router["Project routes<br/>[urls.py]"]
  node_admin["Admin console<br/>[admin.py]"]
  node_database_service[("PostgreSQL database")]
  node_cloudinary["Cloudinary media"]
  node_brevo["Brevo email"]
end

node_shopper(("Shopper"))
node_seller_actor(("Seller"))

node_project_router -->|"includes routes"| node_app_router
node_project_router -->|"includes routes"| node_allauth
node_app_router -->|"routes requests"| node_catalog_views
node_app_router -->|"routes search"| node_search
node_app_router -->|"routes cart"| node_cart
node_app_router -->|"routes checkout"| node_checkout
node_app_router -->|"routes tracking"| node_orders
node_app_router -->|"routes wishlist"| node_wishlist
node_app_router -->|"routes account"| node_account_views
node_app_router -->|"routes contact"| node_customer_support
node_app_router -->|"routes seller"| node_seller_views
node_shopper -->|"browses and shops"| node_project_router
node_seller_actor -->|"manages products"| node_project_router
node_catalog_views -->|"queries products"| node_product_data
node_search -->|"searches products"| node_product_data
node_cart -->|"fetches products"| node_product_data
node_checkout -.->|"creates orders"| node_orders
node_wishlist -.->|"uses products"| node_product_data
node_account_views -.->|"supports social auth"| node_allauth
node_social_adapter -->|"customizes signup"| node_allauth
node_account_views -.->|"sends OTP email"| node_brevo
node_customer_support -->|"stores inquiries"| node_product_data
node_seller_views -->|"creates profiles"| node_seller_data
node_seller_views -.->|"manages products"| node_product_data
node_admin -->|"administers catalog"| node_product_data
node_admin -->|"administers orders"| node_orders
node_product_data -->|"persists records"| node_database_service
node_orders -->|"persists records"| node_database_service
node_seller_data -->|"persists records"| node_database_service
node_product_data -->|"stores product media"| node_cloudinary

click node_app_router "https://github.com/nihalyp/rincart/blob/main/rincartapp/urls.py"
click node_project_router "https://github.com/nihalyp/rincart/blob/main/rincart/urls.py"
click node_catalog_views "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_product_data "https://github.com/nihalyp/rincart/blob/main/rincartapp/models.py"
click node_search "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_cart "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_checkout "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_orders "https://github.com/nihalyp/rincart/blob/main/rincartapp/models.py"
click node_wishlist "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_account_views "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_social_adapter "https://github.com/nihalyp/rincart/blob/main/rincartapp/adapters.py"
click node_customer_support "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_seller_views "https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py"
click node_seller_data "https://github.com/nihalyp/rincart/blob/main/rincartapp/models.py"
click node_admin "https://github.com/nihalyp/rincart/blob/main/rincartapp/admin.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_catalog_views,node_product_data,node_search toneBlue
class node_cart,node_checkout,node_orders,node_wishlist toneAmber
class node_account_views,node_social_adapter,node_customer_support,node_allauth toneMint
class node_seller_views,node_seller_data toneRose
class node_app_router,node_project_router,node_admin,node_database_service,node_cloudinary,node_brevo,node_shopper,node_seller_actor toneIndigo
```

## Components

### Product discovery

- [Catalog views](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`
- [Product catalog](https://github.com/nihalyp/rincart/blob/main/rincartapp/models.py): `rincartapp/models.py`
- [Product search](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`

### Shopping and orders

- [Cart management](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`
- [Checkout](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`
- [Order records](https://github.com/nihalyp/rincart/blob/main/rincartapp/models.py): `rincartapp/models.py`
- [Wishlist](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`

### Accounts and support

- [Account and OTP](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`
- [Social login adapter](https://github.com/nihalyp/rincart/blob/main/rincartapp/adapters.py): `rincartapp/adapters.py`
- [Customer contact](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`
- **Allauth routes**

### Seller operations

- [Seller management](https://github.com/nihalyp/rincart/blob/main/rincartapp/views.py): `rincartapp/views.py`
- [Seller profiles](https://github.com/nihalyp/rincart/blob/main/rincartapp/models.py): `rincartapp/models.py`

### Django platform

- [App routes](https://github.com/nihalyp/rincart/blob/main/rincartapp/urls.py): `rincartapp/urls.py`
- [Project routes](https://github.com/nihalyp/rincart/blob/main/rincart/urls.py): `rincart/urls.py`
- [Admin console](https://github.com/nihalyp/rincart/blob/main/rincartapp/admin.py): `rincartapp/admin.py`
- **PostgreSQL database**
- **Cloudinary media**
- **Brevo email**

### Other components

- **Shopper**
- **Seller**

## Connections

- Project routes → App routes: includes routes (evidence: `rincart/urls.py`)
- Project routes → Allauth routes: includes routes (evidence: `rincart/urls.py`)
- App routes → Catalog views: routes requests (evidence: `rincartapp/urls.py`)
- App routes → Product search: routes search (evidence: `rincartapp/urls.py`)
- App routes → Cart management: routes cart (evidence: `rincartapp/urls.py`)
- App routes → Checkout: routes checkout (evidence: `rincartapp/urls.py`)
- App routes → Order records: routes tracking (evidence: `rincartapp/urls.py`)
- App routes → Wishlist: routes wishlist (evidence: `rincartapp/urls.py`)
- App routes → Account and OTP: routes account (evidence: `rincartapp/urls.py`)
- App routes → Customer contact: routes contact (evidence: `rincartapp/urls.py`)
- App routes → Seller management: routes seller (evidence: `rincartapp/urls.py`)
- Shopper → Project routes: browses and shops (evidence: `rincart/urls.py`)
- Seller → Project routes: manages products
- Catalog views → Product catalog: queries products (evidence: `rincartapp/views.py`)
- Product search → Product catalog: searches products (evidence: `rincartapp/views.py`)
- Cart management → Product catalog: fetches products (evidence: `rincartapp/views.py`)
- Checkout → Order records: creates orders (evidence: `rincartapp/views.py`)
- Wishlist → Product catalog: uses products (evidence: `rincartapp/views.py`)
- Account and OTP → Allauth routes: supports social auth (evidence: `README.md`)
- Social login adapter → Allauth routes: customizes signup
- Account and OTP → Brevo email: sends OTP email (evidence: `README.md`)
- Customer contact → Product catalog: stores inquiries (evidence: `rincartapp/views.py`)
- Seller management → Seller profiles: creates profiles (evidence: `rincartapp/views.py`)
- Seller management → Product catalog: manages products (evidence: `rincartapp/views.py`)
- Admin console → Product catalog: administers catalog (evidence: `rincartapp/admin.py`)
- Admin console → Order records: administers orders (evidence: `rincartapp/admin.py`)
- Product catalog → PostgreSQL database: persists records
- Order records → PostgreSQL database: persists records
- Seller profiles → PostgreSQL database: persists records
- Product catalog → Cloudinary media: stores product media
