Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿš€ ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธฐ๋Šฅ #26

Closed
wants to merge 78 commits into from

Conversation

Sehee-Lee-01
Copy link
Member

@Sehee-Lee-01 Sehee-Lee-01 commented Dec 26, 2023

โœ… ์š”๊ตฌ์‚ฌํ•ญ(#15)

  • ๊ฒŒ์‹œ๊ธ€ ์ €์žฅ api ๊ฐœ๋ฐœ
  • ๊ฒŒ์‹œ๊ธ€ ๋‹จ๊ฑด ์กฐํšŒ api ๊ฐœ๋ฐœ
  • ๊ฒŒ์‹œ๊ธ€ ๋ชฉ๋ก ์กฐํšŒ api ๊ฐœ๋ฐœ
  • ๊ฒŒ์‹œ๊ธ€ ๊ธฐ๋Šฅ ๊ด€๋ จ Entity, Class ๊ฐœ๋ฐœ, ์—…๊ทธ๋ ˆ์ด๋“œ
    • com.backendoori.ootw.domain.weather ํŒจํ‚ค์ง€์— ์žˆ๋Š” ํด๋ž˜์Šค๋“ค
    • Post ์—”ํ‹ฐํ‹ฐ Weather(๋‚ ์”จ/๊ธฐ์˜จ ์ •๋ณด) ์ถ”๊ฐ€
  • ๊ฒŒ์‹œ๊ธ€ ๊ธฐ๋Šฅ ๊ด€๋ จ Dto ๊ฐœ๋ฐœ: com.backendoori.ootw.dto ํŒจํ‚ค์ง€์— ์žˆ์Šต๋‹ˆ๋‹ค!
  • ๊ฒŒ์‹œ๊ธ€ ๊ธฐ๋Šฅ ๊ด€๋ จ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ž‘์„ฑ

๐Ÿš€ ์ฃผ์š” ๋ณ€๊ฒฝ์‚ฌํ•ญ

๐Ÿ’ก ๊ธฐํƒ€์‚ฌํ•ญ

์ฃผ์˜ ์‚ฌํ•ญ

  • ํ˜„์žฌ๊นŒ์ง€ ๊ตฌํ˜„ํ•œ ๋ชจ๋“  ๊ธฐ๋Šฅ์€ build.gradle์—์„œ spring-boot-starter-security ์˜์กด์„ฑ์„ ์ฃผ์„์ฒ˜๋ฆฌํ•˜๊ณ  ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ํ†ตํ•ฉํ•˜๊ณ  ๋ฐ”๋กœ ์‹คํ–‰์‹œํ‚ค๋ฉด ์‚ฌ์šฉ์ž๊ฐ€ ์—†์–ด์„œ ์‹คํ–‰์ด ์ž˜ ์•ˆ๋ฉ๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž๋ฅผ ํ•˜๋‚˜ ์ˆ˜๋™์œผ๋กœ ์ถ”๊ฐ€ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค!

์ถ”ํ›„ ๋…ผ์˜ ์‚ฌํ•ญ

  • Dto <-> Entity ๋ณ€ํ™˜ ๋ฉ”์„œ๋“œ ์–ด๋””์— ๋†“์„์ง€ ์ƒ์˜
  • LocalDateTime ์ž๋ฆฟ์ˆ˜ ์—๋Ÿฌ ๋ฐœ์ƒ!
    • ํ˜„์žฌ ์ค‘์š”ํ•œ ๋ถ€๋ถ„์€ ์•„๋‹ˆ๋ผ์„œ ์šฐ์„  ํ•ด๋‹น ๋ถ€๋ถ„๋งŒ ์ฃผ์„ ์ฒ˜๋ฆฌ ํ–ˆ์Šต๋‹ˆ๋‹ค! ์ด ๋ถ€๋ถ„ ์ €๋ฒˆ ๊ณผ์ œ์ฒ˜๋Ÿผ ์–ด๋–ป๊ฒŒ ์ฒ˜๋ฆฌํ•  ์ง€ ๋…ผ์˜ํ•ด๋ณด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”!
    • hibernate ๊ฒƒ ์‚ฌ์šฉํ•˜๊ธฐ ๊ณ ๋ ค

์ถ”ํ›„ ํ•ด์•ผํ•  ์ผ

  • ์‚ฌ์šฉ์ž ์ธ์ฆ/์ธ๊ฐ€ ๋กœ์ง ์ ์šฉ
  • ์ฝ”๋“œ ํŒจํ‚ค์ง•, ๋ฆฌํŒฉํ† ๋ง
  • restdocs ์ ์šฉ

์ถ”ํ›„ ๋” ๊ฐœ์„ ํ•˜๊ณ  ์‹ถ์€ ์ 

  • ํ…Œ์ŠคํŠธ ์ฝ”๋“œ faker ์ ์šฉํ•˜๊ธฐ

์ตœ์ข… ํ…Œ์ŠคํŠธ ํ›„ ๊ฒฐ๊ณผ

  • Jacoco ๊ฒฐ๊ณผ
    image

  • ํ…Œ์ŠคํŠธ ์ปค๋ฒ„๋ฆฌ์ง€ ๊ฒฐ๊ณผ
    image

user๋„ ์กฐํšŒํ•˜๊ณ  post๋„ ์กฐํšŒํ•œ๋‹ค.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
1 participant