반응형
1. homebrew 을 이용한 설치
- brew tap mongodb/brew
- brew install mongodb-community@4.4
- brew services start mongodb-community@4.4
2. mongoose 사용 시
- yarn add mongoose dotenv
- git 사용 시, gitignore 파일에 mongoose 환경파일인 '.env' 파일 제외시키기
- 프로젝트 root에 .env 생성
- Request body 검증용 api
- yarn add @hapi/joi
반응형
댓글