# smarthsarin/creators-market architecture

> Architecture diagram of the GitHub repository smarthsarin/creators-market, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/smarthsarin/creators-market
- Repository: https://github.com/smarthsarin/creators-market

## Overview

##### Project Type and Purpose
- This is a full-stack Django eCommerce web application.
- Purpose: let customers browse products, manage carts, checkout with Razorpay payments, and view order history.
- Core modules (“apps”): accounts (user, cart, order), products (catalog, variants, reviews, wishlists), home (marketing pages), base (shared models & emails).

##### File Structure Analysis
- Top-level Django project folder:
- creatorsmarket/ (settings.py, URLs, ASGI/WGSI)
- manage.py
- requirements.txt
- Django apps by feature:
- accounts/ (authentication, cart, orders)
- products/ (product catalog, coupons, reviews, wishlists)
- home/ (landing pages: about, contact, search)
- base/ (shared models, email templates)
- Static & media assets: public/media (CSS, JS, fonts, images)
- Templates: organized by app under templates/
- Migrations: present in each app indicating relational database (e.g., PostgreSQL or SQLite)
- External services: Razorpay integration via signals/forms in accounts or checkout views.

##### README Insights
- Tech stack: Django, HTML/CSS/JS, Bootstrap, Razorpay API.
- Features: authentication, product browsing, cart, checkout, admin panel.
- Deployment hints: .env for SECRET_KEY, DEBUG; manage.py for runserver; admin interface.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Frontend
    Browser["Browser (Client)"]:::frontend
    StaticServer["Static/Media Server"]:::frontend

    %% Backend Entry
    ASGI["Django ASGI/WSGI"]:::backend

    %% Django Project Core
    subgraph "Django Project Core"
        Settings["settings.py"]:::backend
        URLs["urls.py"]:::backend
        ASGIFile["asgi.py"]:::backend
        WSGIFile["wsgi.py"]:::backend
        Manage["manage.py"]:::backend
        Req["requirements.txt"]:::backend
    end

    %% Django Backend Apps
    subgraph "Django Backend" 
        direction TB
        subgraph "accounts App" 
            direction TB
            AccModels["accounts/models.py"]:::backend
            AccViews["accounts/views.py"]:::backend
            AccForms["accounts/forms.py"]:::backend
            AccURLs["accounts/urls.py"]:::backend
            AccSignals["accounts/signals.py"]:::backend
            AccAdmin["accounts/admin.py"]:::backend
            AccMigs["accounts/migrations/"]:::backend
        end
        subgraph "products App"
            direction TB
            ProdModels["products/models.py"]:::backend
            ProdViews["products/views.py"]:::backend
            ProdForms["products/forms.py"]:::backend
            ProdURLs["products/urls.py"]:::backend
            ProdAdmin["products/admin.py"]:::backend
            ProdMigs["products/migrations/"]:::backend
        end
        subgraph "home App"
            direction TB
            HomeModels["home/models.py"]:::backend
            HomeViews["home/views.py"]:::backend
            HomeURLs["home/urls.py"]:::backend
            HomeAdmin["home/admin.py"]:::backend
            HomeMigs["home/migrations/"]:::backend
        end
        subgraph "base App"
            direction TB
            BaseModels["base/models.py"]:::backend
            BaseEmails["base/emails.py"]:::backend
        end
        AdminInt["Django Admin (/admin/)"]:::backend
    end

    %% Persistence
    DB["Relational Database"]:::storage

    %% External Services
    Razorpay["Razorpay API"]:::external
    EmailSrv["Email Service (SMTP/Third-party)"]:::external

    %% Relationships
    Browser -->|GET/POST| ASGI
    Browser -->|GET assets| StaticServer
    StaticServer --> Browser
    ASGI --> Settings
    ASGI --> URLs
    ASGI --> AccURLs
    ASGI --> ProdURLs
    ASGI --> HomeURLs
    ASGI --> BaseModels
    ASGI --> AccModels
    ASGI --> ProdModels
    ASGI --> HomeModels
    ASGI --> BaseEmails
    ASGI --> AccViews
    ASGI --> ProdViews
    ASGI --> HomeViews
    ASGI --> AccForms
    ASGI --> ProdForms
    ASGI --> Razorpay
    ASGI --> EmailSrv
    ASGI --> AdminInt
    ASGI --> DB
    AdminInt --> DB
    AccSignals --> EmailSrv
    AccSignals --> DB
    AccViews --> Razorpay
    ProdViews --> DB
    HomeViews --> DB
    BaseEmails --> EmailSrv
    AccModels --> DB
    ProdModels --> DB
    HomeModels --> DB
    BaseModels --> DB

    %% Click Events
    click Settings "https://github.com/smarthsarin/creators-market/blob/main/creatorsmarket/settings.py"
    click URLs "https://github.com/smarthsarin/creators-market/blob/main/creatorsmarket/urls.py"
    click ASGIFile "https://github.com/smarthsarin/creators-market/blob/main/creatorsmarket/asgi.py"
    click WSGIFile "https://github.com/smarthsarin/creators-market/blob/main/creatorsmarket/wsgi.py"
    click Manage "https://github.com/smarthsarin/creators-market/blob/main/manage.py"
    click Req "https://github.com/smarthsarin/creators-market/blob/main/requirements.txt"
    click AccModels "https://github.com/smarthsarin/creators-market/blob/main/accounts/models.py"
    click AccViews "https://github.com/smarthsarin/creators-market/blob/main/accounts/views.py"
    click AccForms "https://github.com/smarthsarin/creators-market/blob/main/accounts/forms.py"
    click AccURLs "https://github.com/smarthsarin/creators-market/blob/main/accounts/urls.py"
    click AccSignals "https://github.com/smarthsarin/creators-market/blob/main/accounts/signals.py"
    click AccAdmin "https://github.com/smarthsarin/creators-market/blob/main/accounts/admin.py"
    click AccMigs "https://github.com/smarthsarin/creators-market/tree/main/accounts/migrations/"
    click ProdModels "https://github.com/smarthsarin/creators-market/blob/main/products/models.py"
    click ProdViews "https://github.com/smarthsarin/creators-market/blob/main/products/views.py"
    click ProdForms "https://github.com/smarthsarin/creators-market/blob/main/products/forms.py"
    click ProdURLs "https://github.com/smarthsarin/creators-market/blob/main/products/urls.py"
    click ProdAdmin "https://github.com/smarthsarin/creators-market/blob/main/products/admin.py"
    click ProdMigs "https://github.com/smarthsarin/creators-market/tree/main/products/migrations/"
    click HomeModels "https://github.com/smarthsarin/creators-market/blob/main/home/models.py"
    click HomeViews "https://github.com/smarthsarin/creators-market/blob/main/home/views.py"
    click HomeURLs "https://github.com/smarthsarin/creators-market/blob/main/home/urls.py"
    click HomeAdmin "https://github.com/smarthsarin/creators-market/blob/main/home/admin.py"
    click HomeMigs "https://github.com/smarthsarin/creators-market/tree/main/home/migrations/"
    click BaseModels "https://github.com/smarthsarin/creators-market/blob/main/base/models.py"
    click BaseEmails "https://github.com/smarthsarin/creators-market/blob/main/base/emails.py"

    %% Styles
    classDef frontend fill:#BBDEFB,stroke:#0D47A1,stroke-width:1px
    classDef backend fill:#C8E6C9,stroke:#1B5E20,stroke-width:1px
    classDef external fill:#FFE0B2,stroke:#E65100,stroke-width:1px
    classDef storage fill:#CFD8DC,stroke:#37474F,stroke-width:1px
```
