1. mongoose js의 Query Doc
: https://mongoosejs.com/docs/queries.html
Mongoose v6.2.3: Queries
Mongoose models provide several static helper functions for CRUD operations. Each of these functions returns a mongoose Query object. A mongoose query can be executed in one of two ways. First, if you pass in a callback function, Mongoose will execute the
mongoosejs.com
- DB 관련하여 만들고자 하는 기능
1) index를 이용하여 random으로 컬렉션 내의 데이터 10개를 꺼내온다
2) youtube API 검색을 위한 검색어 저장
3) youtube API 쿼리 결과 저장
: 스키마 재설계 (type이라는 키를 두어 1개의 컬렉션에서 youtube 영상정보를 CRUD 하도록)
3) youtube API v3를 사용하기 위한 key를 저장 및 꺼내쓰기
2. Youtube API v3 Nodejs Doc
: https://developers.google.com/youtube/v3/quickstart/nodejs
Node.js Quickstart | YouTube Data API | Google Developers
Node.js Quickstart Complete the steps described in the rest of this page, and in about five minutes you'll have a simple Node.js command-line application that makes requests to the YouTube Data API. The sample code used in this guide retrieves the channel
developers.google.com
- 만들고자하는 기능
1) 종류 별 요리 영상 제목, url, 썸네일 쿼리
2) 요리 전문 채널 이름 등 쿼리
3) 일일 할당량을 다 사용했을 경우 key를 전환하여 다른 key 사용하여 검색
3. Node schedule
: https://github.com/node-schedule/node-schedule
GitHub - node-schedule/node-schedule: A cron-like and not-cron-like job scheduler for Node.
A cron-like and not-cron-like job scheduler for Node. - GitHub - node-schedule/node-schedule: A cron-like and not-cron-like job scheduler for Node.
github.com
- 만들고자 하는 기능
1) 매일 새벽 1시~3시 사이에 5개의 key를 이용하여 youtube API 함수 실행
2) youtube API의 모든 key가 할당량을 초과했을 때 함수 종료 수행
'Development > Project' 카테고리의 다른 글
모해묵지 개발 명세서 (0) | 2022.04.25 |
---|---|
모해묵지 아키텍쳐 설계 (0) | 2022.04.06 |
211214 ~ 211215 fc- 개발일지 (0) | 2022.01.30 |
211207 ~ 211210 fc- 개발일지 (0) | 2022.01.30 |
211116 ~ 211206 fc- 개발일지 (0) | 2022.01.30 |