# shubhs83/inventory-management-with-recipe-recommnedation architecture

> Architecture diagram of the GitHub repository shubhs83/inventory-management-with-recipe-recommnedation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shubhs83/inventory-management-with-recipe-recommnedation
- Repository: https://github.com/shubhs83/inventory-management-with-recipe-recommnedation

## Overview

MomHelp is a vegetable-inventory and recipe-discovery application. Users manage vegetables, then choose an available vegetable to browse matching dishes and a recipe. The frontend routes requests through service modules to a Spring backend; backend controllers delegate to services and repositories over persisted vegetable, dish, and recipe data. The shown Choose Me controller explicitly orchestrates its three discovery stages. Frontend-to-backend HTTP links are dashed because the sampled excerpts do not show that runtime connection. Several backend and frontend subsystems are represented from the source index, not inspected source.

Main entry points: [`momhelp-frontend/momhelp-frontend/src/services/api.js`](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/api.js) (HTTP client), [`momhelp-frontend/momhelp-frontend/src/App.js`](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/App.js) (App routes), [`momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java`](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java) (Choose Me endpoints), [`momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js`](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js) (Vegetable screens)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend"]
  node_app["App routes<br/>[App.js]"]
  node_vegetable_ui["Vegetable screens<br/>[VegetableList.js]"]
  node_vegetable_form["Vegetable form<br/>[VegetableForm.js]"]
  node_vegetable_table["Vegetable table<br/>[VegetableTable.js]"]
  node_choose_ui["Choose Me flow<br/>[ChooseMeMain.js]"]
  node_vegetable_choices["Available choices"]
  node_dish_choices["Dish results<br/>[VegetableDishes.js]"]
  node_recipe_details["Recipe details<br/>[RecipeDetails.js]"]
  node_dashboard["Dashboard<br/>[Dashboard.js]"]
  node_navbar["Navigation<br/>[Navbar.js]"]
  node_api["HTTP client<br/>[api.js]"]
  node_vegetable_service_ui["Vegetable API"]
  node_dish_service_ui["Dish API<br/>[dishService.js]"]
  node_recipe_service_ui["Recipe API<br/>[recipeService.js]"]
end

subgraph group_inventory["Inventory"]
  node_vegetable_controller["Vegetable endpoints"]
end

subgraph group_discovery["Recipe discovery"]
  node_choose_controller["Choose Me endpoints"]
  node_dish_controller["Dish endpoints"]
  node_recipe_controller["Recipe endpoints"]
end

subgraph group_backend["Backend services"]
  node_vegetable_service["Vegetable operations"]
  node_dish_service["Dish operations"]
  node_recipe_service["Recipe operations"]
  node_transfer_dtos["API data models"]
end

