Skip to content

양동섭-sprint3#51

Open
splendor1515 wants to merge 1 commit intocodeit-bootcamp-nodejs:mainfrom
splendor1515:양동섭-sprint3

Hidden character warning

The head ref may contain hidden characters: "\uc591\ub3d9\uc12d-sprint3"
Open

양동섭-sprint3#51
splendor1515 wants to merge 1 commit intocodeit-bootcamp-nodejs:mainfrom
splendor1515:양동섭-sprint3

Conversation

@splendor1515
Copy link

중고마켓 & 자유게시판 프로젝트

프로젝트 개요

  • PostgreSQL 기반의 중고마켓 및 자유게시판 API
  • 댓글, 이미지 업로드, 유효성 검증 포함
  • Render.com 배포

요구사항 구현

공통

  • PostgreSQL 사용
  • 데이터 모델 관계에 onDelete 설정
  • 데이터베이스 시딩 코드 작성
  • 각 API 상태 코드 및 에러 처리

중고마켓

  • Product 모델: id, name, description, price, tags, createdAt, updatedAt
  • 상품 등록, 상세 조회, 수정(PATCH), 삭제
  • 상품 목록 조회: offset pagination, 최신순 정렬, 검색

자유게시판

  • Article 모델: id, title, content, createdAt, updatedAt
  • 게시글 등록, 상세 조회, 수정, 삭제
  • 게시글 목록 조회: offset pagination, 최신순 정렬, 검색

댓글

  • 중고마켓/자유게시판 댓글 등록, 수정(PATCH), 삭제
  • 댓글 목록 조회: cursor pagination

유효성 검증

  • 상품/게시글 등록 시 필수 필드 검증 미들웨어

이미지 업로드

  • Multer를 사용한 이미지 업로드 API
  • 업로드 경로 response 반환

에러 처리

  • 400 시리즈 사용자 입력 오류
  • 404 리소스 없음
  • 500 서버 오류

라우트 구조

  • 중복 라우트 제거: app.route()
  • 기능별 라우트 모듈 분리: express.Router()

@splendor1515 splendor1515 requested a review from kes2020 November 3, 2025 05:00
@splendor1515 splendor1515 added the 순한맛🐑 마음이 많이 여립니다.. label Nov 3, 2025
@splendor1515 splendor1515 changed the title 수정 양동섭-sprint3 Nov 3, 2025
@Leon97-dev Leon97-dev closed this Dec 9, 2025
@Leon97-dev Leon97-dev reopened this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

순한맛🐑 마음이 많이 여립니다..

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants