Skip to content

OZ-Coding-School/oz_02_main-003-BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์†Œ๊ฐœ

oz_02_main-003-BE๋Š” OZ ์ฝ”๋”ฉ ์Šค์ฟจ์—์„œ ์ง„ํ–‰๋˜๋Š” ๋ฉ”์ธ ํ”„๋กœ์ ํŠธ ๊ณผ์ •์— ์ฐธ์—ฌ์ค‘์ธ ๋ƒ‰ํŒŒ(3ํŒ€)์˜ ๋ฐฑ์—”๋“œ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ž…๋‹ˆ๋‹ค.


๐Ÿ“– ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ

๐Ÿฅ˜ ๋ƒ‰์žฅ๊ณ  ๋š๋”ฑ์ด

๋ƒ‰์žฅ๊ณ ์† ์žฌ๋ฃŒ๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ๋ ˆ์‹œํ”ผ ๊ณต์œ  ํ”Œ๋žซํผ

๐Ÿคทโ€โ™‚๏ธ ๋ƒ‰์žฅ๊ณ ์— ์žฌ๋ฃŒ๋Š” ๋งŽ์€๋ฐ ๋ญ ํ•ด๋จน์ง€?
๐Ÿ”– ๊ทธ๋Ÿด์ค„ ์•Œ๊ณ  ์ค€๋น„ํ–ˆ์–ด! ๋„ˆ๋ฅผ ์œ„ํ•œ ๋งž์ถค ๋ ˆ์‹œํ”ผ!
๐Ÿ† ๋ƒ‰์žฅ๊ณ ์† ์žฌ๋ฃŒ๋ฅผ ์„ ํƒํ•˜๊ณ 
๐Ÿฅ‘ ๋ ˆ์‹œํ”ผ๋ฅผ ๊ฒ€์ƒ‰ํ•ด๋ด~
๐Ÿฅ• ๋„ˆ๊ฐ€ ๊ฐ€์ง„ ์žฌ๋ฃŒ๋“ค๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ๋ ˆ์‹œํ”ผ๋ฅผ ์•Œ๋ ค์ค„๊ฒŒ!

๐Ÿ™†โ€โ™€๏ธ ๋‚ด๊ฐ€ ์ฐพ๋˜ ๋ ˆ์‹œํ”ผ! ์ž๋ž‘ํ•˜๊ณ  ์‹ถ์€ ๋ ˆ์‹œํ”ผ! ๋ƒ‰์žฅ๊ณ  ๋š๋”ฑ์ด!


๐Ÿ”— ๋งํฌ


๐Ÿ—ฃ๏ธ ํ”„๋กœ์ ํŠธ ๋ฐœํ‘œ ์˜์ƒ & ๋ฐœํ‘œ ๋ฌธ์„œ

๐Ÿ—“๏ธ 2024.05.24 - 2024.06.21


๐Ÿงฐ ์‚ฌ์šฉ ์Šคํƒ

BE




ํ˜‘์—…


๐Ÿ‘ฅ ํŒ€ ๋™๋ฃŒ

FE


@woic-ej


@backdfb


@jjaeho0415

์ตœ์€์ง„(ํŒ€์žฅ) ๊น€ํšจ์ค‘ ์ •์žฌํ˜ธ

BE


@newbission


@suwon9729


@KangJeongHo1


@sub-blind

์œค์ค€๋ช…(ํŒ€์žฅ) ๊ฐ•์ˆ˜์› ๊ฐ•์ •ํ˜ธ ๊น€์žฌ์„ญ

๐Ÿ“‘ ํ”„๋กœ์ ํŠธ ๊ทœ์น™

Branch Strategy

  • main / dev / docs ๋ธŒ๋žœ์น˜ ๊ธฐ๋ณธ ์ƒ์„ฑ
  • main๊ณผ dev๋กœ ์ง์ ‘ push ์ œํ•œ
  • README, gitignore ๊ฐ™์€ ๋ฌธ์„œํŒŒ์ผ docs๋กœ push
  • PR ์ „ ์ตœ์†Œ 2์ธ ์ด์ƒ ์Šน์ธ ํ•„์ˆ˜

Progress

1. CLONE

ํŒ€ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๊ฐ์ž์˜ ๋กœ์ปฌ๋กœ ํด๋ก 

# 1. ๋ฐฑ์—”๋“œ ํŒ€์˜ ๊นƒํ—ˆ๋ธŒ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ํด๋ก 
# 1-1. โ—๏ธ์ฃผ์˜โ—๏ธ 'develop' ๋ธŒ๋žœ์น˜๋ฅผ ํด๋ก ํ•ด์•ผํ•จ
git clone -b develop "ํŒ€ ๊นƒํ—ˆ๋ธŒ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ฃผ์†Œ"

