Skip to content

Commit

Permalink
2.2.0 ver (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozzing authored Jun 8, 2023
2 parents f5acb43 + f23f0ea commit fb6a94f
Show file tree
Hide file tree
Showing 36 changed files with 72 additions and 1,349 deletions.
92 changes: 72 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,88 @@

> ๐Ÿš€ SOPT ๊ณต์‹ ์•ฑ์œผ๋กœ, ์ถœ์„/๊ณต์ง€/๋„คํŠธ์›Œํ‚น ๋ฏธ์…˜ ๋“ฑ ๋‹ค์–‘ํ•œ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
## 1.์†ํƒฌํ”„ : ๋„คํŠธ์›Œํ‚น ๋ฏธ์…˜
![image](https://github.com/sopt-makers/sopt-backend/assets/63996052/e00e6014-04c4-4da5-81ec-85ab6b2a270b)

# PRODUCT
### [1๊ธฐ] ์†ํƒฌํ”„ : ๋„คํŠธ์›Œํ‚น ๋ฏธ์…˜

์†ํŠธ ๋„คํŠธ์›Œํ‚น์„ ํ™œ์„ฑํ™”์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์Šคํƒฌํ”„ ๋ฏธ์…˜ ๋ฐ ์ธ์ฆ ํ”Œ๋žซํผ ์ œ๊ณต

<img width="340" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2023-03-03 แ„‹แ…ฉแ„Œแ…ฅแ†ซ 12 34 02" src="https://user-images.githubusercontent.com/35520314/222474521-61cb1f6f-24dd-4304-ab6d-b3c6987a60c2.png">

### [2๊ธฐ] ๊ณต์‹์•ฑ : ์ถœ์„/๊ณต์ง€/๋ฉ”์ด์ปค์Šค

## 2. ํ”„๋กœ์ ํŠธ ์„ค์น˜
- java version: 17
- springboot: 2.7.4 (3์ ๋Œ€๋กœ ์˜ฌ๋ฆฌ๋Š” ๊ฒƒ ์ถ”์ฒœ)

### Quick start
> local ์—์„œ docker postgres ๋ฅผ ์šฐ์„  ์‹คํ–‰ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. [ wiki ์ฐธ๊ณ  ](https://github.com/sopt-makers/app-server/wiki/Local์—์„œ-Docker-postgres-์‹คํ–‰ํ•˜๋Š”-๋ฒ•)
```
git clone https://github.com/sopt-makers/app-server.git
./gradlew clean build
ํ™œ๋™ ๊ธฐ์ˆ˜๋ฅผ ์œ„ํ•œ ์ถœ์„/๊ณต์ง€ ๊ธฐ๋Šฅ๊ณผ ๋ฉ”์ด์ปค์Šค ํ”„๋กœ๋•ํŠธ ๋งํฌ ์ œ๊ณต

java -jar -Dspring.profiles.active=local build/libs/app-server-0.0.1-SNAPSHOT.jar
<img width="340" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2023-03-03 แ„‹แ…ฉแ„Œแ…ฅแ†ซ 12 34 02" src="https://github.com/sopt-makers/sopt-backend/assets/63996052/def334cc-96ce-4532-b4bd-717c19b6b2ee">

```
http://localhost:8080 ์œผ๋กœ ์ ‘์† ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
# PROJECT
- java version: 17
- springboot: 2.7.4

## 3. ๋ถ€๋ก
# DEPLOY
- [local] deploy
- docker postgres ์‹คํ–‰
- git clone https://github.com/sopt-makers/app-server.git (์ตœ์ดˆ ์‹คํ–‰)
- ./gradlew clean build
- java -jar -Dspring.profiles.active=local build/libs/app-server-0.0.1-SNAPSHOT.jar
- http://localhost:8080
- [dev] deploy
- dev ์„œ๋ฒ„ ์ ‘์†
- git pull origin dev
- ./gradlew clean build
- java -jar -Dspring.profiles.active=local build/libs/app-server-0.0.1-SNAPSHOT.jar
- https://app.dev.sopt.org
- [main] github actions
- ๋ฐฐํฌ ์กฐ๊ฑด: main branch์— merge ๋˜๊ฑฐ๋‚˜, makers-app-develop ํƒœ๊ทธ ๋นŒ๋“œํ•˜๋Š” ๊ฒฝ์šฐ <br>
- gradle build -> s3 ์— jar ์—…๋กœ๋“œ -> codedeploy ๋ฐฐํฌ
- https://app.sopt.org

3-1. github actions
# FOLDERING

๋ฐฐํฌ ์กฐ๊ฑด: main branch์— merge ๋˜๊ฑฐ๋‚˜, makers-app-develop ํƒœ๊ทธ ๋นŒ๋“œํ•˜๋Š” ๊ฒฝ์šฐ <br>
- gradle build -> s3 ์— jar ์—…๋กœ๋“œ -> codedeploy ๋ฐฐํฌ
```tsx
app-server
โ”‚ .gitignore
โ”‚ appspec.yml
โ”‚ build.gradle
โ”‚ gradlew
โ”‚ gradlew.bat
โ”‚ README.md
โ”‚ settings.gradle
โ”‚
โ””โ”€src/main
โ”‚
โ”œโ”€java/org/sopt/app
โ”‚ โ”‚ AppApplication
โ”‚ โ”œโ”€application
โ”‚ โ”œโ”€common
โ”‚ โ”œโ”€domain
โ”‚ โ”œโ”€interfaces.postgres
โ”‚ โ””โ”€presentation
โ”‚
โ””โ”€resources
โ”‚ application.yml
โ”‚ application-local.yml
โ”‚ application-prod.yml
โ””โ”€database
```

3-2. API ๋ฌธ์„œ [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://parangjy.notion.site/166132ae964d4bc483c71e507497bb9c)
# SECRETS
- ์ธ์ˆ˜์ธ๊ณ„ ๋‹ด๋‹น์ž์—๊ฒŒ ์•„๋ž˜ ํ•ญ๋ชฉ๋“ค์„ ์š”์ฒญํ•ด์ฃผ์„ธ์š”! (2๊ธฐ [ozzing](https://github.com/ozzing))
- application-prod.yml
- application-local.yml
- prod database info
- dev database info
- prod pem key
- dev pem key
- AWS ๊ด€๋ จ ๊ถŒํ•œ์€ ํ˜„ ๊ธฐ์ˆ˜ AWS ๋‹ด๋‹น์ž์—๊ฒŒ ์ ์ ˆํ•œ ๊ถŒํ•œ์„ ์š”์ฒญํ•ด์ฃผ์„ธ์š”!
- ex) s3 access key, secret key
- ์ด ์™ธ์—๋„ ํ•„์š”ํ•œ ํ•ญ๋ชฉ์ด ์žˆ์œผ๋ฉด ์š”์ฒญํ•ด์ฃผ์„ธ์š”!

3-3. ์œ ์Šค์ผ€์ด์Šค [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://github.com/sopt-makers/app-server/wiki/์†ํƒฌํ”„-ํ”„๋กœ์ ํŠธ-์œ ์Šค์ผ€์ด์Šค)
# ETC
- Playground OAuth [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://www.notion.so/parangjy/3596d3abc6304004a07d1fc79981d8bc)
- docker postgres ์‹คํ–‰ ๋ฐฉ๋ฒ• [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://github.com/sopt-makers/app-server/wiki/Local์—์„œ-Docker-postgres-์‹คํ–‰ํ•˜๋Š”-๋ฒ•)
- 2๊ธฐ Swagger [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://app.dev.sopt.org/swagger-ui/index.html)
- 2๊ธฐ API ๋ฌธ์„œ [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://parangjy.notion.site/3278da92a8f646aea4eba1d0f5a45f43?v=15ca2103aaec4bbaaaea7808c872484c)
- 1๊ธฐ ์†ํƒฌํ”„ ์œ ์Šค์ผ€์ด์Šค [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://github.com/sopt-makers/app-server/wiki/์†ํƒฌํ”„-ํ”„๋กœ์ ํŠธ-์œ ์Šค์ผ€์ด์Šค)
- 1๊ธฐ API ๋ฌธ์„œ [๋ฐ”๋กœ๊ฐ€๊ธฐ](https://parangjy.notion.site/166132ae964d4bc483c71e507497bb9c)

This file was deleted.

19 changes: 0 additions & 19 deletions src/main/java/org/sopt/app/v1/application/auth/EncryptService.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit fb6a94f

Please sign in to comment.