Skip to content

Server team repository of Runnect (Spring Boot)๐Ÿƒ๐Ÿปโ€โ™€๏ธ๐Ÿƒ๐Ÿปโ€โ™‚๏ธ๐Ÿƒ๐Ÿป

License

Notifications You must be signed in to change notification settings

Runnect/Runnect-Spring-Boot-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

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

Repository files navigation

Runnect-Spring-Boot-Server

์ ๊ณผ ์ ์œผ๋กœ, ์ฝ”์Šค์™€ ์ฝ”์Šค๋กœ ์—ฐ๊ฒฐ๋˜๋Š” ๋„ˆ์™€ ๋‚˜์˜ ๋Ÿฌ๋‹ ๊ฒฝํ—˜

ํ‘œ์ง€
A333



โ˜ ์„œ๋น„์Šค ํ•ต์‹ฌ ๊ธฐ๋Šฅ

1. ์ฝ”์Šค ๊ทธ๋ฆฌ๊ธฐ

์ฝ”์Šค ๊ทธ๋ฆฌ๊ธฐ๋กœ ๋‹ฌ๋ฆฌ๊ธฐ ์ „ ๋ชฉํ‘œ๋ฅผ ์„ค์ •ํ•˜๊ณ  ์‹ค์‹œ๊ฐ„ ํŠธ๋ž˜ํ‚น์œผ๋กœ ์ฝ”์Šค๋ฅด ๋”ฐ๋ผ ์ž˜ ๋‹ฌ๋ฆฌ๊ณ  ์žˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

2. ์ฝ”์Šค ๋ฐœ๊ฒฌ

์ฝ”์Šค ๋ฐœ๊ฒฌ์„ ํ†ตํ•ด ๋‚˜์—๊ฒŒ ๋งž๋Š” ์ฝ”์Šค๋ฅผ ์ถ”์ฒœ ๋ฐ›๊ฑฐ๋‚˜ ๋‹ค๋ฅธ ์œ ์ €๊ฐ€ ๊ณต์œ ํ•œ ์ฝ”์Šค๋ฅผ ๊ฒ€์ƒ‰ํ•˜๊ณ  ์Šคํฌ๋žฉํ•ฉ๋‹ˆ๋‹ค. ์ฝ”์Šค๋ฅผ ์ง์ ‘ ์—…๋กœ๋“œํ•  ์ˆ˜ ๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

3. ์ฝ”์Šค ๋ณด๊ด€ํ•จ

์ฝ”์Šค ๋ณด๊ด€ํ•จ์—์„œ ๋‚ด๊ฐ€ ๊ทธ๋ฆฐ ์ฝ”์Šค์™€ ์Šคํฌ๋žฉ ์ฝ”์Šค๋ฅผ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

4. ๋งˆ์ดํŽ˜์ด์ง€

๋งˆ์ดํŽ˜์ด์ง€์—์„œ ํ”„๋กœํ•„๊ณผ ํ™œ๋™ ๊ธฐ๋ก, ์—…๋กœ๋“œํ•œ ์ฝ”์Šค๋ฅผ ํ™•์ธํ•˜๊ณ  ๋ชฉํ‘œ ๋ณด์ƒ์œผ๋กœ ๋™๊ธฐ๋ฅผ ๊ฐ•ํ™”ํ•ฉ๋‹ˆ๋‹ค.



๐Ÿง‘โ€๐Ÿ”ง Tech Stack

Backend

JWT

DB

CI/CD

Deploy

Develop Tool

Communicate Tool





๐Ÿ  server architecture

image



๐Ÿ’ฝย DB ERD

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-26 แ„‹แ…ฉแ„’แ…ฎ 1 15 33

๐Ÿ“„ API(+ Non - API) Docs

แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-04-05 แ„‹แ…ฉแ„’แ…ฎ 6 35 31 แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-04-05 แ„‹แ…ฉแ„’แ…ฎ 6 36 54 แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-04-05 แ„‹แ…ฉแ„’แ…ฎ 6 36 14

๐Ÿ™†โ€โ™€๏ธ ์—ญํ• ๋ถ„๋‹ด

๋‹ด๋‹น์ž ๋‹ด๋‹น ๋‚ด์šฉ
์œ ์ˆ˜ํ™” EC2, publicCourse & stamp ๊ด€๋ จ api, ์ธํ”„๋ผ ๊ตฌ์ถ•
์ „์„ ํฌ RDS, course & user ๊ด€๋ จ api, ์ธํ”„๋ผ ๊ตฌ์ถ•
๋ฐ•์ˆ˜๋ฆฐ S3, record & scrap ๊ด€๋ จ api, ์ธํ”„๋ผ ๊ตฌ์ถ•


๐Ÿ—ฃ๏ธ๏ธ ์ปจ๋ฒค์…˜

