Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
taehee-kim-dev committed Oct 15, 2021
2 parents 6742b28 + fe51b00 commit 611865b
Show file tree
Hide file tree
Showing 148 changed files with 2,387 additions and 14,646 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/front-main-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: front-main-deploy

on:
push: # 적용될 μ•‘μ…˜
branches: main # 적용될 브랜치
paths:
- "frontend/**" # workflowμ—μ„œ 적용될 path

defaults:
run:
working-directory: ./frontend # workflowμ—μ„œ default working directory

jobs:
deploy:
runs-on: ubuntu-latest # μΈμŠ€ν„΄μŠ€ OS
steps:
- name: Checkout source code
uses: actions/checkout@v2 # μ›Œν¬ν”Œλ‘œμ—μ„œ μ•‘μ„ΈμŠ€ν•  수 μžˆλ„λ‘ μ—μ„œ μ €μž₯μ†Œλ₯Ό 체크아웃

- name: Install Dependencies
run: yarn

- name: Build
run: yarn build

- name: S3 Deploy
run: aws s3 sync ./dist s3://2021-cvi/ --acl bucket-owner-full-control # s3 이름 2021-cvi
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
193 changes: 192 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,193 @@
# 백쀑원(λ°±μ‹  쀑앙 정보원)
<img src="https://user-images.githubusercontent.com/53412998/135798025-1158fe48-0841-4545-a28f-8015468c3328.png" width="100%"/>

# ν”„λ‘œμ νŠΈ μ†Œκ°œ

<br/>

<p align="center">
<a target="_blank" href="https://www.youtube.com/watch?v=W1LziOGs_6g">
<img src="https://user-images.githubusercontent.com/53412998/137051501-805cd497-b7d7-421e-b6ac-4f03549e0d93.png" width="50%" height="50%">
<p align="center">(ν΄λ¦­ν•˜λ©΄ μ˜μƒμ„ μ‹€ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€)</p>
</a>
</p>

<br/>

