diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8af972c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +/gradlew text eol=lf +*.bat text eol=crlf +*.jar binary diff --git a/.github/ISSUE_TEMPLATE/bug-fix.yml b/.github/ISSUE_TEMPLATE/bug-fix.yml new file mode 100644 index 0000000..441b419 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-fix.yml @@ -0,0 +1,60 @@ +name: Bug Fix ๐Ÿ› ๏ธ +description: ์ˆ˜์ •ํ•œ ๋ฒ„๊ทธ์— ๋Œ€ํ•œ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•  ๋•Œ ์‚ฌ์šฉํ•˜์„ธ์š”. +title: "[FIX] ์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”" +labels: ["bug fix"] + +body: + - type: markdown + attributes: + value: | + ## ๐Ÿ› ๏ธ ๋ฒ„๊ทธ ์ˆ˜์ • ๋‚ด์—ญ + ์ˆ˜์ •ํ•œ ๋ฒ„๊ทธ์™€ ๊ด€๋ จ๋œ ์ƒ์„ธ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. + + - type: input + id: bug-summary + attributes: + label: ๐Ÿž ๋ฒ„๊ทธ ์š”์•ฝ + description: "์ˆ˜์ •ํ•œ ๋ฒ„๊ทธ๋ฅผ ๊ฐ„๋‹จํžˆ ์š”์•ฝํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ๋กœ๊ทธ์ธ ์‹œ 500 ์˜ค๋ฅ˜ ๋ฐœ์ƒ ๋ฌธ์ œ ์ˆ˜์ •" + + - type: textarea + id: root-cause + attributes: + label: ๐Ÿ” ์›์ธ ๋ถ„์„ + description: "ํ•ด๋‹น ๋ฒ„๊ทธ์˜ ๊ทผ๋ณธ ์›์ธ์ด ๋ฌด์—‡์ธ์ง€ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”." + placeholder: | + ์˜ˆ: + - NullPointerException์ด ๋ฐœ์ƒํ•˜์—ฌ 500 ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒ + - ๋กœ๊ทธ์ธ ์š”์ฒญ ์‹œ ์‚ฌ์šฉ์ž ๋ฐ์ดํ„ฐ๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๋ฐ˜ํ™˜๋˜์ง€ ์•Š์Œ + validations: + required: false + + - type: textarea + id: fix-details + attributes: + label: โœ”๏ธ ์ˆ˜์ • ๋‚ด์šฉ + description: "ํ•ด๋‹น ๋ฒ„๊ทธ๋ฅผ ์–ด๋–ป๊ฒŒ ์ˆ˜์ •ํ–ˆ๋Š”์ง€ ๊ตฌ์ฒด์ ์œผ๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: | + ์˜ˆ: + - ๋กœ๊ทธ์ธ API์˜ NullPointerException์„ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ์ถ”๊ฐ€ + - ์‚ฌ์šฉ์ž ๋ฐ์ดํ„ฐ๊ฐ€ ๋น„์–ด ์žˆ๋Š” ๊ฒฝ์šฐ ๊ธฐ๋ณธ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜๋„๋ก ์ˆ˜์ • + validations: + required: false + + - type: textarea + id: impact + attributes: + label: ๐Ÿ” ์˜ํ–ฅ์„ ์ค€ ๋ถ€๋ถ„ + description: "์ด๋ฒˆ ์ˆ˜์ •์ด ์˜ํ–ฅ์„ ์ค„ ์ˆ˜ ์žˆ๋Š” ์ฝ”๋“œ๋‚˜ ์‹œ์Šคํ…œ ๋ถ€๋ถ„์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”." + placeholder: | + ์˜ˆ: + - AuthService ์ˆ˜์ • + - ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€ UI์—์„œ ์ƒˆ๋กœ์šด ์—๋Ÿฌ ๋ฉ”์‹œ์ง€ ์ถ”๊ฐ€ + - Redis ์„ธ์…˜ ์บ์‹œ ๊ด€๋ จ ๊ธฐ๋Šฅ ํ™•์ธ + + - type: input + id: additional-context + attributes: + label: ๐Ÿ“Œ ์ฐธ๊ณ  ์‚ฌํ•ญ + description: "์ˆ˜์ •๊ณผ ๊ด€๋ จ๋œ ์ถ”๊ฐ€ ์ •๋ณด๋‚˜ ์ฐธ๊ณ ํ•  ๋งŒํ•œ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ํ•ด๋‹น ์ˆ˜์ •์ด Frontend ํŒ€๊ณผ์˜ ํ˜‘์˜๊ฐ€ ํ•„์š”ํ•จ" \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..8fd8cdc --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,73 @@ +name: Bug Report ๐Ÿž +description: ๋ฐœ๊ฒฌํ•œ ๋ฒ„๊ทธ๋‚˜ ๋ฌธ์ œ๋ฅผ ๋ณด๊ณ ํ•  ๋•Œ ์‚ฌ์šฉํ•˜์„ธ์š”. +title: "[BUG] ์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”" +labels: ["bug"] + +body: + - type: markdown + attributes: + value: | + ## ๐Ÿž ๋ฒ„๊ทธ ๋ณด๊ณ  ์•ˆ๋‚ด + ๋ฐœ๊ฒฌํ•œ ๋ฒ„๊ทธ๋‚˜ ๋ฌธ์ œ๋ฅผ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. + + - type: input + id: bug-summary + attributes: + label: ๐Ÿ“ ๋ฒ„๊ทธ ์š”์•ฝ + description: "๋ฐœ์ƒํ•œ ๋ฒ„๊ทธ๋ฅผ ๊ฐ„๋‹จํžˆ ์š”์•ฝํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ๋กœ๊ทธ์ธ ์‹œ 500 ์˜ค๋ฅ˜ ๋ฐœ์ƒ" + + - type: textarea + id: steps-to-reproduce + attributes: + label: ๐Ÿ”„ ์žฌํ˜„ ๋ฐฉ๋ฒ• + description: "๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๋‹จ๊ณ„๋ฅผ ์ˆœ์„œ๋Œ€๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: | + 1. ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค. + 2. ์‚ฌ์šฉ์ž ์ด๋ฆ„๊ณผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค. + 3. ๋กœ๊ทธ์ธ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค. + 4. 500 ์˜ค๋ฅ˜ ๋ฉ”์‹œ์ง€๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค. + + + - type: textarea + id: expected-behavior + attributes: + label: โœ”๏ธ ์˜ˆ์ƒ ๋™์ž‘ + description: "์ •์ƒ์ ์œผ๋กœ ๋™์ž‘ํ–ˆ์„ ๊ฒฝ์šฐ์˜ ๊ธฐ๋Œ€ ๊ฒฐ๊ณผ๋ฅผ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ์‚ฌ์šฉ์ž๊ฐ€ ๋Œ€์‹œ๋ณด๋“œ๋กœ ์ด๋™ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค." + + + - type: textarea + id: actual-behavior + attributes: + label: โŒ ์‹ค์ œ ๋™์ž‘ + description: "์‹ค์ œ๋กœ ๋ฐœ์ƒํ•œ ๊ฒฐ๊ณผ๋ฅผ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ์„œ๋ฒ„์—์„œ 500 ๋‚ด๋ถ€ ์„œ๋ฒ„ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค." + + + - type: textarea + id: environment + attributes: + label: ๐ŸŒ ํ™˜๊ฒฝ + description: "๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ ํ™˜๊ฒฝ์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š” (์šด์˜ ์ฒด์ œ, ๋ธŒ๋ผ์šฐ์ €, ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „ ๋“ฑ)." + placeholder: | + - ์šด์˜ ์ฒด์ œ: Windows 10 + - ๋ธŒ๋ผ์šฐ์ €: Chrome 95 + - ๋ฐฑ์—”๋“œ: Spring Boot 2.5.4 + - ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค: MySQL 8.0 + + + - type: textarea + id: logs + attributes: + label: ๐Ÿพ ๊ด€๋ จ ๋กœ๊ทธ + description: "๊ด€๋ จ๋œ ๋กœ๊ทธ๋‚˜ ์—๋Ÿฌ ๋ฉ”์‹œ์ง€๊ฐ€ ์žˆ์œผ๋ฉด ์ถ”๊ฐ€ํ•ด์ฃผ์„ธ์š”." + placeholder: "๋กœ๊ทธ ๋ฉ”์‹œ์ง€๋ฅผ ์—ฌ๊ธฐ์— ๋ถ™์—ฌ๋„ฃ์–ด ์ฃผ์„ธ์š”." + render: shell + + - type: input + id: additional-context + attributes: + label: ๐Ÿ“Œ ์ฐธ๊ณ  ์‚ฌํ•ญ + description: "๋ฒ„๊ทธ์™€ ๊ด€๋ จ๋œ ์ถ”๊ฐ€ ์ •๋ณด๋‚˜ ์ฐธ๊ณ ํ•  ๋งŒํ•œ ๋‚ด์šฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ๋‹ค๋ฅธ ํŽ˜์ด์ง€์—์„œ๋Š” ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature-develop.yml b/.github/ISSUE_TEMPLATE/feature-develop.yml new file mode 100644 index 0000000..77f19d2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-develop.yml @@ -0,0 +1,72 @@ +name: Feature Development ๐Ÿš€ +description: ๊ฐœ๋ฐœํ•  ๊ธฐ๋Šฅ์„ ์ •๋ฆฌํ•  ๋•Œ ์‚ฌ์šฉํ•˜์„ธ์š”. +title: "[FEAT] ์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”" +labels: ["feature"] + +body: + - type: markdown + attributes: + value: | + ## ๐Ÿ“ ๊ธฐ๋Šฅ ๊ฐœ๋ฐœ ๊ณ„ํš + ๊ฐœ๋ฐœํ•  ๊ธฐ๋Šฅ์— ๋Œ€ํ•ด ์•„๋ž˜ ํ•ญ๋ชฉ์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. ํ•„์š”ํ•œ ๊ฒฝ์šฐ ๊ด€๋ จ ํŒ€์›๊ณผ ๋…ผ์˜ ์‚ฌํ•ญ์„ ์ •๋ฆฌํ•ด ์ฃผ์„ธ์š”. + + --- + + - type: input + id: feature-summary + attributes: + label: โœ๏ธ ๊ธฐ๋Šฅ ์š”์•ฝ + description: "๊ฐœ๋ฐœํ•  ๊ธฐ๋Šฅ์„ ๊ฐ„๋‹จํžˆ ์š”์•ฝํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: JWT ์ธ์ฆ ํ† ํฐ ๊ฐฑ์‹  ๊ธฐ๋Šฅ ๊ตฌํ˜„" + + - type: markdown + attributes: + value: | + --- + + - type: textarea + id: development-purpose + attributes: + label: ๐ŸŽฏ ๊ฐœ๋ฐœ ๋ชฉ์  + description: "์ด ๊ธฐ๋Šฅ์„ ๊ฐœ๋ฐœํ•˜๋ ค๋Š” ์ด์œ ๋‚˜ ํ•ด๊ฒฐํ•˜๋ ค๋Š” ๋ฌธ์ œ๋ฅผ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ๊ธฐ์กด ํ† ํฐ ๋งŒ๋ฃŒ ์‹œ ์žฌ๋กœ๊ทธ์ธํ•ด์•ผ ํ•˜๋Š” ๋ถˆํŽธํ•จ์„ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค." + validations: + required: true + + - type: markdown + attributes: + value: | + --- + + - type: textarea + id: implementation-plan + attributes: + label: ๐Ÿ’ก ๊ตฌํ˜„ ๊ณ„ํš + description: "์ด ๊ธฐ๋Šฅ์„ ์–ด๋–ป๊ฒŒ ๊ฐœ๋ฐœํ• ์ง€ ๊ตฌ์ฒด์ ์ธ ๊ณ„ํš์„ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ๋ฆฌํ”„๋ ˆ์‹œ ํ† ํฐ์„ ์‚ฌ์šฉํ•ด ๋งŒ๋ฃŒ๋œ JWT๋ฅผ ๊ฐฑ์‹ ํ•˜๋Š” API ๊ฐœ๋ฐœ" + validations: + required: true + + - type: markdown + attributes: + value: | + --- + + - type: textarea + id: potential-impact + attributes: + label: ๐Ÿ” ์˜ˆ์ƒ ์˜ํ–ฅ ๋ฒ”์œ„ + description: "์ด ๊ธฐ๋Šฅ ๊ฐœ๋ฐœ์ด ์˜ํ–ฅ์„ ์ค„ ์ˆ˜ ์žˆ๋Š” ๋‹ค๋ฅธ ์„œ๋น„์Šค, ๋ชจ๋“ˆ, ๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ๋‚˜์—ดํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: AuthService, User ์—”ํ‹ฐํ‹ฐ, Redis ์บ์‹œ" + + - type: markdown + attributes: + value: | + --- + + - type: input + id: additional-notes + attributes: + label: ๐Ÿ“Œ ์ฐธ๊ณ  ์‚ฌํ•ญ + description: "์ถ”๊ฐ€์ ์ธ ์„ค๋ช…์ด๋‚˜ ๋…ผ์˜๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„์ด ์žˆ์œผ๋ฉด ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ๊ด€๋ จ๋œ ํ”„๋ก ํŠธ์—”๋“œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ๋„ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/improvement.yml b/.github/ISSUE_TEMPLATE/improvement.yml new file mode 100644 index 0000000..26a90d7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/improvement.yml @@ -0,0 +1,41 @@ +name: Improvement ๐Ÿ”๏ธ +description: ๊ธฐ์กด ๊ธฐ๋Šฅ์„ ๊ฐœ์„ ํ•˜๊ฑฐ๋‚˜ ์ตœ์ ํ™”ํ•  ๋•Œ ์‚ฌ์šฉํ•˜์„ธ์š”. +title: "[IMPROVE] ์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”" +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + ## ๐Ÿš€ ๊ธฐ๋Šฅ ๊ฐœ์„  ์š”์•ฝ + ๊ฐœ์„ ํ•˜๊ณ ์ž ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๊ฐ„๋‹จํžˆ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”. + + - type: textarea + id: improvement-summary + attributes: + label: โœ๏ธ ๊ฐœ์„  ๋‚ด์šฉ ์š”์•ฝ + description: "๊ฐœ์„ ํ•˜๋ ค๋Š” ๊ธฐ๋Šฅ์˜ ๋‚ด์šฉ์„ ๊ฐ„๋‹จํžˆ ์š”์•ฝํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ํŽ˜์ด์ง€ ๋กœ๋”ฉ ์†๋„ ์ตœ์ ํ™”" + + - type: textarea + id: reason-for-improvement + attributes: + label: ๐Ÿ” ๊ฐœ์„  ์ด์œ  + description: "์ด ๊ธฐ๋Šฅ์„ ๊ฐœ์„ ํ•˜๋ ค๋Š” ์ด์œ ๋ฅผ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. (์˜ˆ: ์„ฑ๋Šฅ ์ตœ์ ํ™”, ์‚ฌ์šฉ์ž ๊ฒฝํ—˜ ํ–ฅ์ƒ)" + placeholder: "์˜ˆ: ํ˜„์žฌ ๋กœ๋”ฉ ์†๋„๊ฐ€ ๋А๋ ค ์‚ฌ์šฉ์ž ๋ถˆ๋งŒ์ด ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค." + + - type: textarea + id: improvement-details + attributes: + label: ๐Ÿ› ๏ธ ๊ฐœ์„  ์ž‘์—… ์ƒ์„ธ ๋‚ด์šฉ + description: "๊ฐœ์„ ํ•  ์ž‘์—…์˜ ๊ตฌ์ฒด์ ์ธ ๋‚ด์šฉ์„ ๋‚˜์—ดํ•ด์ฃผ์„ธ์š”." + placeholder: | + - [ ] ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง + - [ ] ์บ์‹ฑ ๋กœ์ง ์ถ”๊ฐ€ + - [ ] ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ฟผ๋ฆฌ ์ตœ์ ํ™” + + - type: textarea + id: expected-results + attributes: + label: ๐Ÿ“ˆ ์˜ˆ์ƒ ๊ฒฐ๊ณผ + description: "๊ฐœ์„  ํ›„ ๊ธฐ๋Œ€๋˜๋Š” ๊ฒฐ๊ณผ๋ฅผ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”." + placeholder: "์˜ˆ: ํŽ˜์ด์ง€ ๋กœ๋”ฉ ์†๋„๊ฐ€ 20% ๋นจ๋ผ์งˆ ๊ฒƒ์œผ๋กœ ์˜ˆ์ƒ๋ฉ๋‹ˆ๋‹ค." \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..bdcc6b0 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,26 @@ +## ๐Ÿ“Œ ๋ชฉ์  +> ์ด PR์ด ํ•ด๊ฒฐํ•˜๋ ค๋Š” ๋ฌธ์ œ๋‚˜ ์ถ”๊ฐ€ํ•˜๋ ค๋Š” ๊ธฐ๋Šฅ์˜ ๋ชฉ์ ์„ ๊ฐ„๋‹จํžˆ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”. + +## ๐Ÿ› ๏ธ ์ž‘์—… ์ƒ์„ธ ๋‚ด์šฉ +> ์ž‘์—…ํ•œ ๋‚ด์šฉ์— ๋Œ€ํ•œ ์„ค๋ช…์„ ์ฒดํฌ๋ฆฌ์ŠคํŠธ ํ˜•์‹์œผ๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. +- [ ] ์˜ˆ: ์ƒˆ๋กœ์šด ์ธ์ฆ API ์ถ”๊ฐ€ + +## ๐Ÿ” ๋ณ€๊ฒฝ ์‚ฌํ•ญ +> ์ฝ”๋“œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ์š”์•ฝํ•˜๊ณ  ์ค‘์š”ํ•œ ๋ถ€๋ถ„์„ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”. +- ์˜ˆ: `UserService` ํด๋ž˜์Šค์— ์ƒˆ๋กœ์šด ๋ฉ”์„œ๋“œ ์ถ”๊ฐ€ + +## โœ… ํ…Œ์ŠคํŠธ ๋ฐฉ๋ฒ• +> ๋ณ€๊ฒฝ๋œ ์ฝ”๋“œ๊ฐ€ ์–ด๋–ป๊ฒŒ ํ…Œ์ŠคํŠธ๋˜์—ˆ๋Š”์ง€ ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”. +1. [ ] ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค ์ž‘์„ฑ +2. [ ] ๋กœ์ปฌ ํ™˜๊ฒฝ์—์„œ ์ง์ ‘ ํ…Œ์ŠคํŠธ +3. [ ] ๊ธฐํƒ€: + +## โš ๏ธ ์ฃผ์˜ ์‚ฌํ•ญ +> ์ฝ”๋“œ ๋ณ€๊ฒฝ ์‹œ ๊ณ ๋ คํ•ด์•ผ ํ•  ์ ์ด๋‚˜ ๋ฆฌ๋ทฐ์–ด๊ฐ€ ์ฃผ์˜ํ•ด์•ผ ํ•  ์ ์ด ์žˆ์œผ๋ฉด ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. + +## ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท (์„ ํƒ ์‚ฌํ•ญ) +> ๋ณ€๊ฒฝ๋œ ๊ธฐ๋Šฅ์ด ์žˆ์œผ๋ฉด ์Šคํฌ๋ฆฐ์ƒท์ด๋‚˜ ๋™์˜์ƒ์„ ์ถ”๊ฐ€ํ•ด์ฃผ์„ธ์š”. + +## ๐Ÿ”— ์ฐธ๊ณ  ์‚ฌํ•ญ +> ๊ด€๋ จ๋œ ์ด์Šˆ ๋ฒˆํ˜ธ๋ฅผ ์–ธ๊ธ‰ํ•ด์ฃผ์„ธ์š”. ์ถ”๊ฐ€ ์ฐธ๊ณ ํ•  ๋งŒํ•œ ์ž๋ฃŒ๋‚˜ ๋งํฌ๊ฐ€ ์žˆ์œผ๋ฉด ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”. +- Closes # \ No newline at end of file diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..a9ffd73 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,45 @@ +name: Pull Request Build Test + +on: + pull_request: + types: + - opened + - synchronize + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checkout the repository + - name: Checkout code + uses: actions/checkout@v4.2.2 + + # Set up JDK 21 + - name: Set up JDK 21 + uses: actions/setup-java@v4.7.0 + with: + java-version: '21' + distribution: 'temurin' + + # Cache Gradle dependencies + - name: Cache Gradle dependencies + uses: actions/cache@v4.2.1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + # Grant execute permission for Gradle wrapper + - name: Make Gradle wrapper executable + run: chmod +x ./gradlew + + - name: Check Java and Gradle version + run: | + java -version + ./gradlew --version + + # Build project + - name: Build Project + run: ./gradlew clean assemble -x test \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..72265e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +# =================================== +# Build & Dependencies +# =================================== +.gradle +build/ +out/ +*.jar +*.war +*.ear + +# =================================== +# IDE +# =================================== +# IntelliJ +.idea/ + +# VS Code +.vscode/ + +# =================================== +# Runtime & Logs +# =================================== +*.log +*.pid +*.seed +dump.rdb + +# JVM Crash Dumps +hs_err_pid* +replay_pid* + +# =================================== +# Secrets & Environment +# =================================== +application-secret.yml +*.env + +# =================================== +# Generated Code +# =================================== +# MapStruct ๋“ฑ ์ฝ”๋“œ ์ƒ์„ฑ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๊ฒฐ๊ณผ๋ฌผ +**/generated/ + +# =================================== +# OS Specific +# =================================== +# macOS +.DS_Store +._* +.Spotlight-V100 +.Trashes + +# Windows +Thumbs.db +ehthumbs.db +Desktop.ini +$RECYCLE.BIN/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a56510 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ + +# ๋นŒ๋“œ ๋‹จ๊ณ„ +FROM gradle:8.8-jdk21 AS builder +WORKDIR /app +COPY build.gradle settings.gradle ./ +COPY src src +RUN gradle clean build -x test + +# ์‹คํ–‰ ๋‹จ๊ณ„ +FROM eclipse-temurin:21-alpine AS runner +WORKDIR /app +COPY --from=builder /app/build/libs/*.jar Gitdeun.jar +RUN mkdir -p /app/logs + +# ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์„ ์–ธ (๊ธฐ๋ณธ๊ฐ’) +ENV JAVA_OPTS="" + +# ํฌํŠธ ์„ค์ • +EXPOSE 8080 + +# ์‹คํ–‰ ๋ช…๋ น์—์„œ JAVA_OPTS ์‚ฌ์šฉ +CMD ["sh", "-c", "java $JAVA_OPTS -jar Gitdeun.jar"] \ No newline at end of file diff --git a/HELP.md b/HELP.md new file mode 100644 index 0000000..5fd5b51 --- /dev/null +++ b/HELP.md @@ -0,0 +1,29 @@ +# Getting Started + +### Reference Documentation +For further reference, please consider the following sections: + +* [Official Gradle documentation](https://docs.gradle.org) +* [Spring Boot Gradle Plugin Reference Guide](https://docs.spring.io/spring-boot/3.5.3/gradle-plugin) +* [Create an OCI image](https://docs.spring.io/spring-boot/3.5.3/gradle-plugin/packaging-oci-image.html) +* [Spring Boot DevTools](https://docs.spring.io/spring-boot/3.5.3/reference/using/devtools.html) +* [Spring Web](https://docs.spring.io/spring-boot/3.5.3/reference/web/servlet.html) +* [Spring Security](https://docs.spring.io/spring-boot/3.5.3/reference/web/spring-security.html) +* [Spring Data JPA](https://docs.spring.io/spring-boot/3.5.3/reference/data/sql.html#data.sql.jpa-and-spring-data) + +### Guides +The following guides illustrate how to use some features concretely: + +* [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) +* [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) +* [Building REST services with Spring](https://spring.io/guides/tutorials/rest/) +* [Securing a Web Application](https://spring.io/guides/gs/securing-web/) +* [Spring Boot and OAuth2](https://spring.io/guides/tutorials/spring-boot-oauth2/) +* [Authenticating a User with LDAP](https://spring.io/guides/gs/authenticating-ldap/) +* [Accessing Data with JPA](https://spring.io/guides/gs/accessing-data-jpa/) + +### Additional Links +These additional references should also help you: + +* [Gradle Build Scans โ€“ insights for your project's build](https://scans.gradle.com#gradle) + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..b71c79d --- /dev/null +++ b/build.gradle @@ -0,0 +1,100 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '3.5.3' + id 'io.spring.dependency-management' version '1.1.7' +} + +group = 'com.teamEWSN' +version = '0.0.1-SNAPSHOT' + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(21) + } +} + +configurations { + compileOnly { + extendsFrom annotationProcessor + } +} + +repositories { + mavenCentral() +} + +ext { + mapstructVersion = "1.6.0.Final" + springDocVersion = "2.5.0" + jjwtVersion = "0.12.6" + awsSdkVersion = "2.25.68" + springCloudAwsVersion = "3.1.1" +} + +dependencies { + // Spring web + implementation 'org.springframework.boot:spring-boot-starter-web' + + // JPA + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + + // Cache + implementation 'org.springframework.boot:spring-boot-starter-cache' + + // AOP + implementation 'org.springframework.boot:spring-boot-starter-aop' + + // validation + implementation 'org.springframework.boot:spring-boot-starter-validation' + + // Spring Security + implementation 'org.springframework.boot:spring-boot-starter-security' + + // OAuth 2.0 + implementation 'org.springframework.boot:spring-boot-starter-oauth2-client' + + // lombok + compileOnly 'org.projectlombok:lombok' + annotationProcessor 'org.projectlombok:lombok' + + // mapstruct + implementation "org.mapstruct:mapstruct:${mapstructVersion}" + annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}" + + // Swagger (SpringDoc) + implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springDocVersion}" + + // JWT + implementation "io.jsonwebtoken:jjwt-api:${jjwtVersion}" + runtimeOnly "io.jsonwebtoken:jjwt-impl:${jjwtVersion}" + runtimeOnly "io.jsonwebtoken:jjwt-jackson:${jjwtVersion}" + + // dev-tools + developmentOnly 'org.springframework.boot:spring-boot-devtools' + + // S3 bucket +// implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE' +// implementation platform('software.amazon.awssdk:bom:2.20.0') +// implementation 'software.amazon.awssdk:s3' +// implementation 'software.amazon.awssdk:sts' + implementation platform("io.awspring.cloud:spring-cloud-aws-dependencies:${springCloudAwsVersion}") + implementation 'io.awspring.cloud:spring-cloud-aws-starter-s3' + + // db + runtimeOnly 'com.h2database:h2' + runtimeOnly 'com.mysql:mysql-connector-j' + + // Caffeine + implementation 'com.github.ben-manes.caffeine:caffeine' + + // redis + implementation 'org.springframework.boot:spring-boot-starter-data-redis' + + // test + testImplementation 'org.springframework.boot:spring-boot-starter-test' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' +} + +tasks.named('test') { + useJUnitPlatform() +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9ac43df --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,59 @@ + services: + app: + build: + context: src + dockerfile: Dockerfile + image: gitdeun:latest + container_name: gitdeun + ports: + - "8080:8080" + restart: always + env_file: + - ./.env + environment: + SPRING_PROFILES_ACTIVE: dev,s3Bucket + TZ: Asia/Seoul + volumes: + - /data/logs/spring:/app/logs # ๋กœ๊ทธ ๋งˆ์šดํŠธ + depends_on: + redis: + condition: service_healthy + networks: + - app-network + + redis: + image: redis:latest + container_name: gitdeun-redis + ports: + - "6379:6379" + volumes: + - redis-data:/data # ๋ฐ์ดํ„ฐ ์ง€์†์„ฑ์„ ์œ„ํ•œ ๋ณผ๋ฅจ ์ถ”๊ฐ€ + command: redis-server --appendonly yes + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + networks: + - app-network + + nginx: + image: nginx:latest + container_name: gitdeun-nginx + ports: + - "80:80" + - "443:443" + volumes: + - /data/nginx/conf.d:/etc/nginx/conf.d + - /data/nginx/ssl:/etc/nginx/ssl + - /data/logs/nginx:/var/log/nginx + depends_on: + - app + networks: + - app-network + + + networks: + app-network: + name: gitdeun-network \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..ff23a68 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..23d15a9 --- /dev/null +++ b/gradlew @@ -0,0 +1,251 @@ +#!/bin/sh + +# +# Copyright ยฉ 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions ยซ$varยป, ยซ${var}ยป, ยซ${var:-default}ยป, ยซ${var+SET}ยป, +# ยซ${var#prefix}ยป, ยซ${var%suffix}ยป, and ยซ$( cmd )ยป; +# * compound commands having a testable exit status, especially ยซcaseยป; +# * various built-in commands including ยซcommandยป, ยซsetยป, and ยซulimitยป. +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH="\\\"\\\"" + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..db3a6ac --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,94 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH= + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..099fefe --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'gitdeun' diff --git a/src/main/java/com/teamEWSN/gitdeun/GitdeunApplication.java b/src/main/java/com/teamEWSN/gitdeun/GitdeunApplication.java new file mode 100644 index 0000000..c3c381b --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/GitdeunApplication.java @@ -0,0 +1,13 @@ +package com.teamEWSN.gitdeun; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class GitdeunApplication { + + public static void main(String[] args) { + SpringApplication.run(GitdeunApplication.class, args); + } + +} diff --git a/src/main/java/com/teamEWSN/gitdeun/codereference/controller/CodeReferenceController.java b/src/main/java/com/teamEWSN/gitdeun/codereference/controller/CodeReferenceController.java new file mode 100644 index 0000000..904cce0 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereference/controller/CodeReferenceController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereference.controller; + +public class CodeReferenceController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereference/dto/CodeReferenceDto.java b/src/main/java/com/teamEWSN/gitdeun/codereference/dto/CodeReferenceDto.java new file mode 100644 index 0000000..6143486 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereference/dto/CodeReferenceDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereference.dto; + +public class CodeReferenceDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereference/entity/CodeReference.java b/src/main/java/com/teamEWSN/gitdeun/codereference/entity/CodeReference.java new file mode 100644 index 0000000..e71e410 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereference/entity/CodeReference.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereference.entity; + +public class CodeReference { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereference/repository/CodeReferenceRepository.java b/src/main/java/com/teamEWSN/gitdeun/codereference/repository/CodeReferenceRepository.java new file mode 100644 index 0000000..86213f3 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereference/repository/CodeReferenceRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereference.repository; + +public class CodeReferenceRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereference/service/CodeReferenceService.java b/src/main/java/com/teamEWSN/gitdeun/codereference/service/CodeReferenceService.java new file mode 100644 index 0000000..0833eda --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereference/service/CodeReferenceService.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereference.service; + +public class CodeReferenceService { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereview/controller/CodeReviewController.java b/src/main/java/com/teamEWSN/gitdeun/codereview/controller/CodeReviewController.java new file mode 100644 index 0000000..6668fed --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereview/controller/CodeReviewController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereview.controller; + +public class CodeReviewController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereview/dto/CodeReviewDto.java b/src/main/java/com/teamEWSN/gitdeun/codereview/dto/CodeReviewDto.java new file mode 100644 index 0000000..c2681fd --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereview/dto/CodeReviewDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereview.dto; + +public class CodeReviewDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereview/entity/CodeReview.java b/src/main/java/com/teamEWSN/gitdeun/codereview/entity/CodeReview.java new file mode 100644 index 0000000..f36f8e8 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereview/entity/CodeReview.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereview.entity; + +public class CodeReview { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/codereview/repository/CodeReviewRepository.java b/src/main/java/com/teamEWSN/gitdeun/codereview/repository/CodeReviewRepository.java new file mode 100644 index 0000000..e207466 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/codereview/repository/CodeReviewRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.codereview.repository; + +public class CodeReviewRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/invitation/controller/InvitationController.java b/src/main/java/com/teamEWSN/gitdeun/invitation/controller/InvitationController.java new file mode 100644 index 0000000..74f7854 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/invitation/controller/InvitationController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.invitation.controller; + +public class InvitationController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/invitation/dto/InvitationDto.java b/src/main/java/com/teamEWSN/gitdeun/invitation/dto/InvitationDto.java new file mode 100644 index 0000000..c3c3a3f --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/invitation/dto/InvitationDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.invitation.dto; + +public class InvitationDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/invitation/entity/Invitation.java b/src/main/java/com/teamEWSN/gitdeun/invitation/entity/Invitation.java new file mode 100644 index 0000000..720d849 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/invitation/entity/Invitation.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.invitation.entity; + +public class Invitation { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/invitation/repository/InvitationRepository.java b/src/main/java/com/teamEWSN/gitdeun/invitation/repository/InvitationRepository.java new file mode 100644 index 0000000..7837948 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/invitation/repository/InvitationRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.invitation.repository; + +public class InvitationRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/invitation/service/InvitationService.java b/src/main/java/com/teamEWSN/gitdeun/invitation/service/InvitationService.java new file mode 100644 index 0000000..379089e --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/invitation/service/InvitationService.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.invitation.service; + +public class InvitationService { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmap/controller/MindmapController.java b/src/main/java/com/teamEWSN/gitdeun/mindmap/controller/MindmapController.java new file mode 100644 index 0000000..10fedef --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmap/controller/MindmapController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmap.controller; + +public class MindmapController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmap/dto/MindmapDto.java b/src/main/java/com/teamEWSN/gitdeun/mindmap/dto/MindmapDto.java new file mode 100644 index 0000000..b22ab69 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmap/dto/MindmapDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmap.dto; + +public class MindmapDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmap/entity/Mindmap.java b/src/main/java/com/teamEWSN/gitdeun/mindmap/entity/Mindmap.java new file mode 100644 index 0000000..fa5027d --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmap/entity/Mindmap.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmap.entity; + +public class Mindmap { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmap/repository/MindmapRepository.java b/src/main/java/com/teamEWSN/gitdeun/mindmap/repository/MindmapRepository.java new file mode 100644 index 0000000..d866bea --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmap/repository/MindmapRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmap.repository; + +public class MindmapRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmap/service/MindmapService.java b/src/main/java/com/teamEWSN/gitdeun/mindmap/service/MindmapService.java new file mode 100644 index 0000000..280bcc2 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmap/service/MindmapService.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmap.service; + +public class MindmapService { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmapnode/controller/MindmapNodeController.java b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/controller/MindmapNodeController.java new file mode 100644 index 0000000..7082a2d --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/controller/MindmapNodeController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmapnode.controller; + +public class MindmapNodeController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmapnode/dto/MindmapNodeDto.java b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/dto/MindmapNodeDto.java new file mode 100644 index 0000000..ce12c4b --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/dto/MindmapNodeDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmapnode.dto; + +public class MindmapNodeDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmapnode/entity/MindmapNode.java b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/entity/MindmapNode.java new file mode 100644 index 0000000..40ae180 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/entity/MindmapNode.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmapnode.entity; + +public class MindmapNode { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmapnode/repository/MindmapNodeRepository.java b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/repository/MindmapNodeRepository.java new file mode 100644 index 0000000..b2092a5 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/repository/MindmapNodeRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmapnode.repository; + +public class MindmapNodeRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/mindmapnode/service/MindmapNodeService.java b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/service/MindmapNodeService.java new file mode 100644 index 0000000..c7eba60 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/mindmapnode/service/MindmapNodeService.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.mindmapnode.service; + +public class MindmapNodeService { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/repository/controller/RepositoryController.java b/src/main/java/com/teamEWSN/gitdeun/repository/controller/RepositoryController.java new file mode 100644 index 0000000..ced6177 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/repository/controller/RepositoryController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.repository.controller; + +public class RepositoryController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/repository/dto/RepositoryDto.java b/src/main/java/com/teamEWSN/gitdeun/repository/dto/RepositoryDto.java new file mode 100644 index 0000000..603d314 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/repository/dto/RepositoryDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.repository.dto; + +public class RepositoryDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/repository/entity/Repository.java b/src/main/java/com/teamEWSN/gitdeun/repository/entity/Repository.java new file mode 100644 index 0000000..2d51bbe --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/repository/entity/Repository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.repository.entity; + +public class Repository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/repository/repository/RepositoryRepository.java b/src/main/java/com/teamEWSN/gitdeun/repository/repository/RepositoryRepository.java new file mode 100644 index 0000000..6abc5b4 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/repository/repository/RepositoryRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.repository.repository; + +public class RepositoryRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/repository/service/RepositoryService.java b/src/main/java/com/teamEWSN/gitdeun/repository/service/RepositoryService.java new file mode 100644 index 0000000..28097f8 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/repository/service/RepositoryService.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.repository.service; + +public class RepositoryService { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/user/controller/UserController.java b/src/main/java/com/teamEWSN/gitdeun/user/controller/UserController.java new file mode 100644 index 0000000..4a54934 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/user/controller/UserController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.user.controller; + +public class UserController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/user/dto/UserDto.java b/src/main/java/com/teamEWSN/gitdeun/user/dto/UserDto.java new file mode 100644 index 0000000..0d992c8 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/user/dto/UserDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.user.dto; + +public class UserDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/user/entity/User.java b/src/main/java/com/teamEWSN/gitdeun/user/entity/User.java new file mode 100644 index 0000000..2025a52 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/user/entity/User.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.user.entity; + +public class User { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/user/repository/UserRepository.java b/src/main/java/com/teamEWSN/gitdeun/user/repository/UserRepository.java new file mode 100644 index 0000000..cdeeab9 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/user/repository/UserRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.user.repository; + +public class UserRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/user/service/UserService.java b/src/main/java/com/teamEWSN/gitdeun/user/service/UserService.java new file mode 100644 index 0000000..45bcdea --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/user/service/UserService.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.user.service; + +public class UserService { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/visithistory/controller/VisitHistoryController.java b/src/main/java/com/teamEWSN/gitdeun/visithistory/controller/VisitHistoryController.java new file mode 100644 index 0000000..b4628cd --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/visithistory/controller/VisitHistoryController.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.visithistory.controller; + +public class VisitHistoryController { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/visithistory/dto/VisitHistoryDto.java b/src/main/java/com/teamEWSN/gitdeun/visithistory/dto/VisitHistoryDto.java new file mode 100644 index 0000000..d3b8424 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/visithistory/dto/VisitHistoryDto.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.visithistory.dto; + +public class VisitHistoryDto { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/visithistory/entity/VisitHistory.java b/src/main/java/com/teamEWSN/gitdeun/visithistory/entity/VisitHistory.java new file mode 100644 index 0000000..68b7c40 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/visithistory/entity/VisitHistory.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.visithistory.entity; + +public class VisitHistory { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/visithistory/repository/VisitHistoryRepository.java b/src/main/java/com/teamEWSN/gitdeun/visithistory/repository/VisitHistoryRepository.java new file mode 100644 index 0000000..a03ff56 --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/visithistory/repository/VisitHistoryRepository.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.visithistory.repository; + +public class VisitHistoryRepository { + +} \ No newline at end of file diff --git a/src/main/java/com/teamEWSN/gitdeun/visithistory/service/VisitHistoryService.java b/src/main/java/com/teamEWSN/gitdeun/visithistory/service/VisitHistoryService.java new file mode 100644 index 0000000..b655d9f --- /dev/null +++ b/src/main/java/com/teamEWSN/gitdeun/visithistory/service/VisitHistoryService.java @@ -0,0 +1,5 @@ +package com.teamEWSN.gitdeun.visithistory.service; + +public class VisitHistoryService { + +} \ No newline at end of file diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml new file mode 100644 index 0000000..551cef6 --- /dev/null +++ b/src/main/resources/application-dev.yml @@ -0,0 +1,15 @@ +spring: + datasource: + url: ${MYSQL_DEV_URL} # MySQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค URL + data: + redis: + host: localhost + +jwt: + access-expired: 28800 # 8์‹œ๊ฐ„ + refresh-expired: 86400 # 1์ผ + +app: + cookie: + secure: false + same-site: Lax \ No newline at end of file diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml new file mode 100644 index 0000000..ccd364f --- /dev/null +++ b/src/main/resources/application-prod.yml @@ -0,0 +1,20 @@ +server: + forward-headers-strategy: framework + +spring: + datasource: + url: ${MYSQL_PROD_URL} # MySQL ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค URL + data: + redis: + host: gitdeun-redis + password: ${REDIS_PASSWORD} + + +jwt: + access-expired: 1800 # 30๋ถ„(์ดˆ ๋‹จ์œ„: 0.5 * 60 * 60) + refresh-expired: 604800 # 7์ผ(์ดˆ ๋‹จ์œ„: 7 * 24 * 60 * 60) + +app: + cookie: + secure: true + same-site: None \ No newline at end of file diff --git a/src/main/resources/application-s3Bucket.yml b/src/main/resources/application-s3Bucket.yml new file mode 100644 index 0000000..74b910e --- /dev/null +++ b/src/main/resources/application-s3Bucket.yml @@ -0,0 +1,14 @@ +aws: + s3: + bucket: + stack.auto: false + name: gitdeun + region: ap-northeast-2 + credentials: + accessKey: ${S3_ACCESS_KEY} + secretAccessKey: ${S3_SECRET_KEY} + +spring: + config: + activate: + on-profile: s3Bucket diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..5873ef7 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,34 @@ +spring: + data: + redis: + port: 6379 + timeout: 2000 + password: + datasource: + username: ${MYSQL_USERNAME} + password: ${MYSQL_PASSWORD} + hikari: + connection-timeout: 30000 # 30์ดˆ ์—ฐ๊ฒฐ ์ œํ•œ +# h2: +# console: +# enabled: true # H2 ์›น ์ฝ˜์†” ํ™œ์„ฑํ™” +# path: /h2-console # H2 ์ฝ˜์†” URL ๊ฒฝ๋กœ (๊ธฐ๋ณธ๊ฐ’: /h2-console) + jpa: + show-sql: true # SQL ๋กœ๊ทธ ์ถœ๋ ฅ + hibernate: + ddl-auto: create # create # update + properties: + hibernate: + dialect: org.hibernate.dialect.MySQL8Dialect + format_sql: true # SQL ๋กœ๊ทธ๋ฅผ ๋ณด๊ธฐ ์ข‹๊ฒŒ ํฌ๋งท + auto_quote_keyword: true # ์˜ˆ์•ฝ์–ด๋ฅผ ์ž๋™์œผ๋กœ ๋”ฐ์˜ดํ‘œ ์ฒ˜๋ฆฌ + order_inserts: true + order_updates: true + jdbc: + batch_size: 1000 + profiles: + active: dev, s3Bucket # logback-spring SpringProfile ์„ค์ • ๋ฐ AWS S3 Bucket ์„ค์ • + + +jwt: + secret-key: ${JWT_SECRET_KEY} diff --git a/src/main/resources/console-appender.xml b/src/main/resources/console-appender.xml new file mode 100644 index 0000000..18b3238 --- /dev/null +++ b/src/main/resources/console-appender.xml @@ -0,0 +1,7 @@ + + + + ${LOG_PATTERN} + + + \ No newline at end of file diff --git a/src/main/resources/file-error-appender.xml b/src/main/resources/file-error-appender.xml new file mode 100644 index 0000000..f36ba59 --- /dev/null +++ b/src/main/resources/file-error-appender.xml @@ -0,0 +1,25 @@ + + + + + + logs/error/error-${BY_DATE}.log + + + ERROR + ACCEPT + DENY + + + ${LOG_PATTERN_PROD} + + + + logs/error/error-%d{yyyy-MM-dd}.%i.log + + 30 + 3GB + 10MB + + + \ No newline at end of file diff --git a/src/main/resources/file-info-appender.xml b/src/main/resources/file-info-appender.xml new file mode 100644 index 0000000..83accb8 --- /dev/null +++ b/src/main/resources/file-info-appender.xml @@ -0,0 +1,22 @@ + + + + + logs/info/info-${BY_DATE}.log + + INFO + ACCEPT + DENY + + + ${LOG_PATTERN_PROD} + + + + logs/info/info-%d{yyyy-MM-dd}.%i.log + 30 + 3GB + 10MB + + + \ No newline at end of file diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml new file mode 100644 index 0000000..da6f413 --- /dev/null +++ b/src/main/resources/logback-spring.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/java/com/teamEWSN/gitdeun/GitdeunApplicationTests.java b/src/test/java/com/teamEWSN/gitdeun/GitdeunApplicationTests.java new file mode 100644 index 0000000..fa31ba2 --- /dev/null +++ b/src/test/java/com/teamEWSN/gitdeun/GitdeunApplicationTests.java @@ -0,0 +1,13 @@ +package com.teamEWSN.gitdeun; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class GitdeunApplicationTests { + + @Test + void contextLoads() { + } + +}