Skip to content

5주차미션_unyeon#24

Open
gkdmsgus wants to merge 1 commit intomainfrom
week05_unyeon
Open

5주차미션_unyeon#24
gkdmsgus wants to merge 1 commit intomainfrom
week05_unyeon

Conversation

@gkdmsgus
Copy link
Copy Markdown
Member

@gkdmsgus gkdmsgus commented Apr 15, 2026

Summary

  • 5주차 미션: API 및 프로젝트 설정 기초 - 가게/리뷰/미션 API 구현
  • Controller → Service → Repository 3계층 + DTO 분리 아키텍처
  • MySQL Connection Pool (mysql2/promise) + dotenv 환경 분리
  • 도메인별 커스텀 에러 클래스 + 전역 JSON 에러 미들웨어 (시니어 미션)
  • 회원가입 비밀번호 bcrypt 해싱 (saltRounds: 10)

구현 API

  • POST /api/v1/members - 회원가입 (bcrypt 해싱)
  • POST /api/v1/regions/:regionId/stores - 특정 지역에 가게 추가
  • POST /api/v1/stores/:storeId/reviews ★ 가게에 리뷰 추가
  • POST /api/v1/stores/:storeId/missions - 가게에 미션 추가
  • POST /api/v1/missions/:missionId/challenges ★ 미션 도전하기

Test plan

  • 회원가입 성공 / 중복 이메일 실패(MEMBER4001)
  • 가게 추가 성공 / 없는 지역 실패(REGION4041)
  • 리뷰 추가 성공 / 없는 가게 실패(STORE4041)
  • 미션 추가 성공
  • 미션 도전 성공 / 이미 도전 중 실패(MISSION4091)
  • Postman 으로 전체 API + 에러 케이스 확인 완료

관련 이슈

closes #22

@gkdmsgus gkdmsgus changed the title [Chapter 5] API 및 프로젝트 설정 기초 - 가게/리뷰/미션 API 구현 (unyeon) 5주차미션_unyeon Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Chapter 5] API 및 프로젝트 설정 기초 - 가게/리뷰/미션 API 구현 (unyeon)

1 participant