Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] release: 백엔드 운영 서버 배포 v1.0.0 #482

Merged
merged 34 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
731f0fa
[BE] Fix/#366 테스트 수행 시 로그 패턴 깨지는 오류 해결 (#367)
yoondgu Sep 1, 2023
6c887a6
refactor: DataBaseCleanup JdbcTemplate 적용 (#371)
cpot5620 Sep 1, 2023
80873a6
[BE] Refactor/#376 로깅 환경 개선을 위한 설정 파일 리팩터링 (#377)
yoondgu Sep 5, 2023
e61a66c
[BE] Chore/#372 submodule 적용 (#375)
junpakPark Sep 5, 2023
b88267b
feat: 운영 서버 500 에러 슬랙 알림 적용, 로컬 환경변수 서브모듈에 저장 (#379)
yoondgu Sep 6, 2023
877dd06
hotfix: yml 문법으로 인한 오류 수정 (#381)
kpeel5839 Sep 6, 2023
339b4ad
fix: 워크플로우 서브모듈 문제 해결 (#384)
yoondgu Sep 6, 2023
34f646e
chore: 워크플로우 서브모듈 문제 해결 확인을 위한 push (#385)
yoondgu Sep 6, 2023
cc91595
Feat/#386 image (#391)
kpeel5839 Sep 11, 2023
8c90435
refactor : S3 Bean 추가 (#396)
kpeel5839 Sep 12, 2023
8e56ec8
[BE] Refactor/#390 지도 및 핀 상세 조회 API에 수정 권한 여부 필드 추가 (#392)
yoondgu Sep 12, 2023
43fe369
refactor: Info, Debug 레벨 커스텀 로그만 출력하도록 변경 (#397)
yoondgu Sep 12, 2023
de374f8
feat : pin 생성시 image upload 기능 추가 (#401)
kpeel5839 Sep 13, 2023
4722faa
[BE] Feat/#378 Admin API 구현 (#405)
cpot5620 Sep 15, 2023
a623d8f
Revert "[BE] Feat/#378 Admin API 구현 (#405)" (#414)
cpot5620 Sep 15, 2023
cd84646
[BE] Feat/#378 Admin API 구현 (#415)
cpot5620 Sep 15, 2023
5985872
[BE] Feature/#399 내 정보(회원 닉네임) 수정 API 구현 (#408)
yoondgu Sep 15, 2023
05c73ef
[BE] Refactor/#406 토픽 권한을 가진 회원 목록 조회 시 공개 여부를 함께 반환하도록 변경 (#412)
yoondgu Sep 15, 2023
f347809
[BE] Feature/#388 refresh token 및 로그아웃 기능 구현 (#411)
junpakPark Sep 17, 2023
5c52631
[BE] Fix/#424 refresh token duplicated (#425)
junpakPark Sep 17, 2023
f5e441b
[BE] Fix/#426 Token CORS 재설정 (#427)
junpakPark Sep 18, 2023
3d54c20
[BE] HotFix/#426 Refresh Token 중복 저장 방지 로직 수정 (#431)
junpakPark Sep 18, 2023
74178aa
[BE] HotFix/#426 delete 메서드에 clearAutomatically 속성 적용 (#432)
junpakPark Sep 18, 2023
9035773
[BE] HotFix/#426 tokenService flush 추가 (#433)
junpakPark Sep 18, 2023
2743fab
[BE] Refactor/#400 토픽 조회 시 업데이트 일시를 최근에 핀이 추가/변경된 일시로 변경 (#429)
yoondgu Sep 19, 2023
d355eb6
[BE] Feature/#422 성능 측정을 위한 로깅 구현 (#434)
cpot5620 Sep 19, 2023
cf39b5e
[BE] HotFix/#424 refresh token duplicated (#441)
junpakPark Sep 19, 2023
48c6a52
[BE] HOTFix/#424 validateTokensForReissue 디버깅을 위한 에러코드 추가 (#443)
junpakPark Sep 19, 2023
445f0dd
fix: isExpired 임시 log 처리 (#444)
junpakPark Sep 19, 2023
21081b9
Revert "fix: isExpired 임시 log 처리 (#444)"
junpakPark Sep 19, 2023
954199c
fix: cors Credentials 추가 (#458)
junpakPark Sep 20, 2023
3776882
[BE] Hotfix/cors allowHeaders 와일드카드 적용 (#462)
junpakPark Sep 20, 2023
ad7bcd4
[BE] 부하테스트를 위한 Tomcat Log 추가 (#464)
kpeel5839 Sep 20, 2023
327e80a
[BE] S3 를 통한 Image Upload 기능 구현 (#428)
kpeel5839 Sep 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/be-merge-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

pull_request:
branches: [ develop ]
branches: [ develop-BE ]
types: [ closed ]
paths: backend/**

Expand All @@ -19,12 +19,15 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_ACCESS_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: 테스트 환경변수 설정
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
Expand Down
47 changes: 25 additions & 22 deletions .github/workflows/be-merge-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,34 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_ACCESS_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: 테스트 환경변수 설정
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "TEST_JWT_EXPIRE_LENGTH=${{ secrets.TEST_JWT_EXPIRE_LENGTH }}" >> $GITHUB_ENV

- name: 테스트 환경변수 설정
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "TEST_JWT_EXPIRE_LENGTH=${{ secrets.TEST_JWT_EXPIRE_LENGTH }}" >> $GITHUB_ENV
- name: gradlew 실행 권한 부여
run: chmod +x gradlew
working-directory: backend

- name: gradlew 실행 권한 부여
run: chmod +x gradlew
working-directory: backend
- name: Gradle build 시작
run: ./gradlew clean build
working-directory: backend

- name: Gradle build 시작
run: ./gradlew clean build
working-directory: backend

- name: jar 파일 artifact에 업로드
uses: actions/upload-artifact@v3
with:
name: BackendApplication
path: backend/build/libs/mapbefine.jar
- name: jar 파일 artifact에 업로드
uses: actions/upload-artifact@v3
with:
name: BackendApplication
path: backend/build/libs/mapbefine.jar

deploy:
runs-on: [ self-hosted, prod ]
Expand Down
69 changes: 36 additions & 33 deletions .github/workflows/be-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

pull_request:
branches: [ main, develop ]
branches: [ main, develop-BE ]
paths: backend/**

permissions:
Expand All @@ -18,35 +18,38 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: 테스트 환경변수 설정
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "TEST_JWT_EXPIRE_LENGTH=${{ secrets.TEST_JWT_EXPIRE_LENGTH }}" >> $GITHUB_ENV

- name: gradlew 실행 권한 부여
run: chmod +x gradlew
working-directory: backend

- name: Gradle build 시작
run: ./gradlew clean build
working-directory: backend

- name: 테스트 결과를 PR에 코멘트로 등록합니다
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: 'backend/build/test-results/test/TEST-*.xml'

- name: 테스트 실패 시, 실패한 코드 라인에 Check 코멘트를 등록합니다
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_ACCESS_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: 테스트 환경변수 설정
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "TEST_JWT_EXPIRE_LENGTH=${{ secrets.TEST_JWT_EXPIRE_LENGTH }}" >> $GITHUB_ENV

- name: gradlew 실행 권한 부여
run: chmod +x gradlew
working-directory: backend

- name: Gradle build 시작
run: ./gradlew clean build
working-directory: backend

- name: 테스트 결과를 PR에 코멘트로 등록합니다
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: 'backend/build/test-results/test/TEST-*.xml'

- name: 테스트 실패 시, 실패한 코드 라인에 Check 코멘트를 등록합니다
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
token: ${{ github.token }}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "backend/src/main/resources/config"]
path = backend/src/main/resources/config
url = https://github.com/map-befine-official/map-befine-config.git
3 changes: 0 additions & 3 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ out/

### VS Code ###
.vscode/

### Logging ###
.log
5 changes: 5 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation group: 'com.github.maricn', name: 'logback-slack-appender', version: '1.6.1'

implementation 'mysql:mysql-connector-java:8.0.32'

Expand All @@ -44,6 +45,10 @@ dependencies {
testImplementation 'io.rest-assured:spring-mock-mvc'
testImplementation 'org.assertj:assertj-core:3.19.0'

// S3
implementation platform('com.amazonaws:aws-java-sdk-bom:1.11.1000')
implementation 'com.amazonaws:aws-java-sdk-s3'

compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'

Expand Down
10 changes: 5 additions & 5 deletions backend/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@

- 핀 상세 조회

#### 유저
#### 회원

- 유저 핀 생성
- 회원 핀 생성

- 유저 핀 정보 수정
- 회원 핀 정보 수정
- name, description 만 수정 가능하다.
- description 은 1000자 까지만 가능하다.

- 유저 핀 삭제
- 회원 핀 삭제
- Delete 는 Soft Delete

---

- 유저 핀 목록 조회
- 회원 핀 목록 조회
- 페이지 네이션 (무한 스크롤, 일단 15개)

29 changes: 29 additions & 0 deletions backend/src/docs/asciidoc/admin.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
== 관리자 기능

=== 전체 회원 조회

operation::admin-controller-test/find-all-member-details[snippets='http-request,http-response']

=== 회원 상세 조회

operation::admin-controller-test/find-member[snippets='http-request,http-response']

=== 회원 차단(삭제)

operation::admin-controller-test/delete-member[snippets='http-request,http-response']

=== 토픽 삭제

operation::admin-controller-test/delete-topic[snippets='http-request,http-response']

=== 토픽 이미지 삭제

operation::admin-controller-test/delete-topic-image[snippets='http-request,http-response']

=== 핀 삭제

operation::admin-controller-test/delete-pin[snippets='http-request,http-response']

=== 핀 이미지 삭제

operation::admin-controller-test/delete-pin-image[snippets='http-request,http-response']
13 changes: 13 additions & 0 deletions backend/src/docs/asciidoc/auth.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
== 소셜 로그인

=== KAKAO 로그인 URL 반환

operation::login-controller-test/redirection[snippets='http-request,http-response']

=== KAKAO 로그인

operation::login-controller-test/login[snippets='http-request,http-response']

=== 로그아웃

operation::login-controller-test/logout[snippets='http-request,http-response']
4 changes: 2 additions & 2 deletions backend/src/docs/asciidoc/bookmark.adoc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
== 즐겨찾기

=== 토픽을 유저의 즐겨찾기에 추가
=== 토픽을 회원의 즐겨찾기에 추가

operation::bookmark-controller-test/add-topic-in-bookmark[snippets='http-request,http-response']


=== 유저의 토픽 즐겨찾기 삭제
=== 회원의 토픽 즐겨찾기 삭제

operation::bookmark-controller-test/delete-topic-in-bookmark[snippets='http-request,http-response']
3 changes: 2 additions & 1 deletion backend/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ include::pin.adoc[]
include::atlas.adoc[]
include::member.adoc[]
include::permission.adoc[]
include::oauth.adoc[]
include::auth.adoc[]
include::bookmark.adoc[]
include::admin.adoc[]
18 changes: 11 additions & 7 deletions backend/src/docs/asciidoc/member.adoc
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
== 유저
== 회원

=== 유저 목록 조회
=== 회원 목록 조회

operation::member-controller-test/find-all-member[snippets='http-request,http-response']

=== 유저 단일 조회
=== 회원 단일 조회

operation::member-controller-test/find-member-by-id[snippets='http-request,http-response']

=== 유저의 나의 지도 목록 조회
=== 회원의 나의 지도 목록 조회

operation::member-controller-test/find-my-all-topics[snippets='http-request,http-response']

=== 유저의 나의 핀 목록 조회
=== 회원의 나의 핀 목록 조회

operation::member-controller-test/find-my-all-pins[snippets='http-request,http-response']

=== 유저의 모아보기 조회
=== 회원의 모아보기 조회

operation::member-controller-test/find-all-topics-in-atlas[snippets='http-request,http-response']

=== 유저의 즐겨찾기 조회
=== 회원의 즐겨찾기 조회

operation::member-controller-test/find-all-topics-in-bookmark[snippets='http-request,http-response']

=== 회원의 내 정보 수정

operation::member-controller-test/update-my-info[snippets='http-request,http-response']
9 changes: 0 additions & 9 deletions backend/src/docs/asciidoc/oauth.adoc

This file was deleted.

6 changes: 3 additions & 3 deletions backend/src/docs/asciidoc/permission.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ operation::permission-controller-test/add-permission[snippets='http-request,http

operation::permission-controller-test/delete-permission[snippets='http-request,http-response']

=== 토픽에 권한을 가진 유저 목록 조회
=== 토픽 접근 정보(권한 회원 목록 및 공개 여부) 조회

operation::permission-controller-test/find-all-topic-permissions[snippets='http-request,http-response']
operation::permission-controller-test/find-topic-access-detail-by-topic-id[snippets='http-request,http-response']

=== 토픽에 권한을 가진 유저 단일 조회
=== 토픽에 권한을 가진 회원 단일 조회

operation::permission-controller-test/find-permission-by-id[snippets='http-request,http-response']
2 changes: 1 addition & 1 deletion backend/src/docs/asciidoc/pin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ operation::pin-controller-test/find-all[snippets='http-request,http-response']

operation::pin-controller-test/find-by-id[snippets='http-request,http-response']

=== 멤버별 핀 목록 조회
=== 회원별 핀 목록 조회

operation::pin-controller-test/find-all-pins-by-member-id[snippets='http-request,http-response']

Expand Down
Loading