μ½”λ‘œλ‚˜19 λ°±μ‹  μ ‘μ’… ν›„κΈ°λ₯Ό 남기닀! μš°λ¦¬λŠ” [`Team CVI`](https://vaccine-review.com) μž…λ‹ˆλ‹€.

- [`CVI`](https://vaccine-review.com) λŠ” μ½”λ‘œλ‚˜19 λ°±μ‹  정보λ₯Ό μ œκ³΅ν•΄μ€˜μš”.
- [`CVI`](https://vaccine-review.com) μ—μ„œλŠ” λ°±μ‹  ν›„κΈ°λ₯Ό 남길 수 μžˆμ–΄μš”.
- λΆ€μž‘μš©μ΄ κ±±μ •λ˜μ‹ λ‹€κ΅¬μš”? [`λ‹€λ₯Έ μ‚¬λžŒλ“€μ˜ ν›„κΈ°λ₯Ό 보러 κ°€λ³ΌκΉŒμš”? :)`](https://vaccine-review.com)

μ„œλΉ„μŠ€ URL: https://vaccine-review.com

<br/>

# μ„œλΉ„μŠ€ κΈ°λŠ₯
## 간단 μš”μ•½
![ᄀᅑᆫᄃᅑᆫ 요약](https://user-images.githubusercontent.com/53412998/135582980-53157888-c54d-4313-bff5-e06ccd01274f.gif)

<details>
<summary>μ†Œμ…œ 둜그인</summary>
<img src="https://user-images.githubusercontent.com/53412998/135583011-4fd322c9-623a-4329-ae95-7ec4fa23fe37.gif"/>
</details>


<details>
<summary>κΈ€ μž‘μ„±</summary>
<img src="https://user-images.githubusercontent.com/53412998/135581550-d38306bc-7ff3-4771-85e1-23cb20c79550.gif"/>
</details>

<details>
<summary>μ’‹μ•„μš” λˆ„λ₯΄κΈ°, λŒ“κΈ€ μž‘μ„±</summary>
<img src="https://user-images.githubusercontent.com/53412998/135583033-adf9ee08-0846-4b0e-bf21-c3d22b0615b7.gif"/>
</details>

<details>
<summary>κ²Œμ‹œκΈ€ 필터링, μ •λ ¬</summary>
<img src="https://user-images.githubusercontent.com/53412998/135583001-e819f4d0-9c35-4f37-a53e-1996522450d4.gif"/>
</details>

<details>
<summary>λ§ˆμ΄νŽ˜μ΄μ§€</summary>
<img src="https://user-images.githubusercontent.com/53412998/135583010-b5a8757d-2eb5-4a19-b6e2-c0b507a69e13.gif"/>
</details>

<details>
<summary>μ ‘μ’… ν˜„ν™© 톡계</summary>
<img src="https://user-images.githubusercontent.com/53412998/135583019-990a80aa-e9e3-4046-85e4-ea930fc1febb.gif"/>
</details>

<br/>

# μš°λ¦¬νŒ€μ˜ 강점

<!-- [μžμ„Έν•œ λ¬Έμ„œν™”λ₯Ό ν–ˆμ–΄μš”.](https://www.notion.so/4b6587fb182447eb93183d6160b5ef0a) -->

[μ• μžμΌν•˜κ²Œ μ„œλΉ„μŠ€λ₯Ό κ°œλ°œν–ˆμ–΄μš”.](https://www.notion.so/da2fc7e8d99f4f4484bad58ed2e1b233)

[우리만의 νŒ€ λ¬Έν™”λ₯Ό λ§Œλ“€μ—ˆμ–΄μš”.](https://www.notion.so/ccf25ce39e2d42389c43ccf9b768b53b)

<br/>

# 기술 μŠ€νƒ
<img width="100%" src="https://user-images.githubusercontent.com/40762111/135794163-9c4978df-7ac3-4a17-a97e-8dd3afe64533.png" />

<br/>

# μ„œλΉ„μŠ€μ•„ν‚€ν…μ²˜

## μ‚¬μš©μž μš”μ²­ μ‹œλ‚˜λ¦¬μ˜€ (μš”μ²­λΆ€ν„° μ‘λ‹΅κΉŒμ§€)
![FE+BE](https://user-images.githubusercontent.com/43339385/135794655-511b9a4b-ce99-41ca-a003-d549b1e3f20a.png)

## ν”„λ‘œνŠΈμ—”λ“œ 아킀텍쳐
![FE_CI:CD](https://user-images.githubusercontent.com/43339385/135794087-571dea0c-c90f-42c3-b8cf-b08130ea0d39.png)


## λ°±μ—”λ“œ 인프라 μ•„ν‚€ν…μ²˜
![image](https://user-images.githubusercontent.com/48986787/135793839-08fc58d6-c381-4af3-be58-16342d8ff5bb.png)


## λ°±μ—”λ“œ CI / CD
![image](https://user-images.githubusercontent.com/48986787/135793875-193bc33a-31fd-414a-ac1c-4591e44086cf.png)

<br/>

# νŒ€μ› μ†Œκ°œ
<table>
<tr>
<td colspan="2" align="center"><strong>Front-end</strong></td>
<td colspan="4" align="center"><strong>Back-end</strong></td>
</tr>
<tr>
<td align="center">
<a href="https://github.com/HyuuunjuKim">
<img src="https://user-images.githubusercontent.com/67272922/135793917-03a2d388-eab0-4b5d-87cf-c4066a441c1d.png" width="100px;" alt=""/><br />
<sub>
<b>μ—˜λΌ(κΉ€ν˜„μ£Ό)</b>
</sub>
</a><br />
</td>
<td align="center">
<a href="https://github.com/jum0">
<img src="https://user-images.githubusercontent.com/67272922/135793929-2f635802-8cc6-4645-937f-d59c8dc85356.png" width="100px;" alt=""/><br />
<sub>
<b>μ£Όλͺ¨(ν•œμ€€λͺ¨)</b>
</sub>
</a><br />
</td>
<td align="center">
<a href="https://github.com/livenow14">
<img src="https://user-images.githubusercontent.com/67272922/135793762-8104fdda-d777-4f3a-b514-14b60d5dd6be.png" width="100px;" alt=""/>
<br />
<sub>
<b>κ²€ν”„(κΉ€νƒœμ •)</b>
</sub>
</a><br />
</td>
<td align="center">
<a href="https://github.com/younghoonkwon">
<img src="https://user-images.githubusercontent.com/67272922/135793840-d9e4f3d7-d68e-46ef-b54c-374fe46fb85d.png" width="100px;" alt=""/><br />
<sub>
<b>라이언(κΆŒμ˜ν›ˆ)</b>
</sub>
</a><br />
</td>
<td align="center">
<a href="https://github.com/thisisyoungbin">
<img src="https://user-images.githubusercontent.com/67272922/135793855-a428ba5f-83e4-459b-9ebf-e20da7f8b98b.png" width="100px;" alt=""/><br />
<sub>
<b>욘(κΉ€μ˜λΉˆ)</b>
</sub>
</a><br />
</td>
<td align="center">
<a href="https://github.com/taehee-kim-dev">
<img src="https://user-images.githubusercontent.com/67272922/135793886-e137d43e-00ad-4d4d-af28-a45abe99f4ee.png" width="100px;" alt=""/><br />
<sub>
<b>인비(κΉ€νƒœν¬)</b>
</sub>
</a><br />
</td>
</tr>
<tr>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/issues?q=assignee%3AHyuuunjuKim" title="Code">issues</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/issues?q=assignee%3Ajum0" title="Code">issues</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/issues?q=assignee%3Alivenow14" title="Code">issues</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/issues?q=assignee%3Ayounghoonkwon" title="Code">issues</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/issues?q=assignee%3Athisisyoungbin" title="Code">issues</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/issues?q=assignee%3Ataehee-kim-dev" title="Code">issues</a>
</td>
</tr>
<tr>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/commits?author=HyuuunjuKim" title="Code">commits</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/commits?author=jum0" title="Code">commits</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/commits?author=livenow14" title="Code">commits</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/commits?author=younghoonkwon" title="Code">commits</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/commits?author=thisisyoungbin" title="Code">commits</a>
</td>
<td rowspan="1" align="center">
<a href="https://github.com/woowacourse-teams/2021-cvi/commits?author=taehee-kim-dev" title="Code">commits</a>
</td>
</tr>
</table>
9 changes: 0 additions & 9 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,3 @@ out/

# QueryDSL
/backend/src/main/generated/

# db
/src/main/resources/application-db.yml

# jwt
/src/main/resources/application-jwt.yml

# client-secret
/src/main/resources/application-client-secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -575,3 +575,5 @@ include::{snippets}/comment-delete/http-response.adoc[]
===== Request
include::{snippets}/comment-delete-failure/http-request.adoc[]

===== Response
include::{snippets}/comment-delete-failure/http-response.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ public List<PostResponse> findByVaccineTypeAndPaging(@RequestParam(defaultValue
@RequestParam(defaultValue = "0") int offset,
@RequestParam(defaultValue = "6") int size,
@RequestParam(defaultValue = "CREATED_AT_DESC") Sort sort,
@RequestParam(defaultValue = "500") int fromHoursBefore,
@AuthenticationPrincipal Optional<User> user) {
return postService.findByVaccineType(vaccinationType, offset, size, sort, fromHoursBefore, user);
return postService.findByVaccineType(vaccinationType, offset, size, sort, user);
}

@GetMapping("/{id}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ public List<PostResponse> findByVaccineType(VaccinationType vaccinationType, Opt
return PostResponse.toList(posts, optionalUser.orElse(null));
}

public List<PostResponse> findByVaccineType(VaccinationType vaccinationType, int offset, int size, Sort sort, int hours, Optional<User> optionalUser) {
List<Post> posts = postRepository.findByVaccineType(vaccinationType, offset, size, Sort.toOrderSpecifier(sort), hours);
public List<PostResponse> findByVaccineType(VaccinationType vaccinationType, int offset, int size, Sort sort, Optional<User> optionalUser) {
List<Post> posts = postRepository.findByVaccineType(vaccinationType, offset, size, Sort.toOrderSpecifier(sort));
return PostResponse.toList(posts, optionalUser.orElse(null));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ void findByVaccineTypePaging() throws Exception {
new PostResponse(37L, userResponse, "이건 λ‚΄μš©μž…λ‹ˆλ‹€.2", 200, 20, 4, false, VaccinationType.PFIZER, LocalDateTime.now().minusDays(1), imageUrls),
new PostResponse(36L, userResponse, "이건 λ‚΄μš©μž…λ‹ˆλ‹€.3", 300, 30, 2, true, VaccinationType.PFIZER, LocalDateTime.now().minusDays(2), imageUrls)
));
willReturn(postResponses).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), anyInt(), any());
willReturn(postResponses).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), any());
//when
ResultActions response = κΈ€_νƒ€μž…λ³„_νŽ˜μ΄μ§•_쑰회_μš”μ²­(VaccinationType.PFIZER, 0, 3);
//then
Expand All @@ -208,7 +208,7 @@ void findByVaccineTypePaging() throws Exception {
void findByVaccineTypePagingWhenPostsIsEmpty() throws Exception {
//given
List<PostResponse> postResponse = Collections.emptyList();
willReturn(postResponse).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), anyInt(), any());
willReturn(postResponse).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), any());
//when
ResultActions response = κΈ€_νƒ€μž…λ³„_νŽ˜μ΄μ§•_쑰회_μš”μ²­(VaccinationType.PFIZER, 0, 3);
//then
Expand All @@ -224,7 +224,7 @@ void findByVaccineTypeSorting() throws Exception {
new PostResponse(37L, userResponse, "이건 λ‚΄μš©μž…λ‹ˆλ‹€.2", 200, 20, 8, false, VaccinationType.PFIZER, LocalDateTime.now().minusDays(1), imageUrls),
new PostResponse(146L, userResponse, "이건 λ‚΄μš©μž…λ‹ˆλ‹€.3", 300, 30, 1, true, VaccinationType.PFIZER, LocalDateTime.now().minusDays(2), imageUrls)
));
willReturn(postResponses).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), anyInt(), any());
willReturn(postResponses).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), any());
//when
ResultActions response = κΈ€_νƒ€μž…λ³„_μ •λ ¬_쑰회_μš”μ²­(VaccinationType.PFIZER, Sort.LIKE_COUNT_ASC);
//then
Expand All @@ -240,7 +240,7 @@ void findByVaccineTypeHourFiltering() throws Exception {
new PostResponse(37L, userResponse, "이건 λ‚΄μš©μž…λ‹ˆλ‹€.2", 200, 20, 6, false, VaccinationType.PFIZER, LocalDateTime.now().minusHours(3), imageUrls),
new PostResponse(146L, userResponse, "이건 λ‚΄μš©μž…λ‹ˆλ‹€.3", 300, 30, 7, true, VaccinationType.PFIZER, LocalDateTime.now().minusHours(5), imageUrls)
));
willReturn(postResponses).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), anyInt(), any());
willReturn(postResponses).given(postService).findByVaccineType(any(VaccinationType.class), anyInt(), anyInt(), any(), any());
//when
ResultActions response = κΈ€_νƒ€μž…λ³„_μ‹œκ°„ν•„ν„°λ§_쑰회_μš”μ²­(VaccinationType.PFIZER, 24);
//then
Expand Down
Loading

0 comments on commit 611865b

Please sign in to comment.