Skip to content

Commit

Permalink
feat: v2.0.0 배포
Browse files Browse the repository at this point in the history
Co-authored-by: 3juhwan <[email protected]>
Co-authored-by: juha <[email protected]>
Co-authored-by: kunsanglee <[email protected]>
  • Loading branch information
4 people committed Sep 27, 2024
1 parent 8298abe commit 9d3a590
Show file tree
Hide file tree
Showing 153 changed files with 223,965 additions and 0 deletions.
1,362 changes: 1,362 additions & 0 deletions .idea/dataSources/a153963e-0410-4afc-ba3b-4e49c756008e.xml

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules/haengdong.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140,044 changes: 140,044 additions & 0 deletions logs/spring-boot-application.2024-08-07.log

Large diffs are not rendered by default.

69,286 changes: 69,286 additions & 0 deletions logs/spring-boot-application.log

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions server/Dockerfile
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"]
87 changes: 87 additions & 0 deletions server/build.gradle
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
}
65 changes: 65 additions & 0 deletions server/docs/24-08-04-erd.sql
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);
4 changes: 4 additions & 0 deletions server/docs/24-08-04-erd.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added server/docs/migration.sql
Empty file.
Binary file added server/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions server/gradle/wrapper/gradle-wrapper.properties
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
Loading

0 comments on commit 9d3a590

Please sign in to comment.