Skip to content

Commit dab2ba3

Browse files
authored
Merge pull request #215 from woowacourse-teams/develop
스프린트 3 Merge
2 parents 8f98733 + 1ea7d2e commit dab2ba3

417 files changed

Lines changed: 19278 additions & 4802 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
distribution: 'temurin'
2828

2929
- name: Build
30-
run: ./gradlew build --exclude-task test
30+
run: ./gradlew build --exclude-task test --exclude-task asciidoctor
3131

3232
- name: Test
3333
env:

.github/workflows/deploy-backend-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
distribution: 'temurin'
3030

3131
- name: Build
32-
run: ./gradlew build --exclude-task test
32+
run: ./gradlew build --exclude-task test --exclude-task asciidoctor
3333

3434
- name: Test
3535
env:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy Frontend Dev
2+
3+
on:
4+
push:
5+
branches: ["develop"]
6+
7+
defaults:
8+
run:
9+
working-directory: frontend
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [16.x]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: "npm"
27+
cache-dependency-path: "./frontend/package-lock.json"
28+
29+
- name: Install
30+
run: npm install
31+
32+
- name: Build
33+
run: npm run build-dev
34+
35+
- uses: cypress-io/github-action@v2
36+
with:
37+
start: npm run start
38+
wait-on: "http://localhost:3000"
39+
working-directory: frontend
40+
config-file: cypress.config.ts
41+
42+
- name: Deploy
43+
run: curl ${{ secrets.FE_DEV_DEPLOY_REQUEST_URL }}

.github/workflows/frontend.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: frontend
22

33
on:
4-
push:
5-
branches: [ "main", "develop" ]
64
pull_request:
75
branches: [ "main", "develop" ]
86

backend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ out/
3838

3939
/src/main/resources/application-security.yml
4040
/src/test/resources/application-security.yml
41+
/src/main/resources/static/docs/index.html

backend/build.gradle

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
buildscript {
2-
ext {
3-
queryDslVersion = "5.0.0"
4-
}
5-
}
6-
71
plugins {
82
id 'org.springframework.boot' version '2.6.9'
93
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
104
id 'java'
11-
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
5+
id 'org.asciidoctor.jvm.convert' version "3.3.2"
126
}
137

148
group = 'com.woowacourse'
@@ -19,6 +13,7 @@ configurations {
1913
compileOnly {
2014
extendsFrom annotationProcessor
2115
}
16+
asciidoctorExtensions
2217
}
2318

2419
repositories {
@@ -42,32 +37,45 @@ dependencies {
4237
runtimeOnly 'com.h2database:h2'
4338
runtimeOnly 'mysql:mysql-connector-java'
4439

45-
// querydsl
46-
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
47-
implementation "com.querydsl:querydsl-apt:${queryDslVersion}"
40+
asciidoctorExtensions 'org.springframework.restdocs:spring-restdocs-asciidoctor'
41+
testImplementation 'org.springframework.restdocs:spring-restdocs-restassured'
42+
}
43+
44+
ext {
45+
set('snippetsDir', file("build/generated-snippets"))
4846
}
4947

5048
tasks.named('test') {
49+
outputs.dir snippetsDir
5150
useJUnitPlatform()
5251
systemProperties = System.getProperties()
52+
finalizedBy 'asciidoctor'
5353
}
5454

55-
// querydsl
56-
def querydslDir = "$buildDir/generated/querydsl"
55+
asciidoctor.doFirst {
56+
delete file('src/main/resources/static/docs')
57+
}
5758

58-
querydsl {
59-
jpa = true
60-
querydslSourcesDir = querydslDir
59+
asciidoctor {
60+
inputs.dir snippetsDir
61+
configurations 'asciidoctorExtensions'
62+
dependsOn test
6163
}
62-
sourceSets {
63-
main.java.srcDir querydslDir
64+
65+
task createDocument(type: Copy) {
66+
dependsOn asciidoctor
67+
68+
from file("build/docs/asciidoc")
69+
into file("src/main/resources/static/docs")
6470
}
65-
compileQuerydsl {
66-
options.annotationProcessorPath = configurations.querydsl
71+
72+
task moveDocument(type: Copy) {
73+
dependsOn createDocument
74+
75+
from file("build/docs/asciidoc")
76+
into file("build/resources/main/static/docs")
6777
}
68-
configurations {
69-
compileOnly {
70-
extendsFrom annotationProcessor
71-
}
72-
querydsl.extendsFrom compileClasspath
78+
79+
bootJar {
80+
dependsOn moveDocument
7381
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
:doctype: book
2+
:source-highlighter: highlightjs
3+
:toc: left
4+
:toclevels: 2
5+
:sectlinks:
6+
7+
= MOAMOA
8+
9+
[[Auth]]
10+
== 인증
11+
12+
=== Github 로그인
13+
operation::auth/login[snippets='http-request,request-parameters,http-response,response-fields']
14+
15+
[[Member]]
16+
== 회원
17+
18+
=== 스터디에서 나의 Role 확인
19+
operation::members/me/role[snippets='http-request,request-headers,request-parameters,http-response,response-fields']
20+
21+
=== 로그인한 사용자 정보 조회
22+
operation::members/me[snippets='http-request,request-headers,http-response']
23+
24+
[[Study]]
25+
== 스터디
26+
27+
=== 스터디 생성
28+
operation::studies/create[snippets='http-request,request-headers,http-response']
29+
30+
=== 스터디 참여
31+
operation::studies/participant[snippets='http-request,http-response']
32+
33+
=== 스터디 목록 조회
34+
operation::studies/summary[snippets='http-request,http-response']
35+
36+
=== 스터디 제목 검색
37+
operation::studies/search[snippets='http-request,http-response']
38+
39+
=== 스터디 제목 검색 (필터링)
40+
operation::studies/searchWithTags[snippets='http-request,http-response']
41+
42+
=== 스터디 세부 페이지
43+
operation::studies/details[snippets='http-request,http-response']
44+
45+
=== 참여한 스터디 목록 조회
46+
operation::studies/myStudy[snippets='http-request,http-response']
47+
48+
[[Tag]]
49+
== 태그
50+
51+
=== 태그 목록 조회
52+
operation::tags/list[snippets='http-request,http-response']
53+
54+
=== 태그 목록 검색
55+
operation::tags/search[snippets='http-request,http-response']
56+
57+
[[Review]]
58+
== 스터디 후기
59+
60+
=== 후기 작성
61+
operation::reviews/create[snippets='http-request,http-response']
62+
63+
=== 후기 전체 조회
64+
operation::reviews/list[snippets='http-request,http-response']
65+
66+
=== 후기 특정 개수 조회
67+
operation::reviews/list-certain-number[snippets='http-request,http-response']
68+
69+
=== 리뷰 수정
70+
operation::reviews/update[snippets='http-request,http-response']
71+
72+
=== 리뷰 삭제
73+
operation::reviews/delete[snippets='http-request,http-response']

0 commit comments

Comments
 (0)