HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
학습 TIL
/
🌱
[TIL] 데브코스 78일차
🌱

[TIL] 데브코스 78일차

Date
Jul 6, 2022
대주제
TIL
CheQuiz
주제
strapi
활동 기록

오늘 배운 것

  • Strapi CustomAPI 가능 여부 조사
    • 📝
      07.06 Strapi 공동작업 기록 _ 모델 연동

어려웠던 내용

  • strapi의 customAPI 사용방법
  • Overrride와 OverLoading의 차이
 

느낀점

  • 공식문서의 중요성
    • Strapi를 사용한 이유가 백엔드 교체 작업 비용을 최소화하기 위해서였는데, Strapi 공식문서가 불친절하여 생각보다 많은 시간을 소비하였다.
      • v3 → v4로의 문서화 갱신 작업이 많이 이루어지지 않았고, UI를 통한 기본적인 CRUD 이외의 custom 부분에서 문서가 빠져있는 부분도 많고 빈약하였다.
      • koa에서 data를 다루는 키워드들이나, DB에 접근하는 등 로직을 일일이 찾아보아야했다…
  • 어려운 것과 낯선 것
    • customAPI는 백엔드쪽 코드를 다루어야했기에 낯설기도 했지만, override, overloading 방식을 이해하는 것은 어렵기도 하였다.
    • 다행히도 각자 작업이 아닌, strapi 리팩토링 부분은 3명(준혁,창민,나)이 live-share 및 화면공유를 통해 실시간으로 의견을 주고 받을 수 있어, 헤매는 시간을 최소화할 수 있었다.

참고

  • 공식 홈페이지 참고자료
    • Strapi Internals: Customizing the Backend
      Strapi works as a Headless CMS and provides a lot of functionality out of the box, allowing it to be used for any use case without any modifications to the code. This doesn't stop Strapi from providing customization options and extendable code that allows developers to fine-tune Strapi's internal working to suit a special use case.
      https://strapi.io/blog/strapi-internals-customizing-the-backend-part-1-models-controllers-and-routes
      Strapi Internals: Customizing the Backend
      How to Create a Custom API Endpoint in Strapi
      Strapi provides a set of powerful APIs to let the developers create custom API end-points. In this article, we will be creating a custom API endpoint from scratch. Before you can jump into this content, you need to have the following: Basic knowledge of JavaScript Basic understanding of Strapi - get started here.
      https://strapi.io/blog/how-to-create-a-custom-api-endpoint-in-strapi
      How to Create a Custom API Endpoint in Strapi
      Models - Strapi Developer Docs
      As Strapi is a headless Content Management System (CMS), creating a data structure for the content is one of the most important aspects of using the software. Models define a representation of the data structure.
      Models - Strapi Developer Docs
      https://docs.strapi.io/developer-docs/latest/development/backend-customization/models.html#lifecycle-hooks
  • 외부 자료 참고자료
    • Strapi로 REST API 서버 빠르게 구축하기
      리액트 네이티브를 다루는 기술 책을 공부하면서 정리한 내용입니다. Strapi 살펴보기 strapi 프로젝트 생성 $ yarn create strapi-app articles-server --quickstart Content API에 커스터마이징하기 Strapi 제..
      Strapi로 REST API 서버 빠르게 구축하기
      https://eddie-rody.tistory.com/53
      Strapi로 REST API 서버 빠르게 구축하기
  • 가장 도움되었던 자료
    • use-permission 플러그인의 api custom 하는 방법
      • How to create custom Registration and Login API using Strapi?
        Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
        How to create custom Registration and Login API using Strapi?
        https://stackoverflow.com/questions/54384634/how-to-create-custom-registration-and-login-api-using-strapi/70681557#70681557
        How to create custom Registration and Login API using Strapi?