# dowork0711/recipeplease architecture

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

- Interactive diagram: https://gitdiagram.com/dowork0711/recipeplease
- Repository: https://github.com/dowork0711/recipeplease

## Overview

RecipePlease is a recipe-sharing and commerce product with a React Native mobile client, a Spring Boot backend, and a legacy JavaScript web client. The primary flow is discovering or uploading recipes, then accessing paid recipe content through internal coins; a separate goods-shopping flow uses card payment. The backend also supports accounts, favorites, ratings, and purchase history. Backend call edges follow sampled controller/service relationships and the source index; client-to-server wiring and unsampled goods paths are not verified, so those links are marked dashed.

Main entry points: [`Backend/src/main/java/com/recipe/a/dao`](https://github.com/dowork0711/recipeplease/tree/main/Backend/src/main/java/com/recipe/a/dao) (MyBatis data access), [`Frontend/src/screens/MainNavigator.tsx`](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/screens/MainNavigator.tsx) (App navigation), [`Frontend/src/recipe/RecipeHomeScreen.tsx`](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/recipe/RecipeHomeScreen.tsx) (Recipe browsing), [`Frontend/src/goods/GoodsHomeScreen.tsx`](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/goods/GoodsHomeScreen.tsx) (Goods shopping)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_mobile["Mobile experience"]
  node_mobileapp["Mobile shell<br/>[App.tsx]"]
  node_nav["App navigation<br/>[MainNavigator.tsx]"]
  node_mobileauth["Login and account<br/>[Login.tsx]"]
  node_recipeclient["Recipe browsing"]
  node_recipedetail["Recipe detail"]
  node_recipeupload["Recipe upload<br/>[RecipeUpload.tsx]"]
  node_goodsclient["Goods shopping"]
  node_goodsdetail["Goods detail<br/>[GoodsDetail.tsx]"]
  node_goodscheckout["Goods checkout<br/>[Payment.tsx]"]
end

subgraph group_web["Web experience"]
  node_webclient["Web experience<br/>[listing.js]"]
end

subgraph group_backend["Backend services"]
  node_recipeapi["Recipe API"]
  node_memberapi["Member API"]
  node_coinapi["Coin API"]
  node_paymentapi["Payment API"]
  node_goodsapi["Goods API"]
  node_recipesvc["Recipe services<br/>[RecipeService.java]"]
  node_membersvc["Member services"]
  node_coinsvc["Coin transactions"]
  node_paymentsvc["Goods payments"]
  node_goodssvc["Goods services<br/>[GoodsService.java]"]
end

subgraph group_data["Persistence"]
  node_daos["MyBatis data access"]
  node_mysql[("MySQL database")]
end

node_user(("App user"))
node_card["Card payment"]

node_user -->|"uses"| node_mobileapp
node_mobileapp -->|"renders"| node_nav
node_user -->|"uses"| node_webclient
node_nav -.->|"routes to"| node_mobileauth
node_nav -.->|"routes to"| node_recipeclient
node_nav -.->|"routes to"| node_goodsclient
node_recipeclient -.->|"opens"| node_recipedetail
node_user -->|"uploads"| node_recipeupload
node_user -->|"shops"| node_goodsdetail
node_goodsclient -.->|"opens"| node_goodsdetail
node_goodsdetail -.->|"proceeds to"| node_goodscheckout
node_mobileauth -.->|"requests account"| node_memberapi
node_recipeclient -.->|"requests recipes"| node_recipeapi
node_recipeupload -.->|"submits recipe"| node_recipeapi
node_goodsclient -.->|"requests goods"| node_goodsapi
node_goodscheckout -.->|"submits purchase"| node_paymentapi
node_goodscheckout -->|"pays by card"| node_card
node_recipeapi -->|"delegates"| node_recipesvc
node_memberapi -->|"delegates"| node_membersvc
node_coinapi -->|"delegates"| node_coinsvc
node_paymentapi -->|"delegates"| node_paymentsvc
node_recipesvc -->|"queries"| node_daos
node_membersvc -->|"queries"| node_daos
node_coinsvc -->|"updates coins"| node_daos
node_paymentsvc -->|"records purchases"| node_daos
node_goodsapi -.->|"delegates"| node_goodssvc
node_goodssvc -.->|"queries"| node_daos
node_daos -->|"persists data"| node_mysql

click node_mobileapp "https://github.com/dowork0711/recipeplease/blob/main/Frontend/App.tsx"
click node_nav "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/screens/MainNavigator.tsx"
click node_mobileauth "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/mypage/Login.tsx"
click node_recipeclient "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/recipe/RecipeHomeScreen.tsx"
click node_recipedetail "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/recipe/RecipeDetailScreen.tsx"
click node_recipeupload "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/mypage/mypageScreens/RecipeUpload.tsx"
click node_goodsclient "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/goods/GoodsHomeScreen.tsx"
click node_goodsdetail "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/goods/GoodsDetail.tsx"
click node_goodscheckout "https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/goods/payment/Payment.tsx"
click node_webclient "https://github.com/dowork0711/recipeplease/blob/main/FrontWeb/FrontWeb/WebContent/js/detail/listing.js"
click node_recipeapi "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/RecipeController.java"
click node_memberapi "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/MembersController.java"
click node_coinapi "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/CoinTransactionController.java"
click node_paymentapi "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/PaymentController.java"
click node_goodsapi "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/GoodsController.java"
click node_recipesvc "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/RecipeService.java"
click node_membersvc "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/MembersService.java"
click node_coinsvc "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/CoinTransactionService.java"
click node_paymentsvc "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/PaymentService.java"
click node_goodssvc "https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/GoodsService.java"
click node_daos "https://github.com/dowork0711/recipeplease/tree/main/Backend/src/main/java/com/recipe/a/dao"

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_mobileapp,node_nav,node_mobileauth,node_recipeclient,node_recipedetail,node_recipeupload,node_goodsclient,node_goodsdetail,node_goodscheckout,node_user toneBlue
class node_webclient toneAmber
class node_recipeapi,node_memberapi,node_coinapi,node_paymentapi,node_goodsapi,node_recipesvc,node_membersvc,node_coinsvc,node_paymentsvc,node_goodssvc toneMint
class node_daos,node_mysql toneRose
class node_card toneIndigo
```

## Components

### Mobile experience

- [Mobile shell](https://github.com/dowork0711/recipeplease/blob/main/Frontend/App.tsx): `Frontend/App.tsx`
- [App navigation](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/screens/MainNavigator.tsx): `Frontend/src/screens/MainNavigator.tsx`
- [Login and account](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/mypage/Login.tsx): `Frontend/src/mypage/Login.tsx`
- [Recipe browsing](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/recipe/RecipeHomeScreen.tsx): `Frontend/src/recipe/RecipeHomeScreen.tsx`
- [Recipe detail](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/recipe/RecipeDetailScreen.tsx): `Frontend/src/recipe/RecipeDetailScreen.tsx`
- [Recipe upload](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/mypage/mypageScreens/RecipeUpload.tsx): `Frontend/src/mypage/mypageScreens/RecipeUpload.tsx`
- [Goods shopping](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/goods/GoodsHomeScreen.tsx): `Frontend/src/goods/GoodsHomeScreen.tsx`
- [Goods detail](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/goods/GoodsDetail.tsx): `Frontend/src/goods/GoodsDetail.tsx`
- [Goods checkout](https://github.com/dowork0711/recipeplease/blob/main/Frontend/src/goods/payment/Payment.tsx): `Frontend/src/goods/payment/Payment.tsx`

### Web experience

- [Web experience](https://github.com/dowork0711/recipeplease/blob/main/FrontWeb/FrontWeb/WebContent/js/detail/listing.js): `FrontWeb/FrontWeb/WebContent/js/detail/listing.js`

### Backend services

- [Recipe API](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/RecipeController.java): `Backend/src/main/java/com/recipe/a/controller/RecipeController.java`
- [Member API](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/MembersController.java): `Backend/src/main/java/com/recipe/a/controller/MembersController.java`
- [Coin API](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/CoinTransactionController.java): `Backend/src/main/java/com/recipe/a/controller/CoinTransactionController.java`
- [Payment API](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/PaymentController.java): `Backend/src/main/java/com/recipe/a/controller/PaymentController.java`
- [Goods API](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/controller/GoodsController.java): `Backend/src/main/java/com/recipe/a/controller/GoodsController.java`
- [Recipe services](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/RecipeService.java): `Backend/src/main/java/com/recipe/a/service/RecipeService.java`
- [Member services](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/MembersService.java): `Backend/src/main/java/com/recipe/a/service/MembersService.java`
- [Coin transactions](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/CoinTransactionService.java): `Backend/src/main/java/com/recipe/a/service/CoinTransactionService.java`
- [Goods payments](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/PaymentService.java): `Backend/src/main/java/com/recipe/a/service/PaymentService.java`
- [Goods services](https://github.com/dowork0711/recipeplease/blob/main/Backend/src/main/java/com/recipe/a/service/GoodsService.java): `Backend/src/main/java/com/recipe/a/service/GoodsService.java`

### Persistence

- [MyBatis data access](https://github.com/dowork0711/recipeplease/tree/main/Backend/src/main/java/com/recipe/a/dao): `Backend/src/main/java/com/recipe/a/dao`
- **MySQL database**

### Other components

- **App user**
- **Card payment**

## Connections

- App user → Mobile shell: uses
- Mobile shell → App navigation: renders (evidence: `Frontend/App.tsx`)
- App user → Web experience: uses
- App navigation → Login and account: routes to
- App navigation → Recipe browsing: routes to
- App navigation → Goods shopping: routes to
- Recipe browsing → Recipe detail: opens
- App user → Recipe upload: uploads
- App user → Goods detail: shops
- Goods shopping → Goods detail: opens
- Goods detail → Goods checkout: proceeds to
- Login and account → Member API: requests account
- Recipe browsing → Recipe API: requests recipes
- Recipe upload → Recipe API: submits recipe
- Goods shopping → Goods API: requests goods
- Goods checkout → Payment API: submits purchase
- Goods checkout → Card payment: pays by card
- Recipe API → Recipe services: delegates (evidence: `Backend/src/main/java/com/recipe/a/controller/RecipeController.java`)
- Member API → Member services: delegates (evidence: `Backend/src/main/java/com/recipe/a/controller/MembersController.java`)
- Coin API → Coin transactions: delegates (evidence: `Backend/src/main/java/com/recipe/a/controller/CoinTransactionController.java`)
- Payment API → Goods payments: delegates (evidence: `Backend/src/main/java/com/recipe/a/controller/PaymentController.java`)
- Recipe services → MyBatis data access: queries (evidence: `Backend/src/main/java/com/recipe/a/service/RecipeService.java`)
- Member services → MyBatis data access: queries (evidence: `Backend/src/main/java/com/recipe/a/service/MembersService.java`)
- Coin transactions → MyBatis data access: updates coins (evidence: `Backend/src/main/java/com/recipe/a/service/CoinTransactionService.java`)
- Goods payments → MyBatis data access: records purchases (evidence: `Backend/src/main/java/com/recipe/a/service/PaymentService.java`)
- Goods API → Goods services: delegates
- Goods services → MyBatis data access: queries (evidence: `Backend/src/main/java/com/recipe/a/service/GoodsService.java`)
- MyBatis data access → MySQL database: persists data
