# 27kanghan/moeutto architecture

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

- Interactive diagram: https://gitdiagram.com/27kanghan/moeutto
- Repository: https://github.com/27kanghan/moeutto

## Overview

Moeutto is a digital wardrobe service: users manage clothing, inspect wardrobe analytics, get weather-based outfit suggestions, and score outfits for calendar records. The tree shows a React client, Spring backend, and separate Python/Go AI-related services. The README documents the product capabilities; sampled source confirms the outfit-check calculations and image-processing route. Many cross-service and client-to-backend connections are not shown in the excerpts, so those links are marked unverified rather than asserted as observed calls.

Main entry points: [`backend/src/main/java/com/ssafy/moeutto/MoeuttoApplication.java`](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/MoeuttoApplication.java) (Spring API), [`frontend/src/index.tsx`](https://github.com/27kanghan/moeutto/blob/develop/frontend/src/index.tsx) (React application), [`ClothesComment/main.py`](https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/main.py) (Outfit scoring API), [`RemoveBackground/main.py`](https://github.com/27kanghan/moeutto/blob/develop/RemoveBackground/main.py) (Image processing API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User experience"]
  node_web["React application<br/>[index.tsx]"]
  node_closet_ui["Wardrobe UI"]
  node_analysis_ui["Analysis UI"]
  node_weather_ui["Weather UI<br/>[MainWeatherTap.tsx]"]
  node_calendar_ui["Calendar UI<br/>[Calendar.tsx]"]
end

subgraph group_core["Wardrobe platform"]
  node_backend["Spring API"]
  node_clothes["Clothing inventory"]
  node_wardrobe_analysis["Wardrobe analytics"]
  node_outfit_recommend["Outfit recommendations"]
  node_calendar["Outfit calendar"]
  node_accounts["Member accounts"]
  node_s3[("Amazon S3")]
  node_database[("Application database")]
end

subgraph group_ai["AI services"]
  node_ai_recommend_api["Go recommendation API<br/>[handler.go]"]
  node_ai_check["Outfit scoring API<br/>[main.py]"]
  node_score["Score calculation<br/>[mk_score.py]"]
  node_warmth["Warmth estimate<br/>[temperature.py]"]
  node_darkness["Color brightness<br/>[darkness.py]"]
  node_comments["AI comments<br/>[mk_comment.py]"]
  node_image_api["Image processing API<br/>[main.py]"]
  node_segmentation["Background removal<br/>[process.py]"]
  node_classification["Clothing classification<br/>[classification.py]"]
end

subgraph group_social["Social features"]
  node_friends["Friends and follows<br/>[FriendService.java]"]
  node_friend_outfits["Friend outfit sharing"]
  node_guestbook["Guestbook"]
end

node_user(("User"))

node_user -->|"uses"| node_web
node_web -.->|"routes to"| node_closet_ui
node_web -.->|"routes to"| node_analysis_ui
node_web -.->|"routes to"| node_weather_ui
node_web -.->|"routes to"| node_calendar_ui
node_closet_ui -.->|"submits clothing"| node_backend
node_backend -.->|"handles wardrobe"| node_clothes
node_backend -.->|"serves analysis"| node_wardrobe_analysis
node_backend -.->|"serves recommendations"| node_outfit_recommend
node_backend -.->|"records outfits"| node_calendar
node_backend -.->|"handles login"| node_accounts
node_accounts -->|"creates folder"| node_s3
node_outfit_recommend -.->|"requests recommendations"| node_ai_recommend_api
node_backend -.->|"requests outfit scoring"| node_ai_check
node_ai_check -->|"calculates scores"| node_score
node_ai_check -->|"estimates warmth"| node_warmth
node_ai_check -->|"estimates brightness"| node_darkness
node_ai_check -->|"generates comments"| node_comments
node_backend -.->|"requests image processing"| node_image_api
node_image_api -->|"removes background"| node_segmentation
node_image_api -->|"classifies clothing"| node_classification
node_backend -.->|"stores records"| node_database
node_backend -.->|"serves social features"| node_friends
node_backend -.->|"serves friend outfits"| node_friend_outfits
node_backend -.->|"serves guestbooks"| node_guestbook

click node_web "https://github.com/27kanghan/moeutto/blob/develop/frontend/src/index.tsx"
click node_closet_ui "https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/add/organisms/AddClothFormOrganism.tsx"
click node_analysis_ui "https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/analysis/organisms/ClothAnalysisOrganism.tsx"
click node_weather_ui "https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/main/organisms/MainWeatherTap.tsx"
click node_calendar_ui "https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/calendar/organisms/Calendar.tsx"
click node_backend "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/MoeuttoApplication.java"
click node_clothes "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/clothes/service/ClothesService.java"
click node_wardrobe_analysis "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/clothes/service/ClothesService.java"
click node_outfit_recommend "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/aiRecOutfit/service/AiRecOutfitService.java"
click node_calendar "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/calendar/service/CalendarService.java"
click node_accounts "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/member/service/OAuthLoginService.java"
click node_ai_recommend_api "https://github.com/27kanghan/moeutto/blob/develop/RecommendOutfit/myapp/internal/app/handlers/handler.go"
click node_ai_check "https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/main.py"
click node_score "https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/score/mk_score.py"
click node_warmth "https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/temperature/temperature.py"
click node_darkness "https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/darkness/darkness.py"
click node_comments "https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/GPT/mk_comment.py"
click node_image_api "https://github.com/27kanghan/moeutto/blob/develop/RemoveBackground/main.py"
click node_segmentation "https://github.com/27kanghan/moeutto/blob/develop/RemoveBackground/process.py"
click node_classification "https://github.com/27kanghan/moeutto/blob/develop/RemoveBackground/classification/classification.py"
click node_friends "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/friends/service/FriendService.java"
click node_friend_outfits "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/friendOutfit/service/FriendOutfitService.java"
click node_guestbook "https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/guestBook/service/GuestBookService.java"

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_web,node_closet_ui,node_analysis_ui,node_weather_ui,node_calendar_ui,node_user toneBlue
class node_backend,node_clothes,node_wardrobe_analysis,node_outfit_recommend,node_calendar,node_accounts,node_s3,node_database toneAmber
class node_ai_recommend_api,node_ai_check,node_score,node_warmth,node_darkness,node_comments,node_image_api,node_segmentation,node_classification toneMint
class node_friends,node_friend_outfits,node_guestbook toneRose
```

## Components

### User experience

- [React application](https://github.com/27kanghan/moeutto/blob/develop/frontend/src/index.tsx): `frontend/src/index.tsx`
- [Wardrobe UI](https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/add/organisms/AddClothFormOrganism.tsx): `frontend/src/components/add/organisms/AddClothFormOrganism.tsx`
- [Analysis UI](https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/analysis/organisms/ClothAnalysisOrganism.tsx): `frontend/src/components/analysis/organisms/ClothAnalysisOrganism.tsx`
- [Weather UI](https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/main/organisms/MainWeatherTap.tsx): `frontend/src/components/main/organisms/MainWeatherTap.tsx`
- [Calendar UI](https://github.com/27kanghan/moeutto/blob/develop/frontend/src/components/calendar/organisms/Calendar.tsx): `frontend/src/components/calendar/organisms/Calendar.tsx`

### Wardrobe platform

- [Spring API](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/MoeuttoApplication.java): `backend/src/main/java/com/ssafy/moeutto/MoeuttoApplication.java`
- [Clothing inventory](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/clothes/service/ClothesService.java): `backend/src/main/java/com/ssafy/moeutto/domain/clothes/service/ClothesService.java`
- [Wardrobe analytics](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/clothes/service/ClothesService.java): `backend/src/main/java/com/ssafy/moeutto/domain/clothes/service/ClothesService.java`
- [Outfit recommendations](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/aiRecOutfit/service/AiRecOutfitService.java): `backend/src/main/java/com/ssafy/moeutto/domain/aiRecOutfit/service/AiRecOutfitService.java`
- [Outfit calendar](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/calendar/service/CalendarService.java): `backend/src/main/java/com/ssafy/moeutto/domain/calendar/service/CalendarService.java`
- [Member accounts](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/member/service/OAuthLoginService.java): `backend/src/main/java/com/ssafy/moeutto/domain/member/service/OAuthLoginService.java`
- **Amazon S3**
- **Application database**

### AI services

- [Go recommendation API](https://github.com/27kanghan/moeutto/blob/develop/RecommendOutfit/myapp/internal/app/handlers/handler.go): `RecommendOutfit/myapp/internal/app/handlers/handler.go`
- [Outfit scoring API](https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/main.py): `ClothesComment/main.py`
- [Score calculation](https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/score/mk_score.py): `ClothesComment/score/mk_score.py`
- [Warmth estimate](https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/temperature/temperature.py): `ClothesComment/temperature/temperature.py`
- [Color brightness](https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/darkness/darkness.py): `ClothesComment/darkness/darkness.py`
- [AI comments](https://github.com/27kanghan/moeutto/blob/develop/ClothesComment/GPT/mk_comment.py): `ClothesComment/GPT/mk_comment.py`
- [Image processing API](https://github.com/27kanghan/moeutto/blob/develop/RemoveBackground/main.py): `RemoveBackground/main.py`
- [Background removal](https://github.com/27kanghan/moeutto/blob/develop/RemoveBackground/process.py): `RemoveBackground/process.py`
- [Clothing classification](https://github.com/27kanghan/moeutto/blob/develop/RemoveBackground/classification/classification.py): `RemoveBackground/classification/classification.py`

### Social features

- [Friends and follows](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/friends/service/FriendService.java): `backend/src/main/java/com/ssafy/moeutto/domain/friends/service/FriendService.java`
- [Friend outfit sharing](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/friendOutfit/service/FriendOutfitService.java): `backend/src/main/java/com/ssafy/moeutto/domain/friendOutfit/service/FriendOutfitService.java`
- [Guestbook](https://github.com/27kanghan/moeutto/blob/develop/backend/src/main/java/com/ssafy/moeutto/domain/guestBook/service/GuestBookService.java): `backend/src/main/java/com/ssafy/moeutto/domain/guestBook/service/GuestBookService.java`

### Other components

- **User**

## Connections

- User → React application: uses (evidence: `frontend/src/index.tsx`)
- React application → Wardrobe UI: routes to (evidence: `frontend/src/index.tsx`)
- React application → Analysis UI: routes to (evidence: `frontend/src/index.tsx`)
- React application → Weather UI: routes to (evidence: `frontend/src/index.tsx`)
- React application → Calendar UI: routes to (evidence: `frontend/src/index.tsx`)
- Wardrobe UI → Spring API: submits clothing
- Spring API → Clothing inventory: handles wardrobe
- Spring API → Wardrobe analytics: serves analysis
- Spring API → Outfit recommendations: serves recommendations
- Spring API → Outfit calendar: records outfits
- Spring API → Member accounts: handles login
- Member accounts → Amazon S3: creates folder (evidence: `backend/src/main/java/com/ssafy/moeutto/domain/member/service/OAuthLoginService.java`)
- Outfit recommendations → Go recommendation API: requests recommendations
- Spring API → Outfit scoring API: requests outfit scoring
- Outfit scoring API → Score calculation: calculates scores (evidence: `ClothesComment/main.py`)
- Outfit scoring API → Warmth estimate: estimates warmth (evidence: `ClothesComment/main.py`)
- Outfit scoring API → Color brightness: estimates brightness (evidence: `ClothesComment/main.py`)
- Outfit scoring API → AI comments: generates comments (evidence: `ClothesComment/main.py`)
- Spring API → Image processing API: requests image processing
- Image processing API → Background removal: removes background (evidence: `RemoveBackground/main.py`)
- Image processing API → Clothing classification: classifies clothing (evidence: `RemoveBackground/main.py`)
- Spring API → Application database: stores records
- Spring API → Friends and follows: serves social features
- Spring API → Friend outfit sharing: serves friend outfits
- Spring API → Guestbook: serves guestbooks
