# hardikpurswani-alt/soleshift architecture

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

- Interactive diagram: https://gitdiagram.com/hardikpurswani-alt/soleshift
- Repository: https://github.com/hardikpurswani-alt/soleshift

## Overview

SOLESHIFT is a sneaker-commerce and streetwear discovery platform. The main customer journey is browsing and filtering the catalog, managing a cart and wishlist, then providing an address and completing server-verified checkout with Razorpay. The README also documents Firebase-backed authentication and an admin workflow for inventory and shipment management. The supplied tree and source excerpts contain no application code, so feature nodes use README-documented paths and unverified frontend-to-backend links are dashed.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_storefront["Storefront pages"]
  node_catalog["Catalog and filters"]
end

subgraph group_identity["Identity"]
  node_auth["Authentication"]
  node_firebase["Firebase Auth"]
end

subgraph group_commerce["Commerce"]
  node_cart["Cart and wishlist"]
  node_addresses["Address profiles"]
  node_checkout["Checkout"]
  node_orders["Order logic"]
  node_payments["Payment logic"]
  node_database[("Application database")]
end

subgraph group_operations["Operations"]
  node_admin_ui["Admin dashboard"]
  node_inventory["Inventory routes"]
  node_shipments["Shipment tracking"]
end

node_shopper(("Shopper"))
node_admin(("Admin"))
node_razorpay["Razorpay"]

node_shopper -->|"browses"| node_storefront
node_storefront -.->|"requests catalog"| node_catalog
node_shopper -->|"authenticates"| node_auth
node_auth -->|"verifies tokens"| node_firebase
node_storefront -.->|"manages cart"| node_cart
node_storefront -.->|"manages addresses"| node_addresses
node_shopper -->|"starts checkout"| node_checkout
node_checkout -.->|"requests order"| node_orders
node_orders -.->|"initiates payment"| node_payments
node_payments -->|"uses gateway"| node_razorpay
node_orders -.->|"persists orders"| node_database
node_cart -.->|"persists cart"| node_database
node_admin -->|"manages store"| node_admin_ui
node_admin_ui -.->|"updates stock"| node_inventory
node_admin_ui -.->|"tracks shipments"| node_shipments
node_inventory -.->|"stores inventory"| node_database

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_catalog toneBlue
class node_auth,node_firebase toneAmber
class node_cart,node_addresses,node_checkout,node_orders,node_payments,node_database toneMint
class node_admin_ui,node_inventory,node_shipments toneRose
class node_shopper,node_admin,node_razorpay toneIndigo
```

## Components

### Storefront

- **Storefront pages**
- **Catalog and filters**

### Identity

- **Authentication**
- **Firebase Auth**

### Commerce

- **Cart and wishlist**
- **Address profiles**
- **Checkout**
- **Order logic**
- **Payment logic**
- **Application database**

### Operations

- **Admin dashboard**
- **Inventory routes**
- **Shipment tracking**

### Other components

- **Shopper**
- **Admin**
- **Razorpay**

## Connections

- Shopper → Storefront pages: browses (evidence: `README.md`)
- Storefront pages → Catalog and filters: requests catalog
- Shopper → Authentication: authenticates (evidence: `README.md`)
- Authentication → Firebase Auth: verifies tokens (evidence: `README.md`)
- Storefront pages → Cart and wishlist: manages cart
- Storefront pages → Address profiles: manages addresses
- Shopper → Checkout: starts checkout (evidence: `README.md`)
- Checkout → Order logic: requests order
- Order logic → Payment logic: initiates payment
- Payment logic → Razorpay: uses gateway (evidence: `README.md`)
- Order logic → Application database: persists orders
- Cart and wishlist → Application database: persists cart
- Admin → Admin dashboard: manages store (evidence: `README.md`)
- Admin dashboard → Inventory routes: updates stock
- Admin dashboard → Shipment tracking: tracks shipments
- Inventory routes → Application database: stores inventory
