Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[박시연] sprint4 #19

Open
wants to merge 1 commit into
base: basic-박시연
Choose a base branch
from

Conversation

choco-lic
Copy link

@choco-lic choco-lic commented Jul 28, 2024

요구사항

기본

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

  • https://sprint-mission-api.vercel.app/articles’ API를 이용하여 아래 함수들을 구현해 주세요.

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

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

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

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

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

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

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

  • fetch를 이용해 주세요.

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

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

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

  • https://sprint-mission-api.vercel.app/products’ API를 이용하여 아래 함수들을 구현해 주세요.

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

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

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

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

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

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

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

  • axios를 이용해 주세요.

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

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

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

  • export를 활용해 주세요.

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

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

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

  • import를 활용해 주세요.

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

주요 변경사항

스크린샷

image

멘토에게

  • 셀프 코드 리뷰를 통해 질문 이어가겠습니다.

@choco-lic choco-lic added the 매운맛🔥 뒤는 없습니다. 그냥 필터 없이 말해주세요. 책임은 제가 집니다. label Jul 28, 2024
Copy link
Collaborator

@wildCodingWarrior wildCodingWarrior left a comment

Choose a reason for hiding this comment

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

node_modules는 포함되면 안되니까 꼭 gitignore 파일 만들어서 포함시켜서 올려주세요~

Copy link
Collaborator

@wildCodingWarrior wildCodingWarrior left a comment

Choose a reason for hiding this comment

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

node_modules 지우기 이것만 해봅시다!
https://zel0rd.tistory.com/140

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