๐Ÿ’ก ๋™๋ฃŒ๋“ค๊ณผ ๋งํˆฌ๋ฅผ ํ†ต์ผํ•˜๊ธฐ ์œ„ํ•ด ์ปจ๋ฒค์…˜์„ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. ์˜คํ•ฉ์ง€์กธ์˜ ์ฝ”๋“œ๊ฐ€ ์•„๋‹Œ, ํ•œ ์‚ฌ๋žŒ์ด ์ง  ๊ฒƒ๊ฐ™์€ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๊ฒƒ์ด ์ถ”ํ›„ ์œ ์ง€๋ณด์ˆ˜๋‚˜ ํ˜‘์—…์—์„œ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค. ๋‚ด๊ฐ€ ์ฝ”๋“œ๋ฅผ ์ƒ๊ฐํ•˜๋ฉด์„œ ์งค ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” ๋ฃฐ์ด๋ผ๊ณ  ์ƒ๊ฐํ•ด๋„ ์ข‹์Šต๋‹ˆ๋‹ค!

๐Ÿ‘ฉโ€๐Ÿ’ปย Coding Conventions

๋ช…๋ช…๊ทœ์น™(Naming Conventions)
  1. ์ด๋ฆ„์œผ๋กœ๋ถ€ํ„ฐ ์˜๋„๊ฐ€ ์ฝํ˜€์งˆ ์ˆ˜ ์žˆ๊ฒŒ ์“ด๋‹ค.

  2. ๋‹จ์ˆ˜๋ฅผ ๊ธฐ๋ณธํ˜•์œผ๋กœ ํ•œ๋‹ค.

    • ๊ธฐ๋Šฅ ์ž์ฒด์—์„œ ๋‹จ์ˆ˜, ๋ณต์ˆ˜๋ฅผ ๊ตฌ๋ถ„ํ•˜๋Š” ๊ฒฝ์šฐ์—๋งŒ ๋ณต์ˆ˜ ์‚ฌ์šฉ ex. ๋‹ค์ค‘์‚ญ์ œ, ๋‹จ์ผ์‚ญ์ œ
  3. DB์˜ ํ…Œ์ด๋ธ”, ํด๋ž˜์Šค์—๋Š” PascalCase๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.

  4. ๋ณ€์ˆ˜, ๋ฉ”์†Œ๋“œ์—๋Š” camelCase๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.

  5. DB์˜ ํ…Œ์ด๋ธ”์˜ ์นผ๋Ÿผ์—๋Š” snake_case๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.

  6. ์ƒ์ˆ˜, enum์—๋Š” UPPER_SNAKE_CASE๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.

  7. ๋ฉ”์†Œ๋“œ๋Š” crud + http method(๋™์‚ฌ) + ๋ช…์‚ฌ ํ˜•ํƒœ๋กœ ์ž‘์„ฑํ•œ๋‹ค.

    • c : ex. createUser
    • r : ex. getUser
    • u : ex. updateUser
    • d : ex. deleteUser
  8. ์•ฝ์–ด ์‚ฌ์šฉ์€ ์ตœ๋Œ€ํ•œ ์ง€์–‘ํ•œ๋‹ค.

  9. ์ด๋ฆ„์— ๋„ค ๋‹จ์–ด ์ด์ƒ์ด ๋“ค์–ด๊ฐ€๋ฉด ํŒ€์›๊ณผ ์ƒ์˜๋ฅผ ๊ฑฐ์นœ ํ›„ ์‚ฌ์šฉํ•œ๋‹ค.

์ฃผ์„(Comment)
  1. ํ•ด๋‹น ๋ฉ”์†Œ๋“œ๊ฐ€ ์–ด๋””์— ์“ฐ์ด๋Š”์ง€ ์„ค๋ช…ํ•œ๋‹ค.

  2. ํ•ด๋‹น ๋ถ„๊ธฐ๋ฌธ์ด ์–ด๋–ค ๋ถ„๊ธฐ์ธ์ง€ ์„ค๋ช…ํ•œ๋‹ค.

  3. ๋ฐ˜๋ณต๋ฌธ์—์„œ ์–ด๋–ค ์กฐ๊ฑด์—์„œ ๋ฐ˜๋ณต๋˜๋Š”์ง€ ์„ค๋ช…ํ•œ๋‹ค.

  4. ์ •๋ ฌํ•˜๊ณ  ํ•„ํ„ฐ๋งํ• ๋•Œ ์–ด๋–ค ์กฐ๊ฑด์˜ ์ •๋ ฌ๊ณผ ํ•„ํ„ฐ๋ง์ธ์ง€ ์„ค๋ช…ํ•œ๋‹ค.



๐ŸŒณ Branch

๐ŸŒฑ git branch ์ „๋žต

main branch : ์šด์˜ ์„œ๋ฒ„ ๋ฐฐํฌ ๋‹จ์œ„ branch

dev branch : ์ฃผ์š” ๊ฐœ๋ฐœ branch, main merge ์ „ ๊ฑฐ์น˜๋Š” branch, test ์„œ๋ฒ„๋กœ ๋ฐฐํฌ๋˜๋Š” branch

