# mohdkhalid26/redparts architecture

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

- Interactive diagram: https://gitdiagram.com/mohdkhalid26/redparts
- Repository: https://github.com/mohdkhalid26/redparts

## Overview

This is a React storefront for AVESH CAR AC, with a home page showing product displays and a separate admin interface for managing product records and images. The visible runtime starts at the browser entry point, mounts the app, and renders the home page; the admin, login, and signup components are imported but not rendered by the current App. Product displays use local sample data. Admin data operations use Firebase Firestore and Storage. The graph reflects sampled source; authentication behavior and any live storefront catalog/cart flow are not evidenced.

Main entry points: [`src/modules/public/page/home/Home.jsx`](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/page/home/Home.jsx) (Home page), [`src/modules/private/admin/Admin.jsx`](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/private/admin/Admin.jsx) (Product manager), [`src/index.js`](https://github.com/mohdkhalid26/redparts/blob/master/src/index.js) (React entry), [`src/modules/public/component/main/Main.jsx`](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/main/Main.jsx) (Product area)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application runtime"]
  node_entry["React entry<br/>[index.js]"]
  node_app["App shell<br/>[App.jsx]"]
end

subgraph group_storefront["Storefront experience"]
  node_home["Home page<br/>[Home.jsx]"]
  node_navbar["Navigation bar<br/>[Navbar.jsx]"]
  node_header["Page header<br/>[Header.jsx]"]
  node_main["Product area<br/>[Main.jsx]"]
  node_slider["Product slider<br/>[ProductSlider.jsx]"]
  node_cart["Cart display<br/>[CartProducts.jsx]"]
  node_footer["About and contact<br/>[Footer.jsx]"]
end

subgraph group_admin["Product administration"]
  node_admin["Product manager<br/>[Admin.jsx]"]
  node_login["Login form<br/>[Login.jsx]"]
  node_signup["Signup form<br/>[Signup.jsx]"]
  node_firebase["Firebase setup<br/>[Firebase.js]"]
  node_firestore[("Firestore")]
  node_storage[("Firebase Storage")]
end

subgraph group_state["Shared state"]
  node_store["Redux store<br/>[Store.js]"]
  node_reducer["App reducer<br/>[Reducer.js]"]
end

node_browser(("Browser"))
node_maps["Google Maps"]

node_browser -->|"opens app"| node_entry
node_entry -->|"renders"| node_app
node_entry -->|"provides store"| node_store
node_store -->|"uses reducer"| node_reducer
node_app -->|"renders"| node_home
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_header
node_home -->|"renders"| node_main
node_home -->|"renders"| node_footer
node_main -->|"renders"| node_slider
node_main -->|"renders"| node_cart
node_admin -->|"uses config"| node_firebase
node_admin -->|"reads and writes"| node_firestore
node_admin -->|"uploads and deletes"| node_storage
node_firebase -->|"initializes"| node_firestore
node_firebase -->|"initializes"| node_storage
node_footer -->|"embeds map"| node_maps
node_navbar -.->|"dispatches"| node_store

click node_entry "https://github.com/mohdkhalid26/redparts/blob/master/src/index.js"
click node_app "https://github.com/mohdkhalid26/redparts/blob/master/src/App.jsx"
click node_home "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/page/home/Home.jsx"
click node_navbar "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/navbar/Navbar.jsx"
click node_header "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/header/Header.jsx"
click node_main "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/main/Main.jsx"
click node_slider "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/main/product-slider/ProductSlider.jsx"
click node_cart "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/main/cart-products/CartProducts.jsx"
click node_footer "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/footer/Footer.jsx"
click node_admin "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/private/admin/Admin.jsx"
click node_login "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/private/login/Login.jsx"
click node_signup "https://github.com/mohdkhalid26/redparts/blob/master/src/modules/private/signup/Signup.jsx"
click node_firebase "https://github.com/mohdkhalid26/redparts/blob/master/src/Firebase.js"
click node_store "https://github.com/mohdkhalid26/redparts/blob/master/src/Store.js"
click node_reducer "https://github.com/mohdkhalid26/redparts/blob/master/src/Reducer.js"

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_app,node_browser toneBlue
class node_home,node_navbar,node_header,node_main,node_slider,node_cart,node_footer toneAmber
class node_admin,node_login,node_signup,node_firebase,node_firestore,node_storage toneMint
class node_store,node_reducer toneRose
class node_maps toneIndigo
```

## Components

### Application runtime

- [React entry](https://github.com/mohdkhalid26/redparts/blob/master/src/index.js): `src/index.js`
- [App shell](https://github.com/mohdkhalid26/redparts/blob/master/src/App.jsx): `src/App.jsx`

### Storefront experience

- [Home page](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/page/home/Home.jsx): `src/modules/public/page/home/Home.jsx`
- [Navigation bar](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/navbar/Navbar.jsx): `src/modules/public/component/navbar/Navbar.jsx`
- [Page header](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/header/Header.jsx): `src/modules/public/component/header/Header.jsx`
- [Product area](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/main/Main.jsx): `src/modules/public/component/main/Main.jsx`
- [Product slider](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/main/product-slider/ProductSlider.jsx): `src/modules/public/component/main/product-slider/ProductSlider.jsx`
- [Cart display](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/main/cart-products/CartProducts.jsx): `src/modules/public/component/main/cart-products/CartProducts.jsx`
- [About and contact](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/public/component/footer/Footer.jsx): `src/modules/public/component/footer/Footer.jsx`

### Product administration

- [Product manager](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/private/admin/Admin.jsx): `src/modules/private/admin/Admin.jsx`
- [Login form](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/private/login/Login.jsx): `src/modules/private/login/Login.jsx`
- [Signup form](https://github.com/mohdkhalid26/redparts/blob/master/src/modules/private/signup/Signup.jsx): `src/modules/private/signup/Signup.jsx`
- [Firebase setup](https://github.com/mohdkhalid26/redparts/blob/master/src/Firebase.js): `src/Firebase.js`
- **Firestore**
- **Firebase Storage**

### Shared state

- [Redux store](https://github.com/mohdkhalid26/redparts/blob/master/src/Store.js): `src/Store.js`
- [App reducer](https://github.com/mohdkhalid26/redparts/blob/master/src/Reducer.js): `src/Reducer.js`

### Other components

- **Browser**
- **Google Maps**

## Connections

- Browser → React entry: opens app (evidence: `src/index.js`)
- React entry → App shell: renders (evidence: `src/index.js`)
- React entry → Redux store: provides store (evidence: `src/index.js`)
- Redux store → App reducer: uses reducer (evidence: `src/Store.js`)
- App shell → Home page: renders (evidence: `src/App.jsx`)
- Home page → Navigation bar: renders (evidence: `src/modules/public/page/home/Home.jsx`)
- Home page → Page header: renders (evidence: `src/modules/public/page/home/Home.jsx`)
- Home page → Product area: renders (evidence: `src/modules/public/page/home/Home.jsx`)
- Home page → About and contact: renders (evidence: `src/modules/public/page/home/Home.jsx`)
- Product area → Product slider: renders (evidence: `src/modules/public/component/main/Main.jsx`)
- Product area → Cart display: renders (evidence: `src/modules/public/component/main/Main.jsx`)
- Product manager → Firebase setup: uses config (evidence: `src/modules/private/admin/Admin.jsx`)
- Product manager → Firestore: reads and writes (evidence: `src/modules/private/admin/Admin.jsx`)
- Product manager → Firebase Storage: uploads and deletes (evidence: `src/modules/private/admin/Admin.jsx`)
- Firebase setup → Firestore: initializes (evidence: `src/Firebase.js`)
- Firebase setup → Firebase Storage: initializes (evidence: `src/Firebase.js`)
- About and contact → Google Maps: embeds map (evidence: `src/modules/public/component/footer/Footer.jsx`)
- Navigation bar → Redux store: dispatches
