Skip to content

πŸ€±λ””μ–΄λ²¨λ¦¬(DearBelly)🀱: μ‚°λͺ¨μ™€ νƒœμ•„λ₯Ό μœ„ν•œ ν”Œλž«νΌ, 디어벨리

Notifications You must be signed in to change notification settings

DearBelly/DearBelly-BE-FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

112 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🀱DearBelly🀱

νƒœμ•„μ™€ μ‚°λͺ¨λ₯Ό μœ„ν•œ λ§žμΆ€ν˜• 관리 μ„œλΉ„μŠ€, λ””μ–΄λ²¨λ¦¬μ˜ FastAPI Server Repository μž…λ‹ˆλ‹€.


⭐ERD⭐

ERD


⭐Architecture⭐

Architecture


πŸ“ ν”„λ‘œμ νŠΈ ꡬ쑰 πŸ“

app/
β”œβ”€β”€ api/
β”‚   └── endpoints/
β”‚       └── __init__.py          # λΌμš°ν„° λͺ¨μŒ
β”œβ”€β”€ core/                        # 곡톡 μ„€μ • 및 μœ ν‹Έλ¦¬ν‹° (config, logging λ“±)
β”œβ”€β”€ models/
β”‚   └── models/                  # CV BaseModel
β”œβ”€β”€ schemas/
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── job.py                   # μš”μ²­/응닡 μŠ€ν‚€λ§ˆ (μž‘μ—… λ‹¨μœ„)
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ openai_service.py        # OpenAI 연동 둜직
β”‚   β”œβ”€β”€ predictor_service.py     # CV λͺ¨λΈκΈ°λ°˜ 예츑/μΆ”λ‘  둜직
β”‚   └── s3_service.py            # AWS S3 연동 둜직(Presigned URL λ‹€μš΄)
β”œβ”€β”€ worker/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ redis_client.py          # Redis μ—°κ²° 및 ν΄λΌμ΄μ–ΈνŠΈ
β”‚   β”œβ”€β”€ tasks.py                 # 비동기 μž‘μ—… μ •μ˜
β”‚   └── worker.py                # μ›Œμ»€ μ—”νŠΈλ¦¬ν¬μΈνŠΈ
β”œβ”€β”€ __init__.py
└── main.py                      # FastAPI μ• ν”Œλ¦¬μΌ€μ΄μ…˜ μ—”νŠΈλ¦¬ν¬μΈνŠΈ
deployment/
β”‚
β”œβ”€β”€ deploy.sh                    # 배포 슀크립트
β”œβ”€β”€ docker-compose.yml           # κΈ°λ³Έ μ‹€ν–‰ ꡬ성
β”œβ”€β”€ docker-compose.monit         # λͺ¨λ‹ˆν„°λ§ 포함 μ‹€ν–‰ ꡬ성
β”œβ”€β”€ nginx.conf                   # Nginx μ„€μ •
β”œβ”€β”€ prometheus.yml               # Prometheus μ„€μ •
β”œβ”€β”€ prometheus-rule.yml          # Prometheus rule μ„€μ •
└── generate_review.py           # μœ ν‹Έ/μ‹€ν–‰ 슀크립트

Tech Stack

  • Python / FastAPI
  • Redis (Queue/Worker)
  • OpenAI API (생성/μš”μ•½ λ“±)
  • AWS S3 (파일 μ €μž₯)
  • Nginx (Reverse Proxy)
  • Docker / Docker Compose
  • Prometheus (Monitoring)

πŸ“ Git Commit Convention πŸ“

DearBelly Spring Server Git 컀밋 λ©”μ‹œμ§€ μž‘μ„± κ·œμΉ™

컀밋 λ©”μ‹œμ§€ ν˜•μ‹

<type>(<scope>): <subject>

μ˜ˆμ‹œ : feat(member): νšŒμ›κ°€μž… API κ΅¬ν˜„
이슈 번호λ₯Ό 컀밋/PR λ©”μ‹œμ§€μ— ν¬ν•¨ν•˜λ©΄, GitHubμ—μ„œ μžλ™μœΌλ‘œ (#4) ν˜•μ‹μœΌλ‘œ λ§ν¬λ˜μ–΄ μž‘μ—… 좔적이 μ‰¬μ›Œμ§‘λ‹ˆλ‹€.


Type λͺ©λ‘

Type μ„€λͺ…
feat μƒˆλ‘œμš΄ κΈ°λŠ₯ μΆ”κ°€
fix 버그 μˆ˜μ •
refactor κΈ°λŠ₯ λ³€ν™” μ—†λŠ” λ¦¬νŒ©ν† λ§
del λΆˆν•„μš”ν•œ μ½”λ“œ μ‚­μ œ
test ν…ŒμŠ€νŠΈ μ½”λ“œ μΆ”κ°€/μˆ˜μ •
docs λ¬Έμ„œ μž‘μ„± λ˜λŠ” μˆ˜μ •
chore λΉŒλ“œ, μ„€μ •, CI, 기타 μœ μ§€κ΄€λ¦¬

πŸ“ Branch Naming Convention πŸ“

브랜치 넀이밍 μ»¨λ²€μ…˜

<type>/<μž‘μ—…-μ„€λͺ…>-<이슈번호>
  • main: 배포 κ°€λŠ₯ν•œ μ•ˆμ •μ μΈ μ½”λ“œ
  • develop: 개발 브랜치
  • type: feat, fix, refactor λ“±
  • μž‘μ—…-μ„€λͺ…: μ†Œλ¬Έμž-μΌ€λ°₯μΌ€μ΄μŠ€(kebab-case)둜 μž‘μ„±
  • 이슈번호: GitHub 이슈 번호 μ—°κ²°μš©

μ˜ˆμ‹œ: feat/social-login-4


About

πŸ€±λ””μ–΄λ²¨λ¦¬(DearBelly)🀱: μ‚°λͺ¨μ™€ νƒœμ•„λ₯Ό μœ„ν•œ ν”Œλž«νΌ, 디어벨리

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •