-
Notifications
You must be signed in to change notification settings - Fork 3
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
25 changed files
with
197 additions
and
34 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 |
---|---|---|
|
@@ -56,4 +56,4 @@ logs/api | |
/my/ | ||
/logback-api-test.xml | ||
|
||
domain/src/main/generated | ||
domain/src/main/generated |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# badminton-admin Dockerfile | ||
|
||
FROM amazoncorretto:17 | ||
|
||
LABEL authors="hit team" | ||
|
||
COPY build/libs/admin.jar /admin.jar | ||
|
||
ENTRYPOINT ["java", "-jar", "/admin.jar"] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
dependencies { | ||
implementation project(':domain') | ||
implementation project(':infrastructure') | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.6.0' | ||
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.5.RELEASE' | ||
|
||
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.3' | ||
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.3' | ||
|
||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
bootJar { | ||
enabled = true | ||
} | ||
|
||
jar { | ||
enabled = false | ||
} |
11 changes: 11 additions & 0 deletions
11
admin/src/main/java/org/badminton/admin/BadmintonAdminApplication.java
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.badminton.admin; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class BadmintonAdminApplication { | ||
public static void main(String[] args) { | ||
SpringApplication.run(BadmintonAdminApplication.class, args); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
admin/src/main/java/org/badminton/admin/application/board/BoardFacade.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package org.badminton.admin.application.board; | ||
|
||
public class BoardFacade { | ||
} |
4 changes: 4 additions & 0 deletions
4
admin/src/main/java/org/badminton/admin/interfaces/board/BoardController.java
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package org.badminton.admin.interfaces.board; | ||
|
||
public class BoardController { | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
spring: | ||
application: | ||
name: badminton | ||
jpa: | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
dialect: org.hibernate.dialect.MySQL8Dialect | ||
hibernate: | ||
ddl-auto: ${DDL_METHOD_API} | ||
naming: | ||
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl | ||
defer-datasource-initialization: true | ||
messages: | ||
encoding: UTF-8 | ||
basename: messages | ||
sql: | ||
init: | ||
mode: ${SQL_MODE} | ||
datasource: | ||
url: ${DATABASE_URL} | ||
username: ${DATABASE_USER_NAME} | ||
password: ${DATABASE_USER_PASSWORD} | ||
driver-class-name: ${DATABASE_DRIVER} | ||
|
||
cloud: | ||
aws: | ||
credentials: | ||
access-key: ${S3_ACCESS_KEY} | ||
secret-key: ${S3_SECRET_KEY} | ||
region: | ||
static: ap-northeast-2 # 버킷의 리전 | ||
s3: | ||
bucket: badminton-team # 버킷 이름 | ||
stack: | ||
auto: false |
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
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
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
9 changes: 9 additions & 0 deletions
9
api/src/main/java/org/badminton/api/interfaces/league/dto/IsLeagueParticipantResponse.java
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.badminton.api.interfaces.league.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record IsLeagueParticipantResponse( | ||
@Schema(description = "해당하는 경기에 참여 신청을 했는지 여부", requiredMode = Schema.RequiredMode.REQUIRED) | ||
boolean isParticipatedInLeague | ||
) { | ||
} |
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
3 changes: 2 additions & 1 deletion
3
domain/src/main/java/org/badminton/domain/domain/league/LeagueParticipantService.java
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
Oops, something went wrong.