# ํด๋ก ์ด ์ƒ๊ฐ๋Œ€๋กœ ์ž˜ ๋˜์—ˆ๋Š”์ง€ ํ™•์ธ
# remote์˜ ์ด๋ฆ„์ด 'origin'์ธ์ง€, branch๊ฐ€ 'devlop'์ธ์ง€ ํ™•์ธ
$ git remote -v
> origin	https://github.com/newbission/๋ฆฌํฌ์ง€ํ† ๋ฆฌ์ด๋ฆ„.git (fetch)
> origin	https://github.com/newbission/๋ฆฌํฌ์ง€ํ† ๋ฆฌ์ด๋ฆ„.git (push)

$ git branch
> * develop
> (END)

2. PULL

ํ˜„์žฌ๊นŒ์ง€ ์ง„ํ–‰๋œ ๋‚ด์šฉ์„ ์›๊ฒฉ ์ €์žฅ์†Œ์—์„œ ๋กœ์ปฌ๋กœ ๊ฐ€์ ธ์˜ค๊ธฐ

# ํ˜„์žฌ ๋ธŒ๋žœ์น˜๊ฐ€ 'develop'์ธ์ง€ ํ™•์ธํ•˜๊ณ  ์•„๋‹ˆ๋ฉด 'develop'์œผ๋กœ ๋ธŒ๋žœ์น˜ ๋ณ€๊ฒฝ
$ git branch
> develop
> *feat-yjm-github-setting-#1
> (END)
$ git switch develop

# ํŒ€ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์˜ `develop`๋ธŒ๋žœ์น˜์˜ ์ตœ์‹  ๋‚ด์šฉ์„ `PULL`
$ git pull origin develop

๋ธŒ๋žœ์น˜ ์ƒ์„ฑ

๊ฐœ๋ฐœํ•  ๋‚ด์šฉ์— ๋งž๊ฒŒ ๋ธŒ๋žœ์น˜ ์ƒ์„ฑ

# 1. ํ˜„์žฌ ๋ธŒ๋žœ์น˜๊ฐ€ `develop`์ธ์ง€ ํ™•์ธ
$ git branch
> * develop

# ๋ธŒ๋žœ์น˜ ์ƒ์„ฑ
# git branch {ํƒ€์ž…}-{๊ฐœ๋ฐœ์ž}-{๊ฐœ๋ฐœ}-{๋‚ด์šฉ}-{์ด์Šˆ๋ฒˆํ˜ธ}
# git checkout -b {ํƒ€์ž…}-{๊ฐœ๋ฐœ์ž}-{๊ฐœ๋ฐœ}-{๋‚ด์šฉ}-{์ด์Šˆ๋ฒˆํ˜ธ}
$ git branch feat-yjm-github-setting-#1
$ git switch feat-yjm-github-setting-#1

or

$ git checkout -b feat-yjm-github-setting-#1

PUSH ๋ฐ ๋ธŒ๋žœ์น˜ ์ œ๊ฑฐ

์ž‘์—…๋‚ด์šฉ์„ PUSH ํ›„ PRํ•œ ๋’ค ๋ธŒ๋žœ์น˜ ์ œ๊ฑฐ

# 1. ์ž‘์—…๋‚ด์šฉ 'PUSH' ํ•˜๊ธฐ
$ git add .
# 1-1. git commit -m "{ํƒ€์ž…}: {์ปค๋ฐ‹ ๋‚ด์šฉ} ({์ด์Šˆ๋ฒˆํ˜ธ})"
$ git commit -m "Feat: github setting complete (#1)"
$ git push origin feat-yjm-github-setting-#1


# 2. PR์ด ์™„๋ฃŒ๋˜์–ด ๋ณ‘ํ•ฉ์ด ๋˜๋ฉด ์‚ฌ์šฉํ•œ branch ์‚ญ์ œ
# โ—๏ธ์ฃผ์˜โ—๏ธ ๋ณ‘ํ•ฉ์ด ๋˜๊ธฐ ์ „์— ์‚ญ์ œํ•˜์ง€ ๋ง๊ฒƒ
$ git switch develop # ๋ฐ˜๋“œ์‹œ ์‚ญ์ œํ•˜๋ ค๋Š” ๋ธŒ๋žœ์น˜์—์„œ ๋‚˜์™€์•ผํ•จ

# 2-1. ๋กœ์ปฌ ๋ธŒ๋žœ์น˜ ์‚ญ์ œ: 'D' ์˜ต์…˜ ์‚ฌ์šฉ
# git branch -D {๋ธŒ๋žœ์น˜๋ช…}
$ git branch -D feat-yjm-github-setting-#1

# 2-2. ์›๊ฒฉ ์ €์žฅ์†Œ(ํŒ€ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ) ๋ธŒ๋žœ์น˜ ์‚ญ์ œ: 'd' ์˜ต์…˜ ์‚ฌ์šฉ
# git push -d origin {๋ธŒ๋žœ์น˜๋ช…}
$ git push -d origin feat-yjm-github-setting-#1

