-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: 3juhwan <[email protected]> Co-authored-by: juha <[email protected]> Co-authored-by: kunsanglee <[email protected]>
- Loading branch information
1 parent
8298abe
commit 9d3a590
Showing
153 changed files
with
223,965 additions
and
0 deletions.
There are no files selected for viewing
1,362 changes: 1,362 additions & 0 deletions
1,362
.idea/dataSources/a153963e-0410-4afc-ba3b-4e49c756008e.xml
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...ources/a153963e-0410-4afc-ba3b-4e49c756008e/storage_v2/_src_/schema/haengdong.SSaEOA.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
140,044 changes: 140,044 additions & 0 deletions
140,044
logs/spring-boot-application.2024-08-07.log
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
FROM openjdk:17-jdk-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY /build/libs/*.jar /app/haengdong-0.0.1-SNAPSHOT.jar | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["java"] | ||
CMD ["-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "-Duser.timezone=Asia/Seoul", "-jar", "haengdong-0.0.1-SNAPSHOT.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,87 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.springframework.boot' version '3.3.1' | ||
id 'io.spring.dependency-management' version '1.1.5' | ||
id 'org.asciidoctor.jvm.convert' version '3.3.2' | ||
} | ||
|
||
group = 'server' | ||
version = '0.0.1-SNAPSHOT' | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
configurations { | ||
compileOnly { | ||
extendsFrom annotationProcessor | ||
} | ||
asciidoctorExt | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | ||
implementation 'org.springframework.boot:spring-boot-starter-web' | ||
implementation 'org.springframework.boot:spring-boot-starter-validation' | ||
implementation 'org.springframework.boot:spring-boot-starter-actuator' | ||
|
||
implementation 'io.jsonwebtoken:jjwt:0.9.1' | ||
implementation 'javax.xml.bind:jaxb-api:2.3.1' | ||
|
||
compileOnly 'org.projectlombok:lombok' | ||
annotationProcessor 'org.projectlombok:lombok' | ||
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' | ||
|
||
runtimeOnly 'com.h2database:h2' | ||
runtimeOnly 'com.mysql:mysql-connector-j' | ||
|
||
testImplementation 'org.springframework.boot:spring-boot-starter-test' | ||
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' | ||
|
||
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor' | ||
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc' | ||
} | ||
|
||
ext { | ||
snippetsDir = file('build/generated-snippets') | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
outputs.dir snippetsDir | ||
} | ||
|
||
asciidoctor { | ||
inputs.dir snippetsDir | ||
configurations 'asciidoctorExt' | ||
baseDirFollowsSourceFile() | ||
dependsOn test | ||
} | ||
|
||
tasks.resolveMainClassName { | ||
dependsOn 'copyApiDocuments' | ||
} | ||
|
||
tasks.register('copyApiDocuments', Copy) { | ||
dependsOn asciidoctor | ||
from file("build/docs/asciidoc") | ||
into file("build/resources/main/static/docs") | ||
} | ||
|
||
bootJar { | ||
dependsOn copyApiDocuments | ||
} | ||
|
||
jar { | ||
enabled = false | ||
} | ||
|
||
build { | ||
dependsOn copyApiDocuments | ||
} |
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,65 @@ | ||
-- Create tables | ||
CREATE TABLE action | ||
( | ||
event_id BIGINT, | ||
id BIGINT AUTO_INCREMENT, | ||
sequence BIGINT, | ||
PRIMARY KEY (id) | ||
); | ||
|
||
CREATE TABLE bill_action | ||
( | ||
action_id BIGINT UNIQUE, | ||
id BIGINT AUTO_INCREMENT, | ||
price BIGINT, | ||
title VARCHAR(30), | ||
PRIMARY KEY (id) | ||
); | ||
|
||
CREATE TABLE event | ||
( | ||
id BIGINT AUTO_INCREMENT, | ||
name VARCHAR(255), | ||
token VARCHAR(255), | ||
PRIMARY KEY (id) | ||
); | ||
|
||
CREATE TABLE event_step | ||
( | ||
event_id BIGINT, | ||
id BIGINT AUTO_INCREMENT, | ||
sequence BIGINT, | ||
name VARCHAR(255), | ||
PRIMARY KEY (id) | ||
); | ||
|
||
CREATE TABLE member_action | ||
( | ||
action_id BIGINT UNIQUE, | ||
id BIGINT AUTO_INCREMENT, | ||
member_group_id BIGINT, | ||
member_name VARCHAR(255), | ||
status ENUM('IN', 'OUT'), | ||
PRIMARY KEY (id) | ||
); | ||
|
||
-- Add foreign key constraints | ||
ALTER TABLE action | ||
ADD CONSTRAINT FKgf0qmub9va1xbe44nehny31yw | ||
FOREIGN KEY (event_id) | ||
REFERENCES event (id); | ||
|
||
ALTER TABLE bill_action | ||
ADD CONSTRAINT FK54tx517tp0ry6453olkply4us | ||
FOREIGN KEY (action_id) | ||
REFERENCES action (id); | ||
|
||
ALTER TABLE event_step | ||
ADD CONSTRAINT FKe3rkib91cvl0x5w9wqkshmn81 | ||
FOREIGN KEY (event_id) | ||
REFERENCES event (id); | ||
|
||
ALTER TABLE member_action | ||
ADD CONSTRAINT FK5jna51dn8fs2ir52l4uwn517u | ||
FOREIGN KEY (action_id) | ||
REFERENCES action (id); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Binary file not shown.
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,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.