Skip to content

Basic 김민성 sprint3#39

Open
alstjddl0513-sys wants to merge 18 commits intocodeit-sprint-fullstack:basic-김민성from
alstjddl0513-sys:basic-김민성-sprint3

Hidden character warning

The head ref may contain hidden characters: "basic-\uae40\ubbfc\uc131-sprint3"
Open

Basic 김민성 sprint3#39
alstjddl0513-sys wants to merge 18 commits intocodeit-sprint-fullstack:basic-김민성from
alstjddl0513-sys:basic-김민성-sprint3

Conversation

@alstjddl0513-sys
Copy link
Collaborator

기본 요구사항

  • Github에 스프린트 미션 PR을 만들어 주세요.

  • 'https://panda-market-api-crud.vercel.app/docs/#/Article' API를 이용하여 아래 함수들을 구현해 주세요.

  • getArticleList() : GET 메서드를 사용해 주세요.

  • page, pageSize, keyword 쿼리 파라미터를 이용해 주세요.

  • getArticle() : GET 메서드를 사용해 주세요.

  • createArticle() : POST 메서드를 사용해 주세요.

  • request body에 title, content, image 를 포함해 주세요.

  • patchArticle() : PATCH 메서드를 사용해 주세요.

  • deleteArticle() : DELETE 메서드를 사용해 주세요.

  • fetch 혹은 axios 를 이용해 주세요.

  • 응답의 상태 코드가 2XX가 아닐 경우, 에러메시지를 콘솔에 출력해 주세요.

  • .then() 메서드를 이용하여 비동기 처리를 해주세요.

  • .catch() 를 이용하여 오류 처리를 해주세요.

  • 'https://panda-market-api-crud.vercel.app/docs/#/Product' API를 이용하여 아래 함수들을 구현해 주세요.

  • getProductList() : GET 메서드를 사용해 주세요.

  • page, pageSize, keyword 쿼리 파라미터를 이용해 주세요.

  • getProduct() : GET 메서드를 사용해 주세요.

  • createProduct() : POST 메서드를 사용해 주세요.

  • request body에 name, description, price, tags, images 를 포함해 주세요.

  • patchProduct() : PATCH 메서드를 사용해 주세요.

  • deleteProduct() : DELETE 메서드를 사용해 주세요.

  • async/await 을 이용하여 비동기 처리를 해주세요.

  • try/catch 를 이용하여 오류 처리를 해주세요.

  • 구현한 함수들을 아래와 같이 파일을 분리해 주세요.

  • export를 활용해 주세요.

  • ProductService.js 파일 Product API 관련 함수들을 작성해 주세요.

  • ArticleService.js 파일에 Article API 관련 함수들을 작성해 주세요.

  • 이외의 코드들은 모두 main.js 파일에 작성해 주세요.

  • import를 활용해 주세요.

  • 각 함수를 실행하는 코드를 작성하고, 제대로 동작하는지 확인해 주세요.

@alstjddl0513-sys alstjddl0513-sys self-assigned this Dec 27, 2025
@alstjddl0513-sys alstjddl0513-sys added 매운맛🔥 뒤는 없습니다. 그냥 필터 없이 말해주세요. 책임은 제가 집니다. 최종제출 스프린트 미션 최종 제출 PR입니다. 코드리뷰 및 평가해주세요! labels Dec 27, 2025
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.

이번주도 수고 많으셨습니다~

});
};

export const createArticle = ({ title, content, image } = {}) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

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

});
};

export const patchArticle = (articleId, { title, content, image } = {}) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

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

});
};

export const deleteArticle = (articleId) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

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

description,
price,
tags,
images,
Copy link
Collaborator

Choose a reason for hiding this comment

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

validation 더 신경써보면 좋을거 같아요 (3)

price,
tags,
images,
} = {}) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

왜 빈 객체를 default로 넣을까요?
잘못 데이터가 들어갈 소지가 생깁니다.

//**함수 테스트** -> 터미널에 node.js 입력

//article 테스트 함수
const testArticle = async () => {
Copy link
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