# surendharramaraj/meatclone architecture

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

- Interactive diagram: https://gitdiagram.com/surendharramaraj/meatclone
- Repository: https://github.com/surendharramaraj/meatclone

## Overview

This is an Expo/React Native shopping app. The principal flow is location selection, nearby-shop browsing, product selection and cart management, then delivery-address selection and order placement. Location, address, and shop context live in React context; cart state is managed by Redux. The tree also includes login, order tracking, and drawer screens, but their internal behavior and wiring are mostly unsampled. Edges reflect shown calls, imports, or documented screen registration; unsampled subsystems are not connected speculatively.

Main entry points: [`App.js`](https://github.com/surendharramaraj/meatclone/blob/main/App.js) (App and routing), [`Home/Home.js`](https://github.com/surendharramaraj/meatclone/blob/main/Home/Home.js) (Shop discovery screen), [`GlobalContext/ContextProvider.js`](https://github.com/surendharramaraj/meatclone/blob/main/GlobalContext/ContextProvider.js) (Session and location context), [`Home/SummaryClone.js`](https://github.com/surendharramaraj/meatclone/blob/main/Home/SummaryClone.js) (Cart and checkout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App navigation"]
  node_app_entry["App and routing<br/>[App.js]"]
  node_context["Session and location context<br/>[ContextProvider.js]"]
end

subgraph group_discovery["Location and shops"]
  node_location["Location picker<br/>[SplashMap.js]"]
  node_home["Shop discovery screen<br/>[Home.js]"]
  node_categories["Shop categories<br/>[Category.js]"]
  node_shop_list["Shop listing<br/>[Shop.js]"]
  node_shop_detail["Shop details<br/>[ShopDetail.js]"]
end

subgraph group_cart["Cart and checkout"]
  node_shop_item["Product selection<br/>[ShopItem.js]"]
  node_cart_reducer["Cart state<br/>[cartReducers.js]"]
  node_redux_store["Redux store<br/>[store.js]"]
  node_root_reducer["Root reducer<br/>[index.js]"]
  node_checkout["Cart and checkout<br/>[SummaryClone.js]"]
  node_legacy_checkout["Alternate order summary<br/>[Summary.js]"]
  node_address_form["Delivery address form"]
  node_saved_addresses["Address selection<br/>[Address.js]"]
  node_specific_address["Specific address view<br/>[SpecificAddress.js]"]
  node_empty_cart["Empty cart view<br/>[EmptyCart.js]"]
end

subgraph group_account["Account and orders"]
  node_login["Login<br/>[Login.js]"]
  node_track_order["Order tracking<br/>[TrackOrder.js]"]
  node_drawer["Custom drawer<br/>[CustomDrawer.js]"]
  node_profile["Profile screen<br/>[ProfileScreen.js]"]
  node_history["Order history<br/>[OrderHistory.js]"]
  node_drawer_tracking["Drawer tracking view<br/>[TrackOrder.js]"]
  node_help["Help center<br/>[HelpCenter.js]"]
end

node_customer(("Customer"))
node_shops_api(("Shop service"))
node_maps_service(("Maps service"))
node_location_service(("Device location"))
node_order_service(("Order and address service"))

node_customer -->|"opens"| node_app_entry
node_app_entry -->|"provides context"| node_context
node_app_entry -->|"routes unauthenticated"| node_login
node_app_entry -->|"routes authenticated"| node_location
node_app_entry -->|"routes"| node_home
node_app_entry -->|"routes"| node_shop_detail
node_app_entry -->|"routes"| node_checkout
node_app_entry -->|"routes"| node_address_form
node_app_entry -->|"routes"| node_saved_addresses
node_app_entry -->|"routes"| node_track_order
node_app_entry -->|"routes"| node_empty_cart
node_app_entry -->|"provides store"| node_redux_store
node_location -->|"requests coordinates"| node_location_service
node_location -->|"fetches address details"| node_maps_service
node_location -->|"updates location"| node_context
node_home -->|"renders"| node_categories
node_home -->|"renders"| node_shop_list
node_home -->|"reads location"| node_context
node_home -->|"fetches nearby shops"| node_shops_api
node_shop_detail -->|"renders"| node_shop_item
node_shop_item -->|"dispatches cart actions"| node_cart_reducer
node_shop_item -->|"sets shop details"| node_context
node_redux_store -->|"configures"| node_root_reducer
node_root_reducer -->|"delegates"| node_cart_reducer
node_checkout -->|"dispatches cart actions"| node_cart_reducer
node_checkout -->|"posts order"| node_order_service
node_checkout -->|"reads delivery details"| node_context
node_checkout -->|"navigates after order"| node_home
node_legacy_checkout -->|"dispatches cart actions"| node_cart_reducer
node_legacy_checkout -->|"posts order"| node_order_service
node_legacy_checkout -->|"navigates after order"| node_home
node_address_form -->|"saves address"| node_order_service
node_address_form -->|"reads and updates address"| node_context

click node_app_entry "https://github.com/surendharramaraj/meatclone/blob/main/App.js"
click node_context "https://github.com/surendharramaraj/meatclone/blob/main/GlobalContext/ContextProvider.js"
click node_location "https://github.com/surendharramaraj/meatclone/blob/main/Home/SplashMap.js"
click node_home "https://github.com/surendharramaraj/meatclone/blob/main/Home/Home.js"
click node_categories "https://github.com/surendharramaraj/meatclone/blob/main/Home/Category.js"
click node_shop_list "https://github.com/surendharramaraj/meatclone/blob/main/Home/Shop.js"
click node_shop_detail "https://github.com/surendharramaraj/meatclone/blob/main/Home/ShopDetail.js"
click node_shop_item "https://github.com/surendharramaraj/meatclone/blob/main/Home/ShopItem.js"
click node_cart_reducer "https://github.com/surendharramaraj/meatclone/blob/main/redux/reducers/cartReducers.js"
click node_redux_store "https://github.com/surendharramaraj/meatclone/blob/main/redux/store.js"
click node_root_reducer "https://github.com/surendharramaraj/meatclone/blob/main/redux/reducers/index.js"
click node_checkout "https://github.com/surendharramaraj/meatclone/blob/main/Home/SummaryClone.js"
click node_legacy_checkout "https://github.com/surendharramaraj/meatclone/blob/main/Home/Summary.js"
click node_address_form "https://github.com/surendharramaraj/meatclone/blob/main/Home/DeliverActionSheet.js"
click node_saved_addresses "https://github.com/surendharramaraj/meatclone/blob/main/Home/Address.js"
click node_specific_address "https://github.com/surendharramaraj/meatclone/blob/main/Home/SpecificAddress.js"
click node_login "https://github.com/surendharramaraj/meatclone/blob/main/Home/Login.js"
click node_track_order "https://github.com/surendharramaraj/meatclone/blob/main/Home/TrackOrder.js"
click node_empty_cart "https://github.com/surendharramaraj/meatclone/blob/main/Home/EmptyCart.js"
click node_drawer "https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/CustomDrawer.js"
click node_profile "https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/ProfileScreen.js"
click node_history "https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/OrderHistory.js"
click node_drawer_tracking "https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/TrackOrder.js"
click node_help "https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/HelpCenter.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_app_entry,node_context toneBlue
class node_location,node_home,node_categories,node_shop_list,node_shop_detail toneAmber
class node_shop_item,node_cart_reducer,node_redux_store,node_root_reducer,node_checkout,node_legacy_checkout,node_address_form,node_saved_addresses,node_specific_address,node_empty_cart toneMint
class node_login,node_track_order,node_drawer,node_profile,node_history,node_drawer_tracking,node_help toneRose
class node_customer,node_shops_api,node_maps_service,node_location_service,node_order_service toneIndigo
```

## Components

### App navigation

- [App and routing](https://github.com/surendharramaraj/meatclone/blob/main/App.js): `App.js`
- [Session and location context](https://github.com/surendharramaraj/meatclone/blob/main/GlobalContext/ContextProvider.js): `GlobalContext/ContextProvider.js`

### Location and shops

- [Location picker](https://github.com/surendharramaraj/meatclone/blob/main/Home/SplashMap.js): `Home/SplashMap.js`
- [Shop discovery screen](https://github.com/surendharramaraj/meatclone/blob/main/Home/Home.js): `Home/Home.js`
- [Shop categories](https://github.com/surendharramaraj/meatclone/blob/main/Home/Category.js): `Home/Category.js`
- [Shop listing](https://github.com/surendharramaraj/meatclone/blob/main/Home/Shop.js): `Home/Shop.js`
- [Shop details](https://github.com/surendharramaraj/meatclone/blob/main/Home/ShopDetail.js): `Home/ShopDetail.js`

### Cart and checkout

- [Product selection](https://github.com/surendharramaraj/meatclone/blob/main/Home/ShopItem.js): `Home/ShopItem.js`
- [Cart state](https://github.com/surendharramaraj/meatclone/blob/main/redux/reducers/cartReducers.js): `redux/reducers/cartReducers.js`
- [Redux store](https://github.com/surendharramaraj/meatclone/blob/main/redux/store.js): `redux/store.js`
- [Root reducer](https://github.com/surendharramaraj/meatclone/blob/main/redux/reducers/index.js): `redux/reducers/index.js`
- [Cart and checkout](https://github.com/surendharramaraj/meatclone/blob/main/Home/SummaryClone.js): `Home/SummaryClone.js`
- [Alternate order summary](https://github.com/surendharramaraj/meatclone/blob/main/Home/Summary.js): `Home/Summary.js`
- [Delivery address form](https://github.com/surendharramaraj/meatclone/blob/main/Home/DeliverActionSheet.js): `Home/DeliverActionSheet.js`
- [Address selection](https://github.com/surendharramaraj/meatclone/blob/main/Home/Address.js): `Home/Address.js`
- [Specific address view](https://github.com/surendharramaraj/meatclone/blob/main/Home/SpecificAddress.js): `Home/SpecificAddress.js`
- [Empty cart view](https://github.com/surendharramaraj/meatclone/blob/main/Home/EmptyCart.js): `Home/EmptyCart.js`

### Account and orders

- [Login](https://github.com/surendharramaraj/meatclone/blob/main/Home/Login.js): `Home/Login.js`
- [Order tracking](https://github.com/surendharramaraj/meatclone/blob/main/Home/TrackOrder.js): `Home/TrackOrder.js`
- [Custom drawer](https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/CustomDrawer.js): `DrawerComponents/CustomDrawer.js`
- [Profile screen](https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/ProfileScreen.js): `DrawerComponents/ProfileScreen.js`
- [Order history](https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/OrderHistory.js): `DrawerComponents/OrderHistory.js`
- [Drawer tracking view](https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/TrackOrder.js): `DrawerComponents/TrackOrder.js`
- [Help center](https://github.com/surendharramaraj/meatclone/blob/main/DrawerComponents/HelpCenter.js): `DrawerComponents/HelpCenter.js`

### Other components

- **Customer**
- **Shop service**
- **Maps service**
- **Device location**
- **Order and address service**

## Connections

- Customer → App and routing: opens (evidence: `App.js`)
- App and routing → Session and location context: provides context (evidence: `App.js`)
- App and routing → Login: routes unauthenticated (evidence: `App.js`)
- App and routing → Location picker: routes authenticated (evidence: `App.js`)
- App and routing → Shop discovery screen: routes (evidence: `App.js`)
- App and routing → Shop details: routes (evidence: `App.js`)
- App and routing → Cart and checkout: routes (evidence: `App.js`)
- App and routing → Delivery address form: routes (evidence: `App.js`)
- App and routing → Address selection: routes (evidence: `App.js`)
- App and routing → Order tracking: routes (evidence: `App.js`)
- App and routing → Empty cart view: routes (evidence: `App.js`)
- App and routing → Redux store: provides store (evidence: `App.js`)
- Location picker → Device location: requests coordinates (evidence: `Home/SplashMap.js`)
- Location picker → Maps service: fetches address details (evidence: `Home/SplashMap.js`)
- Location picker → Session and location context: updates location (evidence: `Home/SplashMap.js`)
- Shop discovery screen → Shop categories: renders (evidence: `Home/Home.js`)
- Shop discovery screen → Shop listing: renders (evidence: `Home/Home.js`)
- Shop discovery screen → Session and location context: reads location (evidence: `Home/Home.js`)
- Shop discovery screen → Shop service: fetches nearby shops (evidence: `Home/Home.js`)
- Shop details → Product selection: renders (evidence: `Home/ShopDetail.js`)
- Product selection → Cart state: dispatches cart actions (evidence: `Home/ShopItem.js`)
- Product selection → Session and location context: sets shop details (evidence: `Home/ShopItem.js`)
- Redux store → Root reducer: configures (evidence: `redux/store.js`)
- Root reducer → Cart state: delegates (evidence: `redux/reducers/index.js`)
- Cart and checkout → Cart state: dispatches cart actions (evidence: `Home/SummaryClone.js`)
- Cart and checkout → Order and address service: posts order (evidence: `Home/SummaryClone.js`)
- Cart and checkout → Session and location context: reads delivery details (evidence: `Home/SummaryClone.js`)
- Cart and checkout → Shop discovery screen: navigates after order (evidence: `Home/SummaryClone.js`)
- Alternate order summary → Cart state: dispatches cart actions (evidence: `Home/Summary.js`)
- Alternate order summary → Order and address service: posts order (evidence: `Home/Summary.js`)
- Alternate order summary → Shop discovery screen: navigates after order (evidence: `Home/Summary.js`)
- Delivery address form → Order and address service: saves address (evidence: `Home/DeliverActionSheet.js`)
- Delivery address form → Session and location context: reads and updates address (evidence: `Home/DeliverActionSheet.js`)
