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

[4기 홍혁준, 신재윤, 박세연] Spring Boot JPA로 게시판 구현 미션 제출합니다. #229

Open
wants to merge 12 commits into
base: 혁준,재윤,세연-mission
Choose a base branch
from
Open
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
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!src/main/**
!src/test/**

### macOS ###
.DS_Store

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/

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

### VS Code ###
.vscode/

# Ignore Gradle build output directory
build

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Avoid ignore Gradle wrappper properties
!gradle-wrapper.properties

# Cache of project
.gradletasknamecache

### Gradle Patch ###
# Java heap dump
*.hprof

# log file
logs/

# docker
docker/database

# Yaml
/src/main/resources/application-local.yml
/src/test/resources/application.yml
42 changes: 30 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
# [미션] Spring Boot JPA로 게시판 구현

## 미션 소개 😎
Spring Boot JPA - Rest API를 강의를 듣고, 게시판 구현 미션을 수행해봅시다.
## 조셉팀 페어 프로그래밍 구성원

## 이곳은 공개 Repo입니다.
1. 여러분의 포트폴리오로 사용하셔도 됩니다.
2. 때문에 이 repo를 fork한 뒤
3. 여러분의 개인 Repo에 작업하며
4. 이 Repo에 PR을 보내어 멘토의 코드 리뷰와 피드백을 받으세요.

## Branch 명명 규칙
1. 여러분 repo는 알아서 해주시고 😀(본인 레포니 main으로 하셔두 되져)
2. prgrms-be-devcourse/spring-board 레포로 PR시 branch는 본인 username을 적어주세요 :)
base repo : `여기repo` base : `username` ← head repo : `여러분repo` compare : `main`
<table>
<tr>
<td>
<a href="https://github.com/HyuckJuneHong">
<img src="https://avatars.githubusercontent.com/u/31675711?v=4" width="100px" />
</a>
</td>
<td>
<a href="https://github.com/Shin-Jae-Yoon">
<img src="https://avatars.githubusercontent.com/u/87688023?v=4" width="100px" />
</a>
</td>
<td>
<a href="https://github.com/parksey">
<img src="https://avatars.githubusercontent.com/u/54196094?v=4" width="100px" />
</a>
</td>
</tr>
<tr>
<td><b>홍혁준</b></td>
<td><b>신재윤</b></td>
<td><b>박세연</b></td>
</tr>
<tr>
<td><b>조셉팀</b></td>
<td><b>조셉팀</b></td>
<td><b>조셉팀</b></td>
</tr>
</table>
97 changes: 97 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.2'
id 'io.spring.dependency-management' version '1.1.2'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
}

group = 'kr.co'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}

asciidoctorExt
}

repositories {
mavenCentral()
}

ext {
snippetsDir = file('build/generated-snippets')
}

//ext {
// asciidocVersion = "2.0.6.RELEASE"
// snippetsDir = file('build/generated-snippets')
//}

dependencies {
// JPA
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'

// Validation
implementation 'org.springframework.boot:spring-boot-starter-validation'

// Web
implementation 'org.springframework.boot:spring-boot-starter-web'

// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

// Dev-Tool
developmentOnly 'org.springframework.boot:spring-boot-devtools'

// H2
runtimeOnly 'com.h2database:h2'

// Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'

// Rest-Docs
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
}

test {
outputs.dir snippetsDir
}

tasks.named('test') {
outputs.dir snippetsDir
useJUnitPlatform()
}

asciidoctor {
inputs.dir snippetsDir
configurations 'asciidoctorExt'
dependsOn test
}

task copyDocument(type: Copy) {
dependsOn asciidoctor
doFirst {
delete file('src/main/resources/static/docs')
}
from file("build/docs/asciidoc")
into file("src/main/resources/static/docs")
}

build {
dependsOn copyDocument
}

bootJar {
dependsOn asciidoctor
from("${asciidoctor.outputDir}/html5") {
into 'static/docs'
}
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions 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.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading