Skip to content

[정남영] 스프린트미션6 백엔드#3

Merged
wseungjin merged 4 commits intocodeit-sprint-fullstack:express-정남영from
dudska12:express-정남영
Jun 10, 2025

Hidden character warning

The head ref may contain hidden characters: "express-\uc815\ub0a8\uc601"
Merged

[정남영] 스프린트미션6 백엔드#3
wseungjin merged 4 commits intocodeit-sprint-fullstack:express-정남영from
dudska12:express-정남영

Conversation

@dudska12
Copy link
Collaborator

@dudska12 dudska12 commented Jun 10, 2025

요구사항

백엔드

  • Product 스키마 작성 (id, name, description, price, tags, createdAt, updatedAt 포함)
  • 상품 등록 API 구현 (name, description, price, tags 입력)
  • 상품 상세 조회 API 구현 (id, name, description, price, tags, createdAt 조회)
  • 상품 수정 API 구현 (PATCH 메서드 사용)
  • 상품 삭제 API 구현
  • 상품 목록 조회 API 구현 (id, name, price, createdAt 조회, offset 페이지네이션, 최신순 정렬, 검색 기능 포함)
  • 각 API에 적절한 에러 처리 및 상태 코드 반환
  • .env 파일에 환경 변수 설정
  • CORS 설정
  • MongoDB 연동 및 render.com 배포 완료

멘토에게

  • 서버라는 폴더를 만들고 진행하고 나중에 GITHUP에 연동을해서 커밋메시지가 제대로구현되어있지않습니다. 다음 미션때는 주의하도록하겠습니다.

  • 몽고db대신 prisma로 대체했습니다.

  • 프론트PR 링크입니다
    [정남영] 스프린트미션6 7-sprint-mission-fe#63

Copy link
Collaborator

@wseungjin wseungjin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~

});
return res.status(201).json(product);
} catch (error) {
console.log("post요청 실패", error);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

무슨 post 요청 실패했는지 남기면 더 좋을꺼 같네요.

const fields = ["name", "description", "price", "tags"];
const fieldsData = {};

for (const otherField of fields) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

map도 사용 가능합니다~

@wseungjin wseungjin merged commit 51a6a35 into codeit-sprint-fullstack:express-정남영 Jun 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants