본문 바로가기

💻Programming/Database3

postman으로 strapi에서 생성한 database 호출하기 1. strapi에서 테이블 생성 제목과 내용을 담을 수 있는 Post라는 이름을 가진 테이블을 하나 생성하려 합니다. terminal에서 strapi를 실행하여 첫페이지 좌측 PLUGINS의 Content-Types Builder 에서 +Create new collection type을 클릭합니다. Post 테이블 생성 field 추가 해보기 -1) 제목 (name은 contents로, type은 short text로 설정) 2) 내용 (name은 details로, type은 long text로 설정) field 입력 후 save 반드시 누를 것 ! COLLECTION TYPES 에 추가된 걸 확인할 수 있습니다. +Add New Posts 로 내용을 추가해봅니다. 작성 후, save 후 publish.. 2022. 1. 22.
strapi와 mysql 연동 1. mysql 설치하기 MacOS에 mysql 설치 하기 2. strapi 프로젝트 생성 https://strapi.io/documentation/developer-docs/latest/getting-started/quick-start.html 두 가지 방법으로 생성이 가능합니다. > npx create-strapi-starter my-project gatsby-blog > yarn create strapi-starter my-project gatsby-blog Choose your installation type custom으로 선택합니다. Choose your default database client mysql로 선택합니다. database는 앞전에 mysql에서 생성한 빈 데이터베이스(jisu).. 2022. 1. 20.
mac os에 mysql 설치하기 🛠 mac 용 패키지 관리자 Homebrew로 MySQL 패키지 다운받아 설치하는 방법을 소개해드리겠습니다. 1. Homebrew 설치 homebrew가 설치되어 있는지 확인하고, 설치 되어 있다면 버전을 확인하고 필요하다면 업데이트를 합니다. > brew -v // 버전 확인 > brew -update // 업데이트 설치되어 있지 않다면, https://brew.sh/index_ko 를 참고하여 패키지를 설치해줍니다. > /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ⛔️ Warning: /opt/homebrew/bin is not in your PATH. 라는 경고 메시지가 뜨면,.. 2021. 9. 1.
반응형