본문 바로가기

Database3

[mac] Laravel 설치하고 database migration 하기 1. composer 설치 > php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" > ls composer-setup.php > php composer-setup.php All settings correct for using Composer Downloading... Composer (version 2.1.6) successfully installed to: /Users/yeojisu/composer.phar Use it: php composer.phar > ls composer-setup.php composer.phar > php -r "unlink('composer-setup.php');" > ls composer.pha.. 2022. 1. 28.
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.
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.
반응형