Git Convention

  1. ์ ์ ˆํ•œ ์ปค๋ฐ‹ ์ ‘๋‘์‚ฌ ์ž‘์„ฑ
  2. ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ๋‚ด์šฉ ์ž‘์„ฑ
  3. ๋‚ด์šฉ ๋’ค์— ์ด์Šˆ (#์ด์Šˆ ๋ฒˆํ˜ธ)์™€ ๊ฐ™์ด ์ž‘์„ฑํ•˜์—ฌ ์ด์Šˆ ์—ฐ๊ฒฐ
์ ‘๋‘์‚ฌ ์„ค๋ช…
Feat : ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๊ตฌํ˜„
Add : ์—์…‹ ํŒŒ์ผ ์ถ”๊ฐ€
Fix : ๋ฒ„๊ทธ ์ˆ˜์ •
Docs : ๋ฌธ์„œ ์ถ”๊ฐ€ ๋ฐ ์ˆ˜์ •
Style : ์Šคํƒ€์ผ๋ง ์ž‘์—…
Refactor : ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง (๋™์ž‘ ๋ณ€๊ฒฝ ์—†์Œ)
Test : ํ…Œ์ŠคํŠธ
Deploy : ๋ฐฐํฌ
Conf : ๋นŒ๋“œ, ํ™˜๊ฒฝ ์„ค์ •
Chore : ๊ธฐํƒ€ ์ž‘์—…
$ git commit -m "Feat: ๋กœ๊ทธ์ธ API ๊ฐœ๋ฐœ ์™„๋ฃŒ (#์ด์Šˆ๋ฒˆํ˜ธ)"

Pull Request

Title

  • ์ œ๋ชฉ์€ '[Feat] ํ™ˆ ํŽ˜์ด์ง€ ๊ตฌํ˜„'๊ณผ ๊ฐ™์ด ์ž‘์„ฑํ•ฉ๋‹ˆ๋‹ค.

PR Type

  • FEAT: ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๊ตฌํ˜„
  • ADD : ์—์…‹ ํŒŒ์ผ ์ถ”๊ฐ€
  • FIX: ๋ฒ„๊ทธ ์ˆ˜์ •
  • DOCS: ๋ฌธ์„œ ์ถ”๊ฐ€ ๋ฐ ์ˆ˜์ •
  • STYLE: ํฌ๋งทํŒ… ๋ณ€๊ฒฝ
  • REFACTOR: ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง
  • TEST: ํ…Œ์ŠคํŠธ ๊ด€๋ จ
  • DEPLOY: ๋ฐฐํฌ ๊ด€๋ จ
  • CONF: ๋นŒ๋“œ, ํ™˜๊ฒฝ ์„ค์ •
  • CHORE: ๊ธฐํƒ€ ์ž‘์—…

Description

  • ๊ตฌ์ฒด์ ์ธ ์ž‘์—… ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
  • ์ด๋ฏธ์ง€๋ฅผ ๋ณ„๋„๋กœ ์ฒจ๋ถ€ํ•˜๋ฉด ๋” ์ข‹์Šต๋‹ˆ๋‹ค ๐Ÿ‘

Discussion

  • ์ถ”ํ›„ ๋…ผ์˜ํ•  ์ ์— ๋Œ€ํ•ด ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.

Code Convention

  • ์ตœ๋Œ€ํ•œ PEP8 ์ฐธ๊ณ 
  • ํŒจํ‚ค์ง€๋ช… ์ „์ฒด ์†Œ๋ฌธ์ž
  • ํด๋ž˜์Šค๋ช…, ์ธํ„ฐํŽ˜์ด์Šค๋ช… CamelCase
  • ํด๋ž˜์Šค ์ด๋ฆ„ ๋ช…์‚ฌ ์‚ฌ์šฉ
  • ์ƒ์ˆ˜๋ช… SNAKE_CASE
  • Controller, Service, Dto, Repository, mapper ์•ž์— ์ ‘๋ฏธ์‚ฌ๋กœ ํ†ต์ผ(ex. MemberController)
  • service ๊ณ„์ธต ๋ฉ”์„œ๋“œ๋ช… create, update, find, delete๋กœ CRUD ํ†ต์ผ(ex. createMember)
  • Test ํด๋ž˜์Šค๋Š” ์ ‘๋ฏธ์‚ฌ๋กœ Test ์‚ฌ์šฉ(ex. memberFindTest)

Communication Rules

  • ZEP, Discord ํ™œ์šฉ
  • ๋งค์ฃผ ์›”์š”์ผ ์ฃผ๊ฐ€ ์Šคํ”„๋ฆฐํŠธ
  • ๋งค์ผ ์˜ค์ • 10:30 ๋ฐ์ผ๋ฆฌ ์Šคํฌ๋Ÿผ
  • ๋งค์ฃผ ๊ธˆ์š”์ผ ์ฃผ๊ฐ„ ํšŒ๊ณ 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages