Skip to content

Commit

Permalink
⚙️ Update project core
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Oct 3, 2024
1 parent 0560c12 commit 41de776
Show file tree
Hide file tree
Showing 9 changed files with 559 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
docker-compose.yml
Dockerfile

HELP.md
.gradle
build/
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div align="center">

```plaintext
__ __ ______ ______ __ __ __
/\ \ _ \ \ /\ ___\ /\ ___\ /\ \/ / /\ \
\ \ \/ ".\ \ \ \ __\ \ \___ \ \ \ _"-. \ \ \
\ \__/".~\_\ \ \_____\ \/\_____\ \ \_\ \_\ \ \_\
\/_/ \/_/ \/_____/ \/_____/ \/_/\/_/ \/_/
```

<img width="500" alt="image" src="https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExbjQ4d3Y4dmQyZnZscTh4cHIxZHkycTZxYmQ0c3lkcDF4NjY3MTFiaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/6q2TpPa8QC0S7tWp2V/giphy.gif">

</div>
21 changes: 21 additions & 0 deletions http/API-TEST.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
### 변수 설정
@resortId = 1

### 스키장 정보 조회 API
GET http://localhost:8080/api/ski-resorts

### 날씨 정보 조회 API
GET http://localhost:8080/api/weather/{{resortId}}

### 슬로프 정보 조회 API
GET http://localhost:8080/api/slopes/{{resortId}}

### 설질 정보 조회 API
GET http://localhost:8080/api/snow-maker/{{resortId}}

### 설질 투표 API(부정)
POST http://localhost:8080/api/snow-maker/{{resortId}}/vote?isPositive=false

### 설질 투표 API(긍정)
POST http://localhost:8080/api/snow-maker/{{resortId}}/vote?isPositive=true

496 changes: 496 additions & 0 deletions init.sql

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/main/kotlin/nexters/weski/WeskiApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ package nexters.weski

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.data.jpa.repository.config.EnableJpaAuditing

@SpringBootApplication
@EnableJpaAuditing
@SpringBootApplication(scanBasePackages = ["nexters.weski"])
class WeskiApplication

fun main(args: Array<String>) {
Expand Down
14 changes: 14 additions & 0 deletions src/main/kotlin/nexters/weski/common/config/JpaConfig.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package nexters.weski.common.config

import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.context.annotation.Configuration
import org.springframework.data.jpa.repository.config.EnableJpaAuditing
import org.springframework.data.jpa.repository.config.EnableJpaRepositories
import org.springframework.transaction.annotation.EnableTransactionManagement

@Configuration
@EnableJpaAuditing
@EnableTransactionManagement
@EntityScan("nexters.weski")
@EnableJpaRepositories(basePackages = ["nexters.weski"])
class JpaConfig
7 changes: 5 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ spring:
application:
name: weski
datasource:
url: jdbc:mysql://localhost:3306/ski_db?useSSL=false&serverTimezone=UTC&characterEncoding=UTF-8
url: jdbc:mysql://172.17.0.1:3306/ski_db?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
# url: jdbc:mysql://localhost:3306/ski_db?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
username: master
password: master
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: update
show-sql: true
open-in-view: false
properties:
hibernate:
format_sql: true
format_sql: true
dialect: org.hibernate.dialect.MySQL8Dialect
6 changes: 6 additions & 0 deletions src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__ __ ______ ______ __ __ __
/\ \ _ \ \ /\ ___\ /\ ___\ /\ \/ / /\ \
\ \ \/ ".\ \ \ \ __\ \ \___ \ \ \ _"-. \ \ \
\ \__/".~\_\ \ \_____\ \/\_____\ \ \_\ \_\ \ \_\
\/_/ \/_/ \/_____/ \/_____/ \/_/\/_/ \/_/
Powered by Spring Boot ${spring-boot.version}
13 changes: 0 additions & 13 deletions src/test/kotlin/nexters/weski/WeskiApplicationTests.kt

This file was deleted.

0 comments on commit 41de776

Please sign in to comment.