# bishalis-dev/fullstack-ecommerce architecture

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

- Interactive diagram: https://gitdiagram.com/bishalis-dev/fullstack-ecommerce
- Repository: https://github.com/bishalis-dev/fullstack-ecommerce

## Overview

This is a small React storefront frontend for Nirey Store. A browser loads the app, whose router renders the homepage or About page; the homepage sets its document title and displays the navigation, including static cart-menu items. Brand configuration and its type are present, but the homepage’s imports of them do not establish a runtime feature. The excerpts show no product catalog, checkout, or backend integration, so those capabilities are not represented.

Main entry points: [`frontend/src/main.tsx`](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/main.tsx) (React entry), [`frontend/src/Homepage.tsx`](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/Homepage.tsx) (Homepage), [`frontend/src/About.tsx`](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/About.tsx) (About page), [`frontend/src/useTitleHook.ts`](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/useTitleHook.ts) (Document title hook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App routing"]
  node_entry["React entry<br/>[main.tsx]"]
end

subgraph group_storefront["Storefront UI"]
  node_home["Homepage<br/>[Homepage.tsx]"]
  node_about["About page<br/>[About.tsx]"]
  node_navbar["Navigation and cart menu<br/>[Navbar1.tsx]"]
  node_title["Document title hook<br/>[useTitleHook.ts]"]
end

subgraph group_branding["Brand configuration"]
  node_siteconfig["Site configuration<br/>[siteconfig.ts]"]
  node_brandtype["Brand metadata type<br/>[IBrands.ts]"]
end

node_browser(("Browser visitor"))

node_browser -->|"opens app"| node_entry
node_entry -->|"routes /"| node_home
node_entry -->|"routes /about"| node_about
node_home -->|"renders"| node_navbar
node_home -->|"sets title"| node_title
node_about -->|"sets title"| node_title
node_siteconfig -->|"uses type"| node_brandtype

click node_entry "https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/main.tsx"
click node_home "https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/Homepage.tsx"
click node_about "https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/About.tsx"
click node_navbar "https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/Components/Navbar1.tsx"
click node_title "https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/useTitleHook.ts"
click node_siteconfig "https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/siteconfig.ts"
click node_brandtype "https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/Interfaces/IBrands.ts"

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_entry,node_browser toneBlue
class node_home,node_about,node_navbar,node_title toneAmber
class node_siteconfig,node_brandtype toneMint
```

## Components

### App routing

- [React entry](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/main.tsx): `frontend/src/main.tsx`

### Storefront UI

- [Homepage](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/Homepage.tsx): `frontend/src/Homepage.tsx`
- [About page](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/About.tsx): `frontend/src/About.tsx`
- [Navigation and cart menu](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/Components/Navbar1.tsx): `frontend/src/Components/Navbar1.tsx`
- [Document title hook](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/useTitleHook.ts): `frontend/src/useTitleHook.ts`

### Brand configuration

- [Site configuration](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/siteconfig.ts): `frontend/src/siteconfig.ts`
- [Brand metadata type](https://github.com/bishalis-dev/fullstack-ecommerce/blob/main/frontend/src/Interfaces/IBrands.ts): `frontend/src/Interfaces/IBrands.ts`

### Other components

- **Browser visitor**

## Connections

- Browser visitor → React entry: opens app (evidence: `frontend/src/main.tsx`)
- React entry → Homepage: routes / (evidence: `frontend/src/main.tsx`)
- React entry → About page: routes /about (evidence: `frontend/src/main.tsx`)
- Homepage → Navigation and cart menu: renders (evidence: `frontend/src/Homepage.tsx`)
- Homepage → Document title hook: sets title (evidence: `frontend/src/Homepage.tsx`)
- About page → Document title hook: sets title (evidence: `frontend/src/About.tsx`)
- Site configuration → Brand metadata type: uses type (evidence: `frontend/src/siteconfig.ts`)
