-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
158 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,148 @@ | ||
# Back-End | ||
# Tasty-Inventory: Back-End | ||
|
||
### 1. ๊ฐ์ | ||
|
||
--- | ||
|
||
#### 1.1. ์๊ฐ | ||
|
||
์ฝ๊ณ ๊ฐํธํ ์ฌ๊ณ ๊ด๋ฆฌ, ๋ง์๋ ์ฌ๊ณ ์ ํจ๊ป ์์ํด์! - [๋ฐ๋ก๊ฐ๊ธฐ](https://tasty-inventory-fe.vercel.app/) | ||
|
||
* โ **์ ์ ์๋**: ๋งค์ผ ์์ ํ์ผ์ ์ ๋ฆฌํ๋ ์ฌ๊ณ ๋ฅผ ๋ง์๋ ์ฌ๊ณ ์์ ๊ฐํธํ๊ฒ ์ ๋ ฅํ๊ณ , ๋จ์ ์๋์ ์์ธกํ ์ ์์ด์. | ||
|
||
#### 1.2. ๊ธฐ์ ์คํ | ||
|
||
|
||
| Category | Used | | ||
| --- | --- | | ||
| Java version | Java 17 | | ||
| Spring version | 3.2.4 | | ||
| Cloud Computing | AWS EC2 (Ubuntu 22.04 LTS) | | ||
| Database | AWS RDS (Mariadb 10.6.18) | | ||
| File Upload | AWS S3 | | ||
| CI/CD | Github Actions, S3, CodeDeploy, Nginx | | ||
| Monitoring | Sentry, Slack | | ||
| API Docs | Swagger, Notion | | ||
|
||
### 2. ์คํ๋ฐฉ๋ฒ | ||
|
||
--- | ||
|
||
#### 2.1. Config | ||
|
||
* `application.yml` ํ์ผ `Tasty-Inventory_BE/src/main/resources` ๋๋ ํ ๋ฆฌ์ ์์น | ||
|
||
<br> | ||
|
||
![alt text](<./image/Screenshot 2024-06-19 at 10.59.19โฏAM.png>) | ||
|
||
<br> | ||
|
||
* `build.gradle`์์ ๋ก์ปฌ ์ปดํจํฐ์ ์ค์น๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ข ๋ฅ ์ถ๊ฐ | ||
|
||
<br> | ||
|
||
![alt text](<./image/Screenshot 2024-06-19 at 11.04.16โฏAM.png>) | ||
|
||
* `application.yml` ํ์ผ์์ DB ์ค์ ์ ๋ณด ๋ณ๊ฒฝ | ||
|
||
<br> | ||
|
||
![alt text](<./image/Screenshot 2024-06-19 at 11.07.15โฏAM.png>) | ||
|
||
<br> | ||
|
||
#### 2.2. Project Build | ||
|
||
```shell | ||
chmod a+x gradlew | ||
./gradlew clean build -x test | ||
``` | ||
|
||
#### 2.3. Run jar | ||
|
||
```shell | ||
cd ./build/libs | ||
java -jar Tasty-Inventory_BE-0.0.1-SNAPSHOT.jar & | ||
``` | ||
|
||
|
||
### 3. ๐ค Code Convention | ||
|
||
--- | ||
|
||
#### 3.1 โ File Naming | ||
- ํ์ผ ์ด๋ฆ ๋ฐ ํด๋์ค, ์ธํฐํ์ด์ค ์ด๋ฆ: **ํ์ค์นผ ์ผ์ด์ค(Pascal Case)** | ||
- Entity์์ ์ฌ์ฉ๋๋ ์์ฑ๊ฐ๋ค์ ? **์นด๋ฉ ์ผ์ด์ค(camel Case)** | ||
- ๋ด๋ถ์์ ์ฌ์ฉ๋๋ ํจ์ ๋ฐ ๊ธฐํ ์ฌ์ฉ: **์นด๋ฉ ์ผ์ด์ค(camelCase)** | ||
|
||
#### 3.2 โ ์ธํฐํ์ด์ค ์ด๋ฆ์ ๋ช ์ฌ/ํ์ฉ์ฌ ์ฌ์ฉ [interface-noun-adj] | ||
์ธํฐํ์ด์ค(interface)์ ์ด๋ฆ์ ๋ช ์ฌ/๋ช ์ฌ์ ๋ก ํน์ ํ์ฉ์ฌ/ํ์ฉ์ฌ์ ๋ก ์ง๋๋ค. | ||
|
||
#### 3.3 โ ํด๋์ค ์ด๋ฆ์ ๋ช ์ฌ ์ฌ์ฉ [class-noun] | ||
|
||
ํด๋์ค ์ด๋ฆ์ ๋ช ์ฌ๋ ๋ช ์ฌ์ ๋ก ์ง๋๋ค. | ||
|
||
#### 3.4 โ ๋ฉ์๋ ์ด๋ฆ์ ๋์ฌ/์ ์น์ฌ๋ก ์์ [method-verb-preposition] | ||
|
||
๋ฉ์๋๋ช ์ ๊ธฐ๋ณธ์ ์ผ๋ก ๋์ฌ๋ก ์์ํ๋ค. | ||
|
||
๋ค๋ฅธ ํ์ ์ผ๋ก ์ ํํ๋ ๋ฉ์๋๋ ๋น๋ ํจํด์ ๊ตฌํํ ํด๋์ค์ ๋ฉ์๋์์๋ ์ ์น์ฌ๋ฅผ ์ธ ์ ์๋ค. | ||
|
||
#### 3.5 โ ์์๋ ๋๋ฌธ์์ ์ธ๋์ค์ฝ์ด๋ก ๊ตฌ์ฑ[constant_uppercase] | ||
|
||
"static final"๋ก ์ ์ธ๋์ด ์๋ ํ๋์ผ ๋ ์์๋ก ๊ฐ์ฃผํ๋ค. | ||
|
||
์์ ์ด๋ฆ์ ๋๋ฌธ์๋ก ์์ฑํ๋ฉฐ, ๋ณตํฉ์ด๋ ์ธ๋์ค์ฝ์ด'_'๋ฅผ ์ฌ์ฉํ์ฌ ๋จ์ด๋ฅผ ๊ตฌ๋ถํ๋ค. | ||
|
||
#### 3.6 โ ๋ณ์์ ์๋ฌธ์ ์นด๋ฉํ๊ธฐ๋ฒ ์ ์ฉ [var-lower-camelcase] | ||
|
||
์์๊ฐ ์๋ ํด๋์ค์ ๋ฉค๋ฒ๋ณ์/์ง์ญ๋ณ์/๋ฉ์๋ ํ๋ผ๋ฏธํฐ์๋ ์๋ฌธ์ ์นด๋ฉํ๊ธฐ๋ฒ(Lower camel case)์ ์ฌ์ฉํ๋ค. | ||
|
||
#### 3.7 โ ์์ ๋ณ์ ์ธ์๋ 1 ๊ธ์ ์ด๋ฆ ์ฌ์ฉ ๊ธ์ง [avoid-1-char-var] | ||
|
||
๋ฉ์๋ ๋ธ๋ญ ๋ฒ์ ์ด์์ ์๋ช ์ฃผ๊ธฐ๋ฅผ ๊ฐ์ง๋ ๋ณ์์๋ 1๊ธ์๋ก ๋ ์ด๋ฆ์ ์ฐ์ง ์๋๋ค. | ||
|
||
**๋ฐ๋ณต๋ฌธ์ ์ธ๋ฑ์ค๋ ๋๋ค ํํ์์ ํ๋ผ๋ฏธํฐ ๋ฑ ์งง์ ๋ฒ์์ ์์ ๋ณ์**์๋ ๊ด๋ก์ ์ผ๋ก 1๊ธ์ ๋ณ์๋ช ์ ์ฌ์ฉํ ์ ์๋ค. | ||
<br><br> | ||
|
||
### 4. ๐ค Git Convention | ||
|
||
--- | ||
|
||
|
||
#### 4.1 Issue | ||
|
||
๋ชจ๋ ์์ ์ ๋จ์๋ github์ ์์ฑ๋ Issue๋ฅผ ๊ธฐ์ค์ผ๋ก ํฉ๋๋ค. | ||
|
||
Issue์ ๋ณผ๋ฅจ์ ์ต์ ํ๋์ ๊ธฐ๋ฅ์ผ๋ก ํฉ๋๋ค. | ||
|
||
ํ๋์ ์ด์๋ฅผ ๋ง๋ฌด๋ฆฌํ๊ธฐ ์ ์๋ ํน๋ณํ ์ํฉ์ด ์๋ ์ด์ ๋ค๋ฅธ ์์ ์ ๋ํ ์ด์๋ฅผ ์์ฑํ์ง ์์ต๋๋ค. | ||
|
||
#### 4.2 PR (Pull Request) | ||
|
||
Issue โค PR | ||
|
||
ํ๋์ ์ด์์ ๋ํด์ ๋ฐ๋์ ํ๋์ PR์ด ์ด๋ ค์ผํ๋ ๊ฑด ์๋๋๋ค. | ||
|
||
์ํํ ์ฝ๋๋ฆฌ๋ทฐ์ ๋ฆฌ๋ทฐ์ ๋ํ ๋ด์ฉ์ ๋ฐ์ํ๊ธฐ ์ํด์ PR์ 3๊ฐ์ commit์ ๋์ด๊ฐ์ง ์์์ผํฉ๋๋ค. | ||
|
||
ํ๋์ PR์ 3๊ฐ ์ด์์ File Change๋ ์ง์ํฉ๋๋ค. | ||
|
||
|
||
### 5. Commit | ||
|
||
--- | ||
|
||
| ์ปค๋ฐ ๊ตฌ๋ถ | ์ค๋ช | | ||
| --- | --- | | ||
| Feature | (Feature) ๊ฐ์ ๋๋ ๊ธฐ๋ฅ ์ถ๊ฐ | | ||
| Bug | (Bug Fix) ๋ฒ๊ทธ ์์ | | ||
| Doc | (Documentation) ๋ฌธ์ ์์ | | ||
| Test | (Test) ํ ์คํธ ์ถ๊ฐ/์์ | | ||
| Build | (Build) ๋น๋ ํ๋ก์ธ์ค ๊ด๋ จ ์์ (yml) | | ||
| Performance | (Performance) ์๋ ๊ฐ์ | | ||
| Refactor | (Cleanup) ์ฝ๋ ์ ๋ฆฌ/๋ฆฌํฉํ ๋ง | | ||
|
||
- ์ด์๋ฒํธ์ ํจ๊ป ์ปค๋ฐ ๋ด์ฉ์ ์ ๋๋ค. | ||
- ์์ : [#1] feataure : ~ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters