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

pull main #25

Merged
merged 82 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
9b96ef9
feat : comment-modeling-fin
HwangJerry Jul 24, 2023
72a9712
feature/likecomment-modeling-fin
HwangJerry Jul 25, 2023
97790ec
feature/likecomment-basetimeentity-applied
HwangJerry Jul 25, 2023
b14c3d2
feat : 그래ë들 세팅 완료 및 스웨ì„거 설정
HwangJerry Jul 27, 2023
e411ed5
fix : om removed
HwangJerry Jul 27, 2023
0e5c09d
post modeling
chs98412 Jul 28, 2023
451e2c2
likepost modeling
chs98412 Jul 28, 2023
d39cb4f
enums setting
chs98412 Jul 28, 2023
9826032
feat: Post dto 생성
chs98412 Jul 28, 2023
a66b6bb
feat: Post Repository 생성
chs98412 Jul 28, 2023
fd545ab
feat: Post 서비스 구현
chs98412 Jul 28, 2023
7a84cb6
feat : add staging.yml
HwangJerry Jul 29, 2023
47cf248
Merge branch 'feature/community' of https://github.com/LikelionUniv/S…
HwangJerry Jul 29, 2023
19972b3
feat : add commentService -> create & update
HwangJerry Jul 29, 2023
43f5f07
feat : comment CUD api:v1 fin
HwangJerry Jul 30, 2023
9933716
fix : set entity fields nullable=false
HwangJerry Jul 30, 2023
2ecc07b
fix : java version reset to 17
HwangJerry Aug 2, 2023
deed7e4
feature : ìexception handling - return format sync
HwangJerry Aug 2, 2023
e42ec7c
fix : yml에 ë reset
HwangJerry Aug 2, 2023
5025c0f
fix: postservice 인터페이스 수정
chs98412 Aug 3, 2023
1340ac0
fix: postservice 구현체 수정
chs98412 Aug 3, 2023
8935d7f
feat: postController 작성
chs98412 Aug 3, 2023
21a5e17
fix : remove value attr
HwangJerry Aug 3, 2023
ebb9979
Merge branch 'feature/community' of https://github.com/LikelionUniv/S…
HwangJerry Aug 3, 2023
6815adc
fix : modified gitignore
HwangJerry Aug 3, 2023
3c8d49b
merge commit
HwangJerry Aug 12, 2023
f889f07
fix: merge confilct fix
HwangJerry Aug 23, 2023
2108ac8
fix: common application.yml ëëadded encoding
HwangJerry Aug 23, 2023
055340a
feature : comment CUD fin
HwangJerry Aug 24, 2023
18793bf
feature : comment ~ readAll api fin
HwangJerry Aug 27, 2023
1ea67d6
feat: 패키지 구조 변경, create 기능 작성
chs98412 Aug 31, 2023
d1a75bc
feat: edit, delete 기능
chs98412 Aug 31, 2023
8b53048
feat: 페이징 조회
chs98412 Aug 31, 2023
43f8d8d
fix : comment builder fixed
HwangJerry Aug 31, 2023
d389c68
fix : comment builder fixed
HwangJerry Aug 31, 2023
b2c497e
fix: 주석 해제
chs98412 Sep 12, 2023
4490409
feat: LikePost
chs98412 Sep 12, 2023
95fd140
fix: post 예외처리
chs98412 Sep 12, 2023
4b4ff27
user 코드 주석 해제
chs98412 Sep 19, 2023
057b58b
fix : fit to HEAD to solve conflict
HwangJerry Sep 29, 2023
671679b
fix : repackaging community
HwangJerry Sep 29, 2023
2562544
fix : field injection into constructor injection
HwangJerry Sep 30, 2023
6ca6fa1
fix : dedupe
HwangJerry Sep 30, 2023
05301f3
fix : refactored likepost
HwangJerry Sep 30, 2023
ca76978
fix: remove common.yml encoding configuration
HwangJerry Sep 30, 2023
8f5b242
fix : follow convention
HwangJerry Sep 30, 2023
01ae3ad
fix : refactored post
HwangJerry Sep 30, 2023
e8089f6
fix : refactored Comment
HwangJerry Sep 30, 2023
d807184
fix : refactored commentLike
HwangJerry Sep 30, 2023
e9eec2a
fix : hide user entity from dto
HwangJerry Oct 1, 2023
e2d430c
fix : refactored postlike
HwangJerry Oct 1, 2023
fcf7695
fix : repackage like
HwangJerry Oct 1, 2023
0698563
fix : bug fixed
HwangJerry Oct 3, 2023
34d3301
fix : swagger authorization에러 fix
seulgi99 Oct 4, 2023
952557f
feature : post api - findByAuthor
HwangJerry Oct 6, 2023
742b8c8
feature : add getPostsByCommentAuthor
HwangJerry Oct 6, 2023
3bdedbd
feature : add findLikedPosts
HwangJerry Oct 6, 2023
86bfec5
fix : solve merge conflict
HwangJerry Oct 6, 2023
79d2098
fix : error fixed
HwangJerry Oct 6, 2023
bd7cfcd
fix : commentcontroller uri
HwangJerry Oct 8, 2023
5666395
fix : commentlikecontoller uri
HwangJerry Oct 8, 2023
bd8bce8
fix : ddl-update
HwangJerry Oct 8, 2023
18458d1
fix : comment/get api param correction
HwangJerry Oct 8, 2023
d0aa7c0
fix : bug fixed
HwangJerry Oct 8, 2023
cdbff87
fix : mypage/get specific posts apis
HwangJerry Oct 8, 2023
5f3a13d
feature : add swagger annotations on community apis
HwangJerry Oct 8, 2023
d7960d0
fix : get comments
HwangJerry Oct 8, 2023
e4c170f
fix : comment body into TEXT
HwangJerry Oct 8, 2023
cf50dae
[force-merge] Merge pull request #21 from LikelionUniv/feature/community
HwangJerry Oct 8, 2023
cd11407
Create stag-client-api-deploy.yml
seulgi99 Oct 9, 2023
652e2d5
Merge pull request #22 from LikelionUniv/seulgi99-patch-1
seulgi99 Oct 9, 2023
9813597
Update stag-client-api-deploy.yml
seulgi99 Oct 9, 2023
2d679f6
Merge pull request #23 from LikelionUniv/seulgi99-patch-1
seulgi99 Oct 9, 2023
52ea968
Update stag-client-api-deploy.yml
seulgi99 Oct 9, 2023
e1fa50d
Update stag-client-api-deploy.yml
seulgi99 Oct 9, 2023
fbaba88
Update stag-client-api-deploy.yml
seulgi99 Oct 9, 2023
de88e04
chore : client Docker파일 수정
seulgi99 Oct 9, 2023
f6336c5
chore : admin Docker파일 수정
seulgi99 Oct 9, 2023
94d0878
chore : client Dockerfile 수정
seulgi99 Oct 9, 2023
a893d35
Update stag-client-api-deploy.yml
seulgi99 Oct 9, 2023
55d5053
Update stag-client-api-deploy.yml
seulgi99 Oct 9, 2023
ff6a821
fix : QueryDslConfig 하나삭제
seulgi99 Oct 9, 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
48 changes: 48 additions & 0 deletions .github/workflows/stag-client-api-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: stag-client-api-deploy

on:
push:
branches: [ "stag/client" ]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'

- name: app clean
run: ./gradlew clean

- name: client api build
run: ./gradlew :likelion-client:build -x test

- name: Docker login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_EMAIL }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: ./likelion-client
push: true
tags: ${{ secrets.DOCKER_CLIENT_API_STAG_IMAGE }}
build-args: PROFILE=stag

- name: client-api-deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ubuntu
key: ${{ secrets.KEY }}
script: |
sudo docker rm -f ${{ secrets.DOCKER_CLIENT_API_STAG_CONTAINER }}
sudo docker rmi ${{ secrets.DOCKER_CLIENT_API_STAG_IMAGE }}
docker-compose -f ${{ secrets.DOCKER_COMPOSE_DIRECTORY }} up -d
docker image prune -f
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ out/
### env file ###
.env.dev
.env.*

### .DS_Store ignore ###
.DS_Store
46 changes: 26 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
plugins {
id 'java'
id 'java-library'
id 'org.springframework.boot' version '2.7.13'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}

group = 'likelion.univ'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
}
allprojects {
group = 'likelion.univ'
version = '0.0.1-SNAPSHOT'

configurations {
compileOnly {
extendsFrom annotationProcessor
java {
sourceCompatibility = 17
targetCompatibility = 17
}
repositories {
mavenCentral()
}
dependencies {
// implementation 'org.springframework.boot:spring-boot-starter'
// annotationProcessor('org.springframework.boot:spring-boot-configuration-processor:3.0.4')
}
}

Expand All @@ -30,21 +34,23 @@ subprojects {
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

sourceCompatibility = 17
targetCompatibility = 17

group = 'likelion.univ'
version = '0.0.1-SNAPSHOT'

repositories {
mavenCentral()
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
}
test {
useJUnitPlatform()
}
}
bootJar {
enabled = false
}

5 changes: 2 additions & 3 deletions likelion-admin/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM openjdk:17
ARG JAR_FILE=build/libs/*.jar
ARG JAR_FILE=./build/libs/*.jar
COPY ${JAR_FILE} app.jar
EXPOSE 8090

ENTRYPOINT ["java","-jar","-Duser.timezone=Asia/Seoul","-Dspring.profiles.active=${PROFILE}","/app.jar"]
ENTRYPOINT ["java","-jar","-Duser.timezone=Asia/Seoul","-Dspring.profiles.active=${PROFILE}","/app.jar"]
23 changes: 1 addition & 22 deletions likelion-admin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
plugins {
id 'java'
}

group = 'likelion.univ'
version = '0.0.1-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {

implementation 'org.springframework.boot:spring-boot-starter-validation'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
Expand All @@ -28,14 +18,3 @@ dependencies {
implementation project(':likelion-infrastructure')
}

test {
useJUnitPlatform()
}

bootJar {
enabled = true
}

jar {
enabled = true
}
2 changes: 1 addition & 1 deletion likelion-admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ spring:
spring:
config:
activate:
on-profile: prod
on-profile: prod
5 changes: 2 additions & 3 deletions likelion-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM openjdk:17
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
COPY ./build/libs/*.jar app.jar

ENTRYPOINT ["java","-jar","-Duser.timezone=Asia/Seoul","-Dspring.profiles.active=${PROFILE}","/app.jar"]
ENTRYPOINT ["java","-jar","-Duser.timezone=Asia/Seoul","-Dspring.profiles.active=${PROFILE}","/app.jar"]
27 changes: 3 additions & 24 deletions likelion-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
plugins {
id 'java'
}

group = 'likelion.univ'
version = '0.0.1-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {
/* pageable */
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'

/* security */
implementation 'org.springframework.boot:spring-boot-starter-security'
/* swagger */
Expand All @@ -23,6 +11,8 @@ dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'



/* core 모듈 추가 */
implementation project(':likelion-core')
/* redis 모듈 추가 */
Expand All @@ -35,14 +25,3 @@ dependencies {
implementation project(':likelion-infrastructure')
}

test {
useJUnitPlatform()
}

bootJar {
enabled = true
}

jar {
enabled = true
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import likelion.univ.auth.usecase.SignUpUseCase;
import likelion.univ.auth.dto.request.SignUpRequestDto;
import likelion.univ.response.SuccessResponse;
import likelion.univ.utils.AuthentiatedUserUtils;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

Expand All @@ -23,6 +24,7 @@ public class AuthController {
private final RequestIdTokenUseCase requestIdTokenUseCase;
private final SignUpUseCase signUpUseCase;
private final RefreshTokenUseCase refreshTokenUseCase;
private final AuthentiatedUserUtils userUtils;

@Operation(summary = "id token 발급", description = "인가 코드로 id token을 발급받습니다.")
@GetMapping("/{logintype}/idtoken")
Expand All @@ -49,7 +51,6 @@ public SuccessResponse<Object> signUp(
@RequestParam("idtoken") String idToken,
@PathVariable("logintype") String loginType,
@RequestBody SignUpRequestDto signUpRequestDto){

AccountTokenDto accountTokenDto = signUpUseCase.execute(loginType,idToken,signUpRequestDto);
return SuccessResponse.of(accountTokenDto);
}
Expand All @@ -61,4 +62,10 @@ public SuccessResponse<Object> refreshToken(
AccountTokenDto accountTokenDto = refreshTokenUseCase.execute(refreshToken);
return SuccessResponse.of(accountTokenDto);
}

@Operation(summary = "로그인 유저 Id 반환", description = "(for client only) 로그인 중인 유저의 Id를 얻습니다.")
@GetMapping("/loginuserid")
public SuccessResponse<?> getLoginUserId() {
return SuccessResponse.of(userUtils.getCurrentUserId());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public AccountTokenDto execute(String loginType,
SignUpRequestDto signUpRequestDto){
UserInfoFromIdToken userInfo = loginByIdTokenProcessor.execute(loginType, idToken);
if (!userAdaptor.checkEmail(userInfo.getEmail())){
Profile profile = Profile.profileForSignUp(userInfo.getNickname(),
userInfo.getProfileImage());
Profile profile = Profile.fromName(signUpRequestDto.getName());

University university = universityAdaptor.findByName(signUpRequestDto.getUniversityName());
UniversityInfo universityInfo = UniversityInfo.universityInfoForSignUp(university,
Expand Down

This file was deleted.

Loading