subgraph group_persistence["Domain and persistence"]
  node_vegetable_repo[("Vegetable repository")]
  node_dish_repo[("Dish repository")]
  node_recipe_repo[("Recipe repository")]
  node_ingredient_repo[("Ingredient repository")]
  node_domain_entities["Domain entities"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_vegetable_ui
node_app -->|"routes to"| node_choose_ui
node_vegetable_ui -->|"renders"| node_vegetable_form
node_vegetable_ui -->|"renders"| node_vegetable_table
node_choose_ui -->|"renders"| node_vegetable_choices
node_choose_ui -->|"renders"| node_dish_choices
node_choose_ui -->|"renders"| node_recipe_details
node_recipe_details -->|"requests recipe"| node_recipe_service_ui
node_vegetable_ui -->|"requests data"| node_vegetable_service_ui
node_vegetable_service_ui -->|"calls"| node_api
node_dish_service_ui -->|"calls"| node_api
node_recipe_service_ui -->|"calls"| node_api
node_api -.->|"HTTP requests"| node_vegetable_controller
node_api -.->|"HTTP requests"| node_choose_controller
node_api -.->|"HTTP requests"| node_dish_controller
node_api -.->|"HTTP requests"| node_recipe_controller
node_choose_controller -->|"gets vegetables"| node_vegetable_service
node_choose_controller -->|"gets dishes"| node_dish_service
node_choose_controller -->|"gets recipe"| node_recipe_service
node_vegetable_controller -->|"delegates"| node_vegetable_service
node_dish_controller -->|"delegates"| node_dish_service
node_recipe_controller -->|"delegates"| node_recipe_service
node_vegetable_service -->|"reads and writes"| node_vegetable_repo
node_dish_service -->|"queries"| node_dish_repo
node_dish_service -->|"looks up vegetables"| node_vegetable_repo
node_recipe_service -->|"queries"| node_recipe_repo
node_recipe_service -->|"looks up dish"| node_dish_repo
node_vegetable_repo -->|"persists"| node_domain_entities
node_dish_repo -->|"persists"| node_domain_entities
node_recipe_repo -->|"persists"| node_domain_entities
node_ingredient_repo -->|"persists"| node_domain_entities
node_vegetable_controller -->|"uses models"| node_transfer_dtos
node_choose_controller -->|"returns models"| node_transfer_dtos
node_dish_controller -->|"uses models"| node_transfer_dtos
node_recipe_controller -->|"returns models"| node_transfer_dtos

click node_app "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/App.js"
click node_vegetable_ui "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js"
click node_vegetable_form "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableForm.js"
click node_vegetable_table "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableTable.js"
click node_choose_ui "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/ChooseMeMain.js"
click node_vegetable_choices "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/AvailableVegetables.js"
click node_dish_choices "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/VegetableDishes.js"
click node_recipe_details "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/RecipeDetails.js"
click node_dashboard "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/dashboard/Dashboard.js"
click node_navbar "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/layout/Navbar.js"
click node_api "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/api.js"
click node_vegetable_service_ui "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/vegetableService.js"
click node_dish_service_ui "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/dishService.js"
click node_recipe_service_ui "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/recipeService.js"
click node_vegetable_controller "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/VegetableController.java"
click node_choose_controller "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java"
click node_dish_controller "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/DishController.java"
click node_recipe_controller "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/RecipeController.java"
click node_vegetable_service "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/service/impl/VegetableServiceImpl.java"
click node_dish_service "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/service/impl/DishServiceImpl.java"
click node_recipe_service "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/service/impl/RecipeServiceImpl.java"
click node_vegetable_repo "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/VegetableRepository.java"
click node_dish_repo "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/DishRepository.java"
click node_recipe_repo "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/RecipeRepository.java"
click node_ingredient_repo "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/IngredientRepository.java"
click node_domain_entities "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/tree/main/momhelp/src/main/java/com/momhelp/entity"
click node_transfer_dtos "https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/tree/main/momhelp/src/main/java/com/momhelp/dto"

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,node_vegetable_ui,node_vegetable_form,node_vegetable_table,node_choose_ui,node_vegetable_choices,node_dish_choices,node_recipe_details,node_dashboard,node_navbar,node_api,node_vegetable_service_ui,node_dish_service_ui,node_recipe_service_ui,node_user toneBlue
class node_vegetable_controller toneAmber
class node_choose_controller,node_dish_controller,node_recipe_controller toneMint
class node_vegetable_service,node_dish_service,node_recipe_service,node_transfer_dtos toneRose
class node_vegetable_repo,node_dish_repo,node_recipe_repo,node_ingredient_repo,node_domain_entities toneIndigo
```

## Components

### Frontend

- [App routes](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/App.js): `momhelp-frontend/momhelp-frontend/src/App.js`
- [Vegetable screens](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js): `momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js`
- [Vegetable form](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableForm.js): `momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableForm.js`
- [Vegetable table](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableTable.js): `momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableTable.js`
- [Choose Me flow](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/ChooseMeMain.js): `momhelp-frontend/momhelp-frontend/src/components/choose-me/ChooseMeMain.js`
- [Available choices](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/AvailableVegetables.js): `momhelp-frontend/momhelp-frontend/src/components/choose-me/AvailableVegetables.js`
- [Dish results](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/VegetableDishes.js): `momhelp-frontend/momhelp-frontend/src/components/choose-me/VegetableDishes.js`
- [Recipe details](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/choose-me/RecipeDetails.js): `momhelp-frontend/momhelp-frontend/src/components/choose-me/RecipeDetails.js`
- [Dashboard](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/dashboard/Dashboard.js): `momhelp-frontend/momhelp-frontend/src/components/dashboard/Dashboard.js`
- [Navigation](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/components/layout/Navbar.js): `momhelp-frontend/momhelp-frontend/src/components/layout/Navbar.js`
- [HTTP client](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/api.js): `momhelp-frontend/momhelp-frontend/src/services/api.js`
- [Vegetable API](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/vegetableService.js): `momhelp-frontend/momhelp-frontend/src/services/vegetableService.js`
- [Dish API](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/dishService.js): `momhelp-frontend/momhelp-frontend/src/services/dishService.js`
- [Recipe API](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp-frontend/momhelp-frontend/src/services/recipeService.js): `momhelp-frontend/momhelp-frontend/src/services/recipeService.js`

### Inventory

- [Vegetable endpoints](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/VegetableController.java): `momhelp/src/main/java/com/momhelp/controller/VegetableController.java`

### Recipe discovery

- [Choose Me endpoints](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java): `momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java`
- [Dish endpoints](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/DishController.java): `momhelp/src/main/java/com/momhelp/controller/DishController.java`
- [Recipe endpoints](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/controller/RecipeController.java): `momhelp/src/main/java/com/momhelp/controller/RecipeController.java`

### Backend services

- [Vegetable operations](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/service/impl/VegetableServiceImpl.java): `momhelp/src/main/java/com/momhelp/service/impl/VegetableServiceImpl.java`
- [Dish operations](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/service/impl/DishServiceImpl.java): `momhelp/src/main/java/com/momhelp/service/impl/DishServiceImpl.java`
- [Recipe operations](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/service/impl/RecipeServiceImpl.java): `momhelp/src/main/java/com/momhelp/service/impl/RecipeServiceImpl.java`
- [API data models](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/tree/main/momhelp/src/main/java/com/momhelp/dto): `momhelp/src/main/java/com/momhelp/dto`

### Domain and persistence

- [Vegetable repository](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/VegetableRepository.java): `momhelp/src/main/java/com/momhelp/repository/VegetableRepository.java`
- [Dish repository](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/DishRepository.java): `momhelp/src/main/java/com/momhelp/repository/DishRepository.java`
- [Recipe repository](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/RecipeRepository.java): `momhelp/src/main/java/com/momhelp/repository/RecipeRepository.java`
- [Ingredient repository](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/blob/main/momhelp/src/main/java/com/momhelp/repository/IngredientRepository.java): `momhelp/src/main/java/com/momhelp/repository/IngredientRepository.java`
- [Domain entities](https://github.com/shubhs83/inventory-management-with-recipe-recommnedation/tree/main/momhelp/src/main/java/com/momhelp/entity): `momhelp/src/main/java/com/momhelp/entity`

### Other components

- **User**

## Connections

- User → App routes: uses (evidence: `momhelp-frontend/momhelp-frontend/src/App.js`)
- App routes → Navigation: renders (evidence: `momhelp-frontend/momhelp-frontend/src/App.js`)
- App routes → Dashboard: routes to (evidence: `momhelp-frontend/momhelp-frontend/src/App.js`)
- App routes → Vegetable screens: routes to (evidence: `momhelp-frontend/momhelp-frontend/src/App.js`)
- App routes → Choose Me flow: routes to (evidence: `momhelp-frontend/momhelp-frontend/src/App.js`)
- Vegetable screens → Vegetable form: renders (evidence: `momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js`)
- Vegetable screens → Vegetable table: renders (evidence: `momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js`)
- Choose Me flow → Available choices: renders (evidence: `momhelp-frontend/momhelp-frontend/src/components/choose-me/ChooseMeMain.js`)
- Choose Me flow → Dish results: renders (evidence: `momhelp-frontend/momhelp-frontend/src/components/choose-me/ChooseMeMain.js`)
- Choose Me flow → Recipe details: renders (evidence: `momhelp-frontend/momhelp-frontend/src/components/choose-me/ChooseMeMain.js`)
- Recipe details → Recipe API: requests recipe (evidence: `momhelp-frontend/momhelp-frontend/src/components/choose-me/RecipeDetails.js`)
- Vegetable screens → Vegetable API: requests data (evidence: `momhelp-frontend/momhelp-frontend/src/components/vegetable/VegetableList.js`)
- Vegetable API → HTTP client: calls (evidence: `momhelp-frontend/momhelp-frontend/src/services/vegetableService.js`)
- Dish API → HTTP client: calls (evidence: `momhelp-frontend/momhelp-frontend/src/services/dishService.js`)
- Recipe API → HTTP client: calls (evidence: `momhelp-frontend/momhelp-frontend/src/services/recipeService.js`)
- HTTP client → Vegetable endpoints: HTTP requests
- HTTP client → Choose Me endpoints: HTTP requests
- HTTP client → Dish endpoints: HTTP requests
- HTTP client → Recipe endpoints: HTTP requests
- Choose Me endpoints → Vegetable operations: gets vegetables (evidence: `momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java`)
- Choose Me endpoints → Dish operations: gets dishes (evidence: `momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java`)
- Choose Me endpoints → Recipe operations: gets recipe (evidence: `momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java`)
- Vegetable endpoints → Vegetable operations: delegates (evidence: `momhelp/src/main/java/com/momhelp/controller/VegetableController.java`)
- Dish endpoints → Dish operations: delegates (evidence: `momhelp/src/main/java/com/momhelp/controller/DishController.java`)
- Recipe endpoints → Recipe operations: delegates (evidence: `momhelp/src/main/java/com/momhelp/controller/RecipeController.java`)
- Vegetable operations → Vegetable repository: reads and writes (evidence: `momhelp/src/main/java/com/momhelp/service/impl/VegetableServiceImpl.java`)
- Dish operations → Dish repository: queries (evidence: `momhelp/src/main/java/com/momhelp/service/impl/DishServiceImpl.java`)
- Dish operations → Vegetable repository: looks up vegetables (evidence: `momhelp/src/main/java/com/momhelp/service/impl/DishServiceImpl.java`)
- Recipe operations → Recipe repository: queries (evidence: `momhelp/src/main/java/com/momhelp/service/impl/RecipeServiceImpl.java`)
- Recipe operations → Dish repository: looks up dish (evidence: `momhelp/src/main/java/com/momhelp/service/impl/RecipeServiceImpl.java`)
- Vegetable repository → Domain entities: persists (evidence: `momhelp/src/main/java/com/momhelp/repository/VegetableRepository.java`)
- Dish repository → Domain entities: persists (evidence: `momhelp/src/main/java/com/momhelp/repository/DishRepository.java`)
- Recipe repository → Domain entities: persists (evidence: `momhelp/src/main/java/com/momhelp/repository/RecipeRepository.java`)
- Ingredient repository → Domain entities: persists (evidence: `momhelp/src/main/java/com/momhelp/repository/IngredientRepository.java`)
- Vegetable endpoints → API data models: uses models (evidence: `momhelp/src/main/java/com/momhelp/controller/VegetableController.java`)
- Choose Me endpoints → API data models: returns models (evidence: `momhelp/src/main/java/com/momhelp/controller/ChooseMeController.java`)
- Dish endpoints → API data models: uses models (evidence: `momhelp/src/main/java/com/momhelp/controller/DishController.java`)
- Recipe endpoints → API data models: returns models (evidence: `momhelp/src/main/java/com/momhelp/controller/RecipeController.java`)
