# rakeshbabu23/zeptocafe-mobileapp-clone architecture

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

- Interactive diagram: https://gitdiagram.com/rakeshbabu23/zeptocafe-mobileapp-clone
- Repository: https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone

## Overview

##### Project type and purpose
- This is a React Native mobile application targeting both Android and iOS.
- It contains no backend/server code; it’s purely a front-end client (JavaScript/TypeScript + native wrappers) that likely consumes external REST/GraphQL APIs for data (food items, categories, location).

##### File structure
- Top-level “android” and “ios” directories: standard native projects created by the React Native CLI.
- Root JS entry points: index.js → App.tsx.
- “src” folder contains feature-organized code:
- components/ (atomic and feature-level UI pieces)
- navigators/ (React Navigation stacks/tabs)
- screens/ (screen-level containers by feature: home, cart, search, etc.)
- store/ (React Context for global state)
- utils/ (shared constants, helpers)
- Config files: babel.config.js, metro.config.js, tsconfig.json, jest.config.js.
- Assets: fonts and images under assets/ and Android/iOS resource trees.

##### README for additional insights
- Standard RN “Getting Started” instructions.

## Diagram (Mermaid)

```mermaid
graph TD
    %% Native Platform Layer
    subgraph "Native Platform Layer"
        direction TB
        Android["Android Runtime<br/>(Java/Kotlin)"]:::native
        iOS["iOS Runtime<br/>(Objective-C/Swift)"]:::native
    end

    %% Bridge & Bundler Layer
    subgraph "Bridge & Bundler"
        direction TB
        Metro["Metro Bundler<br/>(bundles JS)"]:::config
        Babel["Babel Transpilation"]:::config
        RNBridge["React Native Bridge"]:::bridge
    end

    %% JavaScript Application Layer
    subgraph "JavaScript Application Layer"
        direction TB
        Entry["index.js"]:::app
        AppRoot["App.tsx"]:::app
        Navigator["AppNavigator.jsx"]:::app
        subgraph "Screens"
            direction TB
            Home["Home.jsx"]:::app
            Cart["Cart.jsx"]:::app
            Search["Search.jsx"]:::app
            SearchResults["SearchResults.jsx"]:::app
            SearchItem["SearchItem.jsx"]:::app
            CategoryItems["Items.jsx"]:::app
            Location["Location.jsx"]:::app
            LocationDenied["LocationDenied.jsx"]:::app
            Splash["Splash.jsx"]:::app
        end
        subgraph "Components"
            direction TB
            BottomSheet["BottomSheet.jsx"]:::app
            TextInput["TextInput.jsx"]:::app
            SeeAllButton["SeeAllButton.jsx"]:::app
            ItemDescription["ItemDescription.jsx"]:::app
            ItemCount["ItemCount.jsx"]:::app
            FoodItemCard["FoodItemCard.jsx"]:::app
            FoodItem["FoodItem.jsx"]:::app
            CategoryItem["CategoryItem.jsx"]:::app
            Banner["Banner.jsx"]:::app
            HighLightCard["HighLightCard.jsx"]:::app
            Categories["Categories.jsx"]:::app
            BestSellers["BestSellers.jsx"]:::app
            BestSellersItem["BestSellersItem.jsx"]:::app
        end
        Store["userContext.js"]:::app
        Utils["Colors.js"]:::app
    end

    %% Assets Layer
    subgraph "Assets"
        direction TB
        Fonts["Fonts"]:::asset
        Images["Images"]:::asset
        IOSAssets["Images.xcassets"]:::asset
    end

    %% External Services
    subgraph "External Services"
        direction TB
        API["Remote API Server(s)"]:::external
        NativeServices["Device Services<br/>(geolocation, storage)"]:::external
    end

    %% Build and Run Flows
    Metro -->|"transpiles via"| Babel
    Metro -->|"bundles to"| Entry
    Entry -->|"renders"| AppRoot
    AppRoot -->|"loads navigator"| Navigator
    Navigator -->|"routes to"| Home
    Navigator -->|"routes to"| Cart
    Navigator -->|"routes to"| Search
    Search --> SearchResults
    SearchResults --> SearchItem
    Navigator -->|"routes to"| CategoryItems
    Navigator -->|"routes to"| Location
    Navigator --> LocationDenied
    Navigator --> Splash

    %% Component & Data Flow
    Home -->|"uses"| BottomSheet
    Home -->|"uses"| Banner
    Home -->|"uses"| HighLightCard
    Home -->|"uses"| Categories
    Categories --> BestSellers
    BestSellers --> BestSellersItem
    Cart -->|"uses"| ItemDescription
    Cart --> ItemCount
    Search --> FoodItem
    CategoryItems --> FoodItemCard
    CategoryItems --> CategoryItem

    %% State & Utils
    Home -->|"reads/writes"| Store
    Cart --> Store
    Search --> Store
    CategoryItems --> Store
    Location --> Store
    AllScreens--> Utils

    %% Bridge Communication
    Entry <-->|"JS calls native modules"| RNBridge
    RNBridge --> Android
    RNBridge --> iOS

    %% External interactions
    Home -->|"fetches data from"| API
    Cart --> API
    Search --> API
    CategoryItems --> API
    Location --> NativeServices

    %% Assets packaging
    Fonts --> Android
    Fonts --> iOS
    Images --> Android
    Images --> iOS
    IOSAssets --> iOS

    %% Click events
    click Android "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/tree/main/android/app/src/main/java/com/zeptocafe"
    click iOS "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/tree/main/ios/zeptocafe"
    click Metro "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/metro.config.js"
    click Babel "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/babel.config.js"
    click Entry "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/index.js"
    click AppRoot "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/App.tsx"
    click Navigator "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/navigators/AppNavigator.jsx"
    click Home "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/home/Home.jsx"
    click Cart "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/cart/Cart.jsx"
    click Search "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/search/Search.jsx"
    click SearchResults "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/search/SearchResults.jsx"
    click SearchItem "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/search/SearchItem.jsx"
    click CategoryItems "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/categoryItems/Items.jsx"
    click Location "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/location/Location.jsx"
    click LocationDenied "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/location/LocationDenied.jsx"
    click Splash "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/screens/splash/Splash.jsx"
    click BottomSheet "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/general/BottomSheet.jsx"
    click TextInput "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/general/TextInput.jsx"
    click SeeAllButton "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/general/SeeAllButton.jsx"
    click ItemDescription "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/general/ItemDescription.jsx"
    click ItemCount "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/general/ItemCount.jsx"
    click FoodItemCard "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/bottomsheet/FoodItemCard.jsx"
    click FoodItem "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/foods/FoodItem.jsx"
    click CategoryItem "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/foods/CategoryItem.jsx"
    click Banner "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/home/Banner.jsx"
    click HighLightCard "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/home/HighLightCard.jsx"
    click Categories "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/home/Categories.jsx"
    click BestSellers "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/home/bestsellers/BestSellers.jsx"
    click BestSellersItem "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/components/home/bestsellers/BestSellersItem.jsx"
    click Store "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/store/userContext.js"
    click Utils "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/src/utils/Colors.js"
    click Fonts "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/tree/main/assets/fonts"
    click Images "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/tree/main/assets/images"
    click IOSAssets "https://github.com/rakeshbabu23/zeptocafe-mobileapp-clone/blob/main/ios/zeptocafe/Images.xcassets"

    %% Styles
    classDef native fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef bridge fill:#87CEEB,stroke:#333,stroke-width:1px
    classDef config fill:#D8BFD8,stroke:#333,stroke-width:1px
    classDef app fill:#98FB98,stroke:#333,stroke-width:1px
    classDef asset fill:#FFE4B5,stroke:#333,stroke-width:1px
    classDef external fill:#FFA500,stroke:#333,stroke-width:1px
```
