시작하기 전에 node와 npm을 설치하였다. (Terminal에서 node만 설치해도 npm은 자동으로 설치됨)
//node 설치
brew node install
그 후 amplify 설치하기
npm install -g @aws-amplify/cli
AWS Amplify에서 나온 명령어로 설치
amplify pull --appId [아이디] --envName staging
하지만 바로 안되었다...
🚫 folderNotFound: Amplify generated models not found at /Users/kimkyeonghun/Desktop/UniNuri/amplify/generated/models
-- Recovery suggestion: Run amplify codegen models.
🛑 Command failed with exit code 1: /Users/kimkyeonghun/.amplify/lib/aws-amplify-amplify-frontend-ios/resources/amplify-xcode import-models --path=/Users/kimkyeonghun/Desktop/UniNuri
Resolution: Please report this issue at https://github.com/aws-amplify/amplify-cli/issues and include the project identifier from: 'amplify diagnose --send-report'
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
→ Amplify 안에 Data Model이 아직 생성이 되지 않아 완료하지 못했다.
Data Model 생성 후 다시 시도하여 성공하였다.
프로젝트 열고 안에서 Amplify Framework들을 설치해야 하는데, 그것은 공식 문서에 자세히 나와 있어 쉽게 완료하였다.