Skip to content

Commit

Permalink
Merge pull request #111 from YAPP-Github/develop
Browse files Browse the repository at this point in the history
์„œ๋ฒ„ ์•„ํ‚คํ…์ฒ˜ ์ถ”๊ฐ€
  • Loading branch information
akalswl14 authored Feb 28, 2023
2 parents 3a9b06d + 7e216ce commit e855ff3
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
- jdk:11
- mysql:8.0

## 2. ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€
## 2. ์„œ๋ฒ„ ์•„ํ‚คํ…์ฒ˜ ๋ฐ ๋ฐฐํฌ ํŒŒ์ดํ”„๋ผ์ธ
![ARTIE_แ„‹แ…กแ„แ…ตแ„แ…ฆแ†จแ„Žแ…ฅ](https://user-images.githubusercontent.com/42285463/221746173-9fa37f59-bf37-48ed-926c-328539e93bf5.png)

## 3. ์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€

์ปค๋ฐ‹ ๋ฉ”์‹œ์ง€ ํ˜•์‹์€ ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. `subject`๊นŒ์ง€๋งŒ ์ž‘์„ฑํ•ด๋„ ๊ดœ์ฐฎ์Šต๋‹ˆ๋‹ค.

Expand All @@ -20,7 +23,7 @@
<footer>
```

## 2.1 ์ปค๋ฐ‹ ํƒ€์ž…(`<Type>`)
## 3.1 ์ปค๋ฐ‹ ํƒ€์ž…(`<Type>`)

- `feat` : (feature)
- `fix` : (bug fix)
Expand All @@ -30,7 +33,7 @@
- `test` : (when adding missing tests)
- `chore` : (maintain)

## 3. ํŒจํ‚ค์ง€ ๊ตฌ์กฐ
## 4. ํŒจํ‚ค์ง€ ๊ตฌ์กฐ

- `module`
- `controller`
Expand All @@ -40,14 +43,14 @@
- `repository`
- `service`

## 4. ์ธํ…”๋ฆฌ์ œ์ด ์ž๋™ ์žฌ์‹œ์ž‘ ์„ค์ •
## 5. ์ธํ…”๋ฆฌ์ œ์ด ์ž๋™ ์žฌ์‹œ์ž‘ ์„ค์ •

1. ์„ค์ • > ๋นŒ๋“œ, ์‹คํ–‰, ๋ฐฐํฌ > ์ปดํŒŒ์ผ๋Ÿฌ > ํ”„๋กœ์ ํŠธ ์ž๋™ ๋นŒ๋“œ ์ฒดํฌ
2. ๊ณ ๊ธ‰ ์„ค์ • > ์ปดํŒŒ์ผ๋Ÿฌ > ๊ฐœ๋ฐœ๋œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ํ˜„์žฌ ์‹คํ–‰ ์ค‘์ธ ๊ฒฝ์šฐ์—๋„ auto-make๊ฐ€ ์‹œ์ž‘๋˜๋„๋ก ํ—ˆ์šฉ ์ฒดํฌ

## 5. ์‹คํ–‰
## 6. ์‹คํ–‰

### 5.1 ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์‹คํ–‰ :
### 6.1 ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์‹คํ–‰ :

```shell
# mysql ์‹คํ–‰
Expand All @@ -61,25 +64,25 @@ $ cd docker
$ docker-compose down
```

### 5.2 profile ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ค์ • :
### 6.2 profile ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ค์ • :

1. ์ธํ…”๋ฆฌ์ œ์ด ๋ฉ”๋‰ด Run > Edit Configurations ์„ค์ • ์ ‘์† ํ˜น์€ ์Šคํฌ๋ฆฐ ์ƒท๊ณผ ๊ฐ™์ด ์ ‘์†
<img width="863" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2023-01-07 แ„‹แ…ฉแ„’แ…ฎ 4 06 05" src="https://user-images.githubusercontent.com/42285463/211137975-87d0e79c-7f8b-4640-9eae-0ad03d68fef5.png">
2. Active profiles์— develop ์ž…๋ ฅ ( ๊ฐœ๋ฐœ์šฉ์˜ ๊ฒฝ์šฐ develop, production์˜ ๊ฒฝ์šฐ prod ์ž…๋ ฅ )
<img width="1042" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2023-01-07 แ„‹แ…ฉแ„’แ…ฎ 4 07 21" src="https://user-images.githubusercontent.com/42285463/211138359-e071c6ff-6fa5-432e-87e0-101e759b6037.png">

### 5.3 ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์ถ”๊ฐ€ ๋ฐ ๋ณ€๊ฒฝ ์‹œ ( production ) :
### 6.3 ํ™˜๊ฒฝ ๋ณ€์ˆ˜ ์ถ”๊ฐ€ ๋ฐ ๋ณ€๊ฒฝ ์‹œ ( production ) :

- application-dev.yml์— ํ•ด๋‹นํ•˜๋Š” ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ , ํ™˜๊ฒฝ๋ณ€์ˆ˜ ๊ตฌ์กฐ ํŒŒ์•…์„ ์œ„ํ•˜์—ฌ application-prod.yml์— ์ถ”๊ฐ€๋˜๋Š” ํ™˜๊ฒฝ๋ณ€์ˆ˜์˜ ์ด๋ฆ„์„ ์ถ”๊ฐ€.
- ์‹ค์ œ ํ™˜๊ฒฝ๋ณ€์ˆ˜ ๊ฐ’์ด ํฌํ•จ๋œ application-prod.yml์„ base 64๋กœ ์ธ์ฝ”๋”ฉํ•˜์—ฌ Github Secrets์— ์—…๋ฐ์ดํŠธ

### 5.4 ์ธํ…”๋ฆฌ์ œ์ด์— ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ถ”๊ฐ€ :
### 6.4 ์ธํ…”๋ฆฌ์ œ์ด์— ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ถ”๊ฐ€ :

1. ์ธํ…”๋ฆฌ์ œ์ด ๋ฉ”๋‰ด Run > Edit Configurations ์„ค์ • ์ ‘์† ( profile ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์„ค์ • ์„น์…˜ ์ฐธ๊ณ  )
2. Modify Options > Environment Variables ์ฒดํฌ
3. ํ•ด๋‹นํ•˜๋Š” ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ถ”๊ฐ€

### 5.5 ํ…Œ์ŠคํŠธ ์‹œ ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ํ…œํ”Œ๋ฆฟ์œผ๋กœ ์„ค์ • :
### 6.5 ํ…Œ์ŠคํŠธ ์‹œ ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ํ…œํ”Œ๋ฆฟ์œผ๋กœ ์„ค์ • :

ํ…Œ์ŠคํŠธ๋ฅผ ์ˆ˜ํ–‰ํ•  ๋•Œ๋งˆ๋‹ค, ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ์„ค์ •ํ•˜๋Š” ์ž‘์—…์„, ์ธํ…”๋ฆฌ์ œ์ด์—์„œ ํ…œํ”Œ๋ฆฟ์œผ๋กœ ์„ค์ •ํ•˜๋ฉด ํ…Œ์ŠคํŠธ๋งˆ๋‹ค ์„ค์ •ํ•˜์ง€ ์•Š์•„๋„ ๋ฉ๋‹ˆ๋‹ค.

Expand All @@ -90,19 +93,19 @@ $ docker-compose down
3. JUnit์„ ์„ ํƒํ•œ ํ›„, ํ…Œ์ŠคํŠธ ์‹คํ–‰์‹œ์™€ ๋™์ผํ•œ ์„ค์ •๊ฐ’์„ ์ž…๋ ฅํ•˜๊ณ , ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ž…๋ ฅํ•œ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ํ…Œ์ŠคํŠธ ์„ค์ •์„ ์„ค์ •ํ•  ๋ฒ”์œ„๋ฅผ 'All in directory'์— ๋ช…์„ธํ•œ๋‹ค.
![แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2023-02-08 แ„‹แ…ฉแ„’แ…ฎ 4 34 47](https://user-images.githubusercontent.com/42285463/217464007-55927e00-94db-41bb-b1f7-56de17f3358e.png)

## 6. ๋ฐฐํฌ
## 7. ๋ฐฐํฌ

- Github actions๋ฅผ ์‹œ๋ฒ” ์ ์šฉ ์ค‘์œผ๋กœ, ALB ์ด์Šˆ๊ฐ€ ์žˆ์–ด, Github Actions Workflow ์ค‘ ๊ธฐ์กด ECS Task๋ฅผ ์ค‘๋‹จํ•ด์•ผํ•จ.
- ํ˜„์žฌ ๋ฐฐํฌ ์‹œ์— Github Secrets์— base64๋กœ ์ธ์ฝ”๋”ฉํ•˜์—ฌ ์ €์žฅํ•ด๋‘” firebase.json์„ decodeํ•˜์—ฌ ์ƒ์„ฑ ํ›„ ๋นŒ๋“œํ•˜๋Š” ๊ณผ์ •์„ ํฌํ•จํ•˜๊ณ  ์žˆ์Œ.

## 7. ๊ธฐ์—ฌ์ž
## 8. ๊ธฐ์—ฌ์ž

| Avatar | Name | Team |
|------------------------------------------------------------------------------------------------|------|---------|
| <img src="https://avatars.githubusercontent.com/u/42285463?v=4" width="100px" height="100px"/> | ๋งˆ๋ฏผ์ง€ | ์˜ฌ๋ผ์šด๋” 2ํŒ€ |
| <img src="https://avatars.githubusercontent.com/u/39932141?v=4" width="100px" height="100px"/> | ์ดํ•˜๋Š˜ | ์˜ฌ๋ผ์šด๋” 2ํŒ€ |

## 8. ์ฐธ๊ณ ์‚ฌํ•ญ
## 9. ์ฐธ๊ณ ์‚ฌํ•ญ

EC2๊ฐ€ ์•„๋‹Œ ๋กœ์ปฌ์—์„œ ์‹คํ–‰ํ•  ๋•Œ, `com.amazonaws.SdkClientException: Failed to connect to service endpoint:` ํ•ด๊ฒฐ๋ฒ•

Expand Down

0 comments on commit e855ff3

Please sign in to comment.