# yogitharayapureddy-lang/recipehub architecture

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

- Interactive diagram: https://gitdiagram.com/yogitharayapureddy-lang/recipehub
- Repository: https://github.com/yogitharayapureddy-lang/recipehub

## Overview

This repository is a recipe-sharing application with a React/TypeScript frontend and a Spring backend. The main user journey is to explore or search recipes, optionally sign in, then publish or manage recipes, save and rate them, or customize ingredients and see adjusted instructions. Frontend calls are visible in the excerpts; backend implementation details are available only from the file tree, so backend connections are shown as unverified where appropriate.

Main entry points: [`src/App.tsx`](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx) (Recipe interface), [`src/CustomizeIngredients.tsx`](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/CustomizeIngredients.tsx) (Ingredient customization), [`src/api.ts`](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/api.ts) (HTTP API client), [`food-recipe-backend/src/main/java/com/example/food_recipe_backend/controller`](https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/controller) (API controllers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Recipe experience"]
  node_app["Recipe interface<br/>[App.tsx]"]
  node_browse["Browse and search<br/>[App.tsx]"]
  node_account["Account access<br/>[App.tsx]"]
  node_recipe_manage["Recipe publishing<br/>[App.tsx]"]
  node_saved_rated["Saved and rated<br/>[App.tsx]"]
  node_ingredient_customization["Ingredient customization"]
  node_instruction_generation["Instruction adjustment"]
  node_app_entry["React entry<br/>[main.tsx]"]
end

subgraph group_client["API client"]
  node_api_client["HTTP API client<br/>[api.ts]"]
end

subgraph group_server["Backend"]
  node_backend_controllers["API controllers"]
  node_backend_services["Recipe service"]
  node_backend_entities["Recipe and user data"]
  node_backend_repositories["Data repositories"]
end

node_visitor(("Recipe user"))

node_visitor -->|"uses"| node_app
node_app_entry -->|"renders"| node_app
node_app -->|"presents"| node_browse
node_app -->|"handles"| node_account
node_app -->|"handles"| node_recipe_manage
node_app -->|"handles"| node_saved_rated
node_app -->|"renders"| node_ingredient_customization
node_ingredient_customization -->|"generates steps"| node_instruction_generation
node_app -->|"requests data"| node_api_client
node_api_client -.->|"calls HTTP API"| node_backend_controllers
node_backend_controllers -.-> node_backend_services
node_backend_services -.-> node_backend_repositories
node_backend_repositories -.-> node_backend_entities

click node_app "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx"
click node_browse "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx"
click node_account "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx"
click node_recipe_manage "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx"
click node_saved_rated "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx"
click node_ingredient_customization "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/CustomizeIngredients.tsx"
click node_instruction_generation "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/recipeInstructionUtils.ts"
click node_api_client "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/api.ts"
click node_backend_controllers "https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/controller"
click node_backend_services "https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/service"
click node_backend_entities "https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/entity"
click node_backend_repositories "https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/repository"
click node_app_entry "https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/main.tsx"

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_browse,node_account,node_recipe_manage,node_saved_rated,node_ingredient_customization,node_instruction_generation,node_app_entry,node_visitor toneBlue
class node_api_client toneAmber
class node_backend_controllers,node_backend_services,node_backend_entities,node_backend_repositories toneMint
```

## Components

### Recipe experience

- [Recipe interface](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx): `src/App.tsx`
- [Browse and search](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx): `src/App.tsx`
- [Account access](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx): `src/App.tsx`
- [Recipe publishing](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx): `src/App.tsx`
- [Saved and rated](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/App.tsx): `src/App.tsx`
- [Ingredient customization](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/CustomizeIngredients.tsx): `src/CustomizeIngredients.tsx`
- [Instruction adjustment](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/recipeInstructionUtils.ts): `src/recipeInstructionUtils.ts`
- [React entry](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/main.tsx): `src/main.tsx`

### API client

- [HTTP API client](https://github.com/yogitharayapureddy-lang/recipehub/blob/main/src/api.ts): `src/api.ts`

### Backend

- [API controllers](https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/controller): `food-recipe-backend/src/main/java/com/example/food_recipe_backend/controller`
- [Recipe service](https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/service): `food-recipe-backend/src/main/java/com/example/food_recipe_backend/service`
- [Recipe and user data](https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/entity): `food-recipe-backend/src/main/java/com/example/food_recipe_backend/entity`
- [Data repositories](https://github.com/yogitharayapureddy-lang/recipehub/tree/main/food-recipe-backend/src/main/java/com/example/food_recipe_backend/repository): `food-recipe-backend/src/main/java/com/example/food_recipe_backend/repository`

### Other components

- **Recipe user**

## Connections

- Recipe user → Recipe interface: uses
- React entry → Recipe interface: renders (evidence: `src/main.tsx`)
- Recipe interface → Browse and search: presents (evidence: `src/App.tsx`)
- Recipe interface → Account access: handles (evidence: `src/App.tsx`)
- Recipe interface → Recipe publishing: handles (evidence: `src/App.tsx`)
- Recipe interface → Saved and rated: handles (evidence: `src/App.tsx`)
- Recipe interface → Ingredient customization: renders (evidence: `src/App.tsx`)
- Ingredient customization → Instruction adjustment: generates steps (evidence: `src/CustomizeIngredients.tsx`)
- Recipe interface → HTTP API client: requests data (evidence: `src/App.tsx`)
- HTTP API client → API controllers: calls HTTP API (evidence: `src/api.ts`)
- API controllers → Recipe service
- Recipe service → Data repositories
- Data repositories → Recipe and user data
