[권태현] 스프린트 미션 9#61
Open
cari-0 wants to merge 7 commits into
Hidden character warning
The head ref may contain hidden characters: "express-\uad8c\ud0dc\ud604"
Open
Conversation
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.
개요
중고마켓(Product) + 자유게시판(Article) 서비스의 백엔드 API를 처음부터 구현했습니다.
인증 → 상품 → 게시글 → 댓글 → 이미지 업로드 순으로 기능을 쌓았고, Swagger 문서와 README를 정리했습니다.
주요 기능
/api-docs)아키텍처
Route → Middleware(인증/검증) → Controller → Service → Repository → Prisma 계층 구조로 통일했습니다.
Product/Article.likeCount컬럼 +$transaction으로 카운트와 좋아요 row를 원자적으로 처리isLiked/isMyComment를 서비스 레이어에서 계산해 포함(테이블 필드 아님)validate미들웨어로 라우터 단에서 분리리뷰 과정에서 고친 주요 버그
password/refreshToken이 응답에 노출되던 문제path불일치로 로그인 직후 첫 갱신 이후 세션이 끊기던 문제/products/:id/comments/:commentId형태로 재설계테스트
src/http/*.http)로 전체 엔드포인트 수동 테스트참고
GET /api-docsREADME.md참고요구사항
기본 요구사항
공통
https://panda-market-api.vercel.app의 API를 사용한 코드를 본인의 백엔드 API 코드로 변경하세요.
백엔드 구현 요구사항
상품 등록
상품 상세
좋아요 기능
에러 처리
라우트 중복 제거
인증
상품 기능 인가
게시글 기능 인가
댓글 기능 인가
심화 요구사항
상태코드 (웹 API 관련)
인증
OAuth를 활용한 인증
프로젝트 구조 변경
(생략 가능) 자유게시판 게시물 등록
멘토님께
스프린트 8, 9 내용을 이해하는데 시간이 많이 소요되어서 내용이 많이 비어있습니다..🥲
미션 중간중간 AI를 곁들여서 코드를 보고 부분 부분 수정하는 방법으로 했습니다. 감사합니다