Skip to content

Commit

Permalink
[HOTFIX/1.1.6] hotfix: Hotfix v1.1.6 릴리즈 (#163)
Browse files Browse the repository at this point in the history
* docs: update README.md (#160)

* fix: fix post content validation logic

* fix: use `@Validated` for parameter validation
  • Loading branch information
Ji-soo708 authored Feb 12, 2024
1 parent 90e614c commit 818f116
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 34 deletions.
80 changes: 48 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,44 +27,60 @@ In the precious time spent with family, everything feels more special with Pippy

<br />

### 🎇 Project Contributors

<table>
<tbody>
<tr>
<td align="center" valign="top" width="22.28%"><a href="https://github.com/cchuyong"><img src="https://avatars.githubusercontent.com/u/67673493?v=4" width="140px;" alt="CChuYong"/><br /><sub><b>Yeongmin Song</b></sub></a><br /><span>백엔드 개발(파트장)</span></td>
<td align="center" valign="top" width="22.28%"><a href="https://github.com/Ji-soo708"><img src="https://avatars.githubusercontent.com/u/69844138?v=4" width="140px;" alt="CChuYong"/><br /><sub><b>Jisoo Lim</b></sub></a><br /><span>백엔드 개발</span></td>
<td align="center" valign="top" width="22.28%"><a href="https://github.com/Kwon770"><img src="https://avatars.githubusercontent.com/u/49567744?v=4" width="140px;" alt="CChuYong"/><br /><sub><b>Soonchan Kwon</b></sub></a><br /><span>백엔드 개발</span></td>
</tr>
</tbody>
</table>
## 1️⃣ Project Contributors
| 👑 백엔드 개발(파트장) | 백엔드 개발 | 백엔드 개발 |
|:--:|:--:|:--:|
| <a href="https://github.com/cchuyong"><img src="https://avatars.githubusercontent.com/u/67673493?v=4" width="140px;" alt="CChuYong"/> | <a href="https://github.com/Ji-soo708"><img src="https://avatars.githubusercontent.com/u/69844138?v=4" width="140px;" alt="Ji-soo708"/> | <a href="https://github.com/Kwon770"><img src="https://avatars.githubusercontent.com/u/49567744?v=4" width="140px;" alt="Kwon770"/> |
| 송영민 | 임지수 | 권순찬 |

<br/>

### 🖥️ Project Tech Stacks
## 2️⃣ Project Architecture

- JVM Runtime Amazon Corretto 17
- SpringBoot 3.1.5 (Servlet MVC)
- Spring Data JPA with QueryDSL
- Stateless Session Management with JWT + Spring Security
- Module Architecture with Gradle Multi-Project
<br/><br/>

### 🛠 환경변수

| 이름 | 설명 |
|----------------------------|-----------------------------|
| MYSQL_URL | MYSQL 주소입니다 (JDBC 형태여야 합니다) |
| MYSQL_USERNAME | MYSQL 사용자 명 입니다. |
| MYSQL_PASSWORD | MYSQL 비밀번호 입니다. |
| SLACK_WEBHOOK_URL | 슬랙 웹훅 URL 입니다. |
| TOKEN_SECRET_KEY | JWT 토큰용 시크릿 키 입니다. |
| OBJECT_STORAGE_REGION | NCP Region 입니다. |
| OBJECT_STORAGE_END_POINT | NCP 엔드포인트 입니다. |
| OBJECT_STORAGE_ACCESS_KEY | NCP 액세스 키 입니다. |
| OBJECT_STORAGE_SECRET_KEY | NCP 시크릿 키 입니다. |
| OBJECT_STORAGE_BUCKET_NAME | NCP ObjectStroage 버킷명 입니다. |
| IMAGE_OPTIMIZER_CDN_URL | NCP ImageOptimizer CDN URL 입니다. |
| GOOGLE_CLIENT_ID | 구글 로그인 클라이언트 ID 입니다. |
| REDIS_HOST | Redis Host 입니다. |
| REDIS_PORT | Redis Port 입니다. |
- Prometheus and Grafana for monitoring
- Redis for Caching
<br/>

#### Module
```
## 14th-team5-BE
- 🗂️ common
- 🗂️ gateway
- 🗂️ member
- 🗂️ family
- 🗂️ post
```

#### Github Actions CI/CD
![image](https://github.com/depromeet/14th-team5-BE/assets/69844138/af905728-88cf-4e95-9d36-ef0812b7be6b)
<br/>

#### NCP Infrastructure
![image](https://github.com/depromeet/14th-team5-BE/assets/69844138/1a97d209-b2c9-4f2b-858c-3e13c5df8b3b)

<br /><br />


## 3️⃣ Project Outline

#### ⏰ Notification
![image](https://github.com/depromeet/14th-team5-iOS/assets/62610032/4a2e0659-5fef-4383-8070-92430a7cf9f4)

<br />

#### 📱 Widget
![image](https://github.com/depromeet/14th-team5-iOS/assets/62610032/031e0bf9-7a6d-4e7f-9893-71d0def1d2d9)


<br />

#### 🗓️ Calendar
![image](https://github.com/depromeet/14th-team5-iOS/assets/62610032/d255500a-4289-43aa-aabc-79e8cdfc5cc4)

<br />
3 changes: 2 additions & 1 deletion member/src/main/java/com/oing/restapi/MemberApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@Tag(name = "회원 API", description = "회원 관련 API")
@RestController
@Valid
@Validated
@RequestMapping("/v1/members")
public interface MemberApi {
@Operation(summary = "가족 구성원 프로필 조회", description = "가족 구성원 프로필을 조회합니다.", parameters = {
Expand Down
2 changes: 1 addition & 1 deletion post/src/main/java/com/oing/domain/MemberPost.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public MemberPost(String id, String memberId, String familyId, String postImgUrl
}

private void validateContent(String content) {
if (content != null && (content.length() > 8 || content.contains(" "))) {
if (content != null && (content.codePoints().count() > 8 || content.contains(" "))) {
throw new InvalidParameterException();
}
}
Expand Down

0 comments on commit 818f116

Please sign in to comment.