利用 eggjs 重构一个爬虫项目
- MongoDB
- 定时任务
- puppeteer
see egg docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7001/$ npm start
$ npm stop- Use
npm run lintto check code style. - Use
npm testto run unit test. - Use
npm run autodto auto detect dependencies upgrade, see autod for more detail.