Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
7d3ca8a
Update README.md
17-sss May 3, 2021
a052649
Update README.md
17-sss May 3, 2021
d303c9a
Update README.md
17-sss May 3, 2021
d562a1e
docs: BE 초기 폴더구조
17-sss May 3, 2021
ddc4584
feat : 초기 세팅
choigiseong May 5, 2021
79f9857
feat : 초기 세팅
choigiseong May 5, 2021
dbaf985
feat : database 초기 설정
choigiseong May 5, 2021
075b2ea
test : 사용하지 않는 test 삭제
choigiseong May 5, 2021
56315c9
feat : team의 primary key를 name으로 변경
choigiseong May 5, 2021
d0c0f96
feat : team, player, record 추가
choigiseong May 5, 2021
89b0bdd
feat : data 추가
choigiseong May 5, 2021
63beab2
feat : 로그 설정 변경
choigiseong May 5, 2021
3ae9115
feat : team repository 추가
choigiseong May 5, 2021
a6d260e
test : 이름들이 잘 보이는 지 test
choigiseong May 5, 2021
3fd200f
feat : 생성자 추가
choigiseong May 5, 2021
44114e0
refactor : data 수정
choigiseong May 5, 2021
ef8e8f0
feat : log 설정 수정
choigiseong May 5, 2021
ae34eaf
feat : PK가 String 타입이라 변경
choigiseong May 5, 2021
ebb8bba
feat : game class 생성
choigiseong May 5, 2021
b696aad
feat : ScoreBoard class 정의
choigiseong May 5, 2021
678d412
feat : Innings class 추가
choigiseong May 5, 2021
6237401
feat : GameDAO 정의
choigiseong May 5, 2021
0307d04
feat : GameRepository 정의
choigiseong May 5, 2021
f9ce9ce
feat : PlayerDAO 정의
choigiseong May 5, 2021
b8d1d72
test : Game을 Test
choigiseong May 5, 2021
589f7fe
chore : 패키지 이동
choigiseong May 6, 2021
07a4b35
feat : data 추가
choigiseong May 6, 2021
b240b94
chore : 패키지 이동
choigiseong May 6, 2021
5ec184c
feat : inningsDAO 정의
choigiseong May 6, 2021
4d6e0c2
feat : Game svae, findById 변경
choigiseong May 6, 2021
7b20350
feat : ScoreBoardDAO 정의
choigiseong May 6, 2021
8426f8c
test : game test
choigiseong May 6, 2021
b93a818
test : ScoreBoard Test
choigiseong May 6, 2021
2ba6f6a
chore : 패키지 변경
choigiseong May 6, 2021
c8d89f4
feat : mainPageAPI 작성
choigiseong May 6, 2021
a1816c7
feat : propery 추가
choigiseong May 6, 2021
24303f3
feat : teamNameDTO 추가
choigiseong May 6, 2021
3618c42
feat : MainPageDTO 정의
choigiseong May 6, 2021
060f632
feat : TeamDTO 정의
choigiseong May 6, 2021
dd68e36
feat : PlayerDTO 정의
choigiseong May 6, 2021
81affef
feat : TeamChoiceDTO 정의
choigiseong May 6, 2021
a0539b5
feat : GamePlayDTO 정의
choigiseong May 6, 2021
65e47c8
feat : DTOConverter 정의
choigiseong May 6, 2021
556b9f3
style : 제네릭 삭제
choigiseong May 6, 2021
59a2619
refactor : game 생성자에서 id 삭제
choigiseong May 6, 2021
70448f3
fix : game 생성자의 순서를 미확인
choigiseong May 6, 2021
222da04
refactor : game 생성자에 id 삭제
choigiseong May 6, 2021
eacef73
feat : gameService 정의
choigiseong May 6, 2021
c719107
feat : TeamService 정의
choigiseong May 6, 2021
ef8c9aa
feat : TeamController 정의
choigiseong May 6, 2021
e3cc85b
chore : 패키지 이동
choigiseong May 6, 2021
4a0ae16
refactor : userType을 Enum으로 변경
choigiseong May 6, 2021
8f4e5a7
refactor : 선수들을 id순으로 정렬
choigiseong May 6, 2021
bcefb93
feat : playerDAO 기능 추가
choigiseong May 6, 2021
3e509b1
feat : record를 업데이트
choigiseong May 6, 2021
3507f6a
feat : playerController 작성
choigiseong May 6, 2021
e71bc86
feat : PlayerEventDTO 정의
choigiseong May 6, 2021
ebc0b6f
feat : playerService 정의
choigiseong May 6, 2021
2f253f8
feat : LogType 정의
choigiseong May 6, 2021
7971903
feat : url 변경
choigiseong May 7, 2021
cd38cfe
feat : gameController로 이름 변경
choigiseong May 7, 2021
7b54258
feat : 팀 득점 시 점수 플러스
choigiseong May 7, 2021
beba0e8
feat : logType을 enum으로 변경
choigiseong May 7, 2021
8e31f78
feat : 상세 점수 팝업 API
choigiseong May 7, 2021
e4face9
feat : 선수 명단 팝업 API 작성
choigiseong May 7, 2021
c0b0378
Merge pull request #16 from ChoiGiSung/featurh_BE/8
choigiseong May 7, 2021
7317fe5
Update README.md
17-sss May 7, 2021
e407e58
Update README.md
17-sss May 7, 2021
b3db97c
refactor : DAO를 리팩토링
choigiseong May 7, 2021
a89f1f6
refactor : team, player 부분 리팩토링
choigiseong May 7, 2021
aa807a3
refactor : gameDAO 리팩토링
choigiseong May 7, 2021
c66fb40
Merge pull request #18 from ChoiGiSung/feature_BE/17
choigiseong May 7, 2021
87300ee
refactor : template 삭제
choigiseong May 7, 2021
2fd12e6
chore : 패키지 이동
choigiseong May 7, 2021
922f516
fix : 오류 수정
choigiseong May 7, 2021
592f865
test : test 삭제
choigiseong May 7, 2021
285754e
feat : gitignore 설정 추가
choigiseong May 9, 2021
c10f30b
feat : gitignore 적용
choigiseong May 9, 2021
e6a10d5
Merge branch 'team-16' of https://github.com/ChoiGiSung/baseball into…
choigiseong May 10, 2021
72c6375
refactor : service로 책임 이전
choigiseong May 10, 2021
a73af2d
refactor : 로직의 책임을 이동
choigiseong May 10, 2021
12e1667
refactor : save 메소드 이름 변경
choigiseong May 10, 2021
7e988b1
refactor : 빌더 사용으로 변경
choigiseong May 10, 2021
2f3480b
refactor : 타율 제거
choigiseong May 10, 2021
cd054e2
refactor : sql 코틀린으로 변경
choigiseong May 10, 2021
5464b0e
Merge pull request #31 from ChoiGiSung/feature_BE/29
choigiseong May 10, 2021
f7be75c
feat : sql enum 삭제
choigiseong May 12, 2021
19a4018
feat : git ignore 변경
choigiseong May 12, 2021
2a40c0d
feat : 수제 oauth 라이브러리 추가
choigiseong May 12, 2021
d7e6798
feat : user class 정의
choigiseong May 12, 2021
75ca093
feat : userController 정의
choigiseong May 12, 2021
3d11e82
feat : github uri 정의
choigiseong May 12, 2021
caaef17
feat : user Table 정의
choigiseong May 12, 2021
c384a25
feat : userService 에서 새로운 user인지 검증
choigiseong May 12, 2021
127e9a4
feat : secretkey를 관리 하기 위한 class 정의
choigiseong May 12, 2021
101a48c
feat : user 검사 시 creat할지 update 할지
choigiseong May 12, 2021
d4d3bb7
chore : 패키지 이동
choigiseong May 12, 2021
94db7ab
feat : Oauth 토큰 사용시간 연장
choigiseong May 12, 2021
3def2a0
feat : jwt 시간 만료 시 예외
choigiseong May 12, 2021
d5113bc
feat : 3000 포트는 cors 열어주기
choigiseong May 14, 2021
660559e
Merge pull request #49 from ChoiGiSung/feature_BE/10
choigiseong May 14, 2021
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
43 changes: 43 additions & 0 deletions BE/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### properties 제외 ###
/src/main/resources/application.properties

### server_secret 제외 ###
/src/main/resources/server.secret.json
37 changes: 37 additions & 0 deletions BE/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
plugins {
id 'org.springframework.boot' version '2.4.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.4.32'
}

group = 'com.codesquad'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
runtimeOnly 'mysql:mysql-connector-java'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation files('build/libs/gitOauthV5.jar')
}

test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
Binary file added BE/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions BE/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
185 changes: 185 additions & 0 deletions BE/gradlew

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

89 changes: 89 additions & 0 deletions BE/gradlew.bat

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

1 change: 1 addition & 0 deletions BE/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'coco'
13 changes: 13 additions & 0 deletions BE/src/main/java/com/codesquad/coco/CocoApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.codesquad.coco;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class CocoApplication {

public static void main(String[] args) {
SpringApplication.run(CocoApplication.class, args);
}

}
16 changes: 16 additions & 0 deletions BE/src/main/java/com/codesquad/coco/WebConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.codesquad.coco;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000")
.allowedMethods("*");
}
}
Loading