[윤대호] 풀스택-BE-mission12#13
Open
aowjarkwk wants to merge 60 commits intocodeit-bootcamp-nodejs:풀스택-BEfrom
Hidden character warning
The head ref may contain hidden characters: "\ud480\uc2a4\ud0dd-BE-mission12"
Open
Conversation
- 상품 목록 조회 페이지네이션 추가
- 상품 목록 조회 - 상품 상세 조회
- http, mock 데이터 위치 변경
- mock, seed 데이터 수정
- 상품 수정, 삭제 - 상품 댓글 등록, 수정, 삭제
- 서버 코드를 MVC 패턴으로 리팩토링 - 이미지 업로드 기능 테스트를 위해 CORS 미들웨어 추가
- 구글 OAuth 로그인 후 JWT 토큰 생성 구현 - 유저 기능에 MVC 패턴 적용
- Article 관련 로직을 타입스크립트로 수정 - Auth 관련 로직을 타입스크립트로 수정
- prisma 폴더 위치 변경
- Product, Article, Comment 모델의 User필드를 필수값으로 변경
- auth 관련 로직 테스트의 커버리지를 높임
- product controller 관련 로직 테스트 추가 - 원활한 테스트를 위해 asyncHandler를 route에서 controller로 이동
- 테스트 코드 수정 - Swagger 문서에서 images 필드 타입 수정
- 테스트가 모두 통과할 수 있도록 테스트 코드 수정
- 로그인 사용자만 상세 조회 가능하도록 수정
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
주요 변경사항
요구사항
기본 요구사항
공통
백엔드 배포
프로젝트 구조 및 환경 설정
development) 및 배포(production) 환경 설정을 구분하고, 환경 변수를 사용해 관리합니다.AWS S3를 이용한 파일 업로드 시스템 구축
multer-s3라이브러리를 사용하여 이미지 업로드 미들웨어를 S3로 변경합니다.AWS RDS를 사용한 데이터베이스 관리
AWS EC2에서의 애플리케이션 운영
pm2를 사용하여 애플리케이션을 백그라운드에서 실행시킵니다.AWS Route 53을 활용한 도메인 관리
테스트 구현
jest.config.js)을 만들고 기본 설정을 하세요.async/await와done콜백을 사용하여 비동기 코드의 완료를 테스트하세요.describe와test블록을 사용하여 테스트 케이스를 그룹화하고 정리하세요.심화 요구사항
공통
테스트 구현
상품 이미지 업로드
SSL 인증서를 통한 HTTPS 연결 구현
기타
배포 주소https://panda-market.net/api-docs/
QA 의견
구글링 중
AWS SDK v3 Client mock을 발견해서 이를 활용해 구현했습니다.