feat branch: ๊ฐ์ž ๊ฐœ๋ฐœ branch

  • ํ•  ์ผ issue ๋“ฑ๋ก ํ›„ issue ๋ฒˆํ˜ธ์™€ isuue ์ด๋ฆ„์œผ๋กœ branch ์ƒ์„ฑ ํ›„ ์ž‘์—…
    • ex) feat/#issue num-isuue name(๊ธฐ๋Šฅ์š”์•ฝ)
  • ํ•ด๋‹น branch ์ž‘์—… ์™„๋ฃŒ ํ›„ PR ๋ณด๋‚ด๊ธฐ
    • ํ•ญ์ƒ local์—์„œ ์ถฉ๋Œ ํ•ด๊ฒฐ ํ›„ โ†’ remote์— ์˜ฌ๋ฆฌ๊ธฐ
    • reviewer์— ์„œ๋กœ tagํ›„ code-review
    • comment ์ „ merge ๋ถˆ๊ฐ€!
    • review๋ฐ˜์˜ ํ›„, ๋ณธ์ธ์ด merge.

branch ๊ตฌ์กฐ

- main
- dev
- feat
   โ”œโ”€โ”€ #1-isuue name1
   โ””โ”€โ”€ #2-isuue name2


๐Ÿงต Commit Convention

๐Ÿ“ git commit message convention

ex) feat(๋ณ€๊ฒฝํ•œ ํŒŒ์ผ) : ๋ณ€๊ฒฝ ๋‚ด์šฉ (/#issue num)

- โœจ feat:      ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๊ตฌํ˜„
- ๐Ÿ› fix:       ๋ฒ„๊ทธ, ์˜ค๋ฅ˜ ํ•ด๊ฒฐ
- ๐Ÿงน chore:     src ๋˜๋Š” test ํŒŒ์ผ์„ ์ˆ˜์ •ํ•˜์ง€ ์•Š๋Š” ๊ธฐํƒ€ ๋ณ€๊ฒฝ ์‚ฌํ•ญ ( ์ƒˆ๋กœ์šด ํŒŒ์ผ ์ƒ์„ฑ, ํŒŒ์ผ ์ด๋™, ์ด๋ฆ„ ๋ณ€๊ฒฝ ๋“ฑ )
- โ™ป๏ธ refactor:  ๋ฒ„๊ทธ ์ˆ˜์ •์ด๋‚˜ ๊ธฐ๋Šฅ ์ถ”๊ฐ€๊ฐ€ ์—†๋Š” ์ฝ”๋“œ ๋ณ€๊ฒฝ ( ์ฝ”๋“œ ๊ตฌ์กฐ ๋ณ€๊ฒฝ ๋“ฑ์˜ ๋ฆฌํŒฉํ† ๋ง )
- ๐Ÿ’Ž style:     ์ฝ”๋“œ์˜ ์˜๋ฏธ์— ์˜ํ–ฅ์„ ๋ฏธ์น˜์ง€ ์•Š๋Š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ ( ์ฝ”๋“œ ํ˜•์‹, ์„ธ๋ฏธ์ฝœ๋ก  ์ถ”๊ฐ€: ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์— ๋ณ€๊ฒฝ ์—†์Œ )
- ๐Ÿ—๏ธ build:    ๋นŒ๋“œ ์‹œ์Šคํ…œ ๋˜๋Š” ์™ธ๋ถ€์— ์˜ํ–ฅ์„ ๋ฏธ์น˜๋Š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ ์ข…์†์„ฑ ( ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ถ”๊ฐ€ ๋“ฑ )
- ๐Ÿ“ˆ perf:      ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ ์‹œํ‚ค๊ธฐ ์œ„ํ•œ ์ฝ”๋“œ ๋ณ€๊ฒฝ
- ๐Ÿงช test:      ํ…Œ์ŠคํŠธ ์ถ”๊ฐ€ ๋˜๋Š” ์ด์ „ ํ…Œ์ŠคํŠธ ์ˆ˜์ •
- ๐Ÿ“ docs:      README๋‚˜ WIKI ๋“ฑ์˜ ๋ฌธ์„œ ๊ฐœ์ •
- โช๏ธ revert:    ์ด์ „ ์ปค๋ฐ‹์„ ๋˜๋Œ๋ฆฌ๋Š” ๊ฒฝ์šฐ
- ๐Ÿ“ฆ ci:      CI ๊ตฌ์„ฑ ํŒŒ์ผ ๋ฐ ์Šคํฌ๋ฆฝํŠธ ๋ณ€๊ฒฝ
- Merge: ๋‹ค๋ฅธ๋ธŒ๋ Œ์น˜๋ฅผ mergeํ•˜๋Š” ๊ฒฝ์šฐ
- Init : Initial commit์„ ํ•˜๋Š” ๊ฒฝ์šฐ

About

Server team repository of Runnect (Spring Boot)๐Ÿƒ๐Ÿปโ€โ™€๏ธ๐Ÿƒ๐Ÿปโ€โ™‚๏ธ๐Ÿƒ๐Ÿป

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •