Skip to content

sprint mission3- 최우진#44

Open
DevWoojin97 wants to merge 4 commits intocodeit-sprint-fullstack:basicfrom
DevWoojin97:feat/sprint-mission3
Open

sprint mission3- 최우진#44
DevWoojin97 wants to merge 4 commits intocodeit-sprint-fullstack:basicfrom
DevWoojin97:feat/sprint-mission3

Conversation

@DevWoojin97
Copy link
Copy Markdown
Collaborator

No description provided.

@DevWoojin97 DevWoojin97 self-assigned this Dec 28, 2025
@DevWoojin97 DevWoojin97 added the 최종제출 스프린트 미션 최종 제출 PR입니다. 코드리뷰 및 평가해주세요! label Dec 28, 2025
@DevWoojin97 DevWoojin97 changed the title Feat/sprint mission3- 최우진 sprint mission3- 최우진 Dec 28, 2025
Copy link
Copy Markdown
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.

한주 수고 많으셨습니다~

`${BASE_URL}/products?page=${page}&pageSize=${pageSize}&orderBy=${orderBy}&keyword=${keyword}`
)
.then((res) => {
if (!res.ok) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

상태 코드에 대해서 잘 알고 계시나요?
공부해보시면 좋을꺼 같아요.

return data;
})
.catch((error) => {
console.log(error);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

파일로 로깅하거나, 네트워크로 로깅을하거나, 디비로 로깅을 하면 좋을거 같아요. 지금은 말고 나중에 한번 해보시면 좋을거 같아요.

});
}

function createArticle(articleData) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

createArticle 데이터 검증 validation을 하면 좋을거같아요.

});
}

function updateArticle(id, articleData) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

updateArticle 데이터 검증 validation을 하면 좋을거같아요. (2)


function deleteArticle(id) {
return fetch(`${BASE_URL}/articles/${id}`, {
method: 'DELETE',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

소프트 딜리트에 대해서 고민해보면 좋을거 같습니다.

name: '상품 이름',
};

const articles = await articleService.createArticle(articleData);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

test코드 jest, mocha 를 사용해서 실제로 테스트 코드를 짜보고 돌려봐도 좋을거 같아요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

최종제출 스프린트 미션 최종 제출 PR입니다. 코드리뷰 및 평가해주세요!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants