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

feat: admin 초기 세팅 #420

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions admin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dependencies {
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'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package springproject;
package org.badminton.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.badminton.admin.application.board;

public class BoardFacade {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.badminton.admin.interfaces.board;

public class BoardController {
}
36 changes: 36 additions & 0 deletions admin/src/main/resources/application.yaml
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