Files
ClassContent/历届学生/王凯/18-11-23/课程列表.txt
2024-09-27 02:06:13 +08:00

21 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

第一天:
1:使用nodejs的web开发框架express 生成了一个基本的nodejs web项目
2:使用了 express的自动路由加载模块:express-load-router,实现对路由的自动加载,无需手动进行繁琐的配置
3:使用 mysql 模块,负责与数据库进行链接,并封装数据库链接 使用es6 语法进行。
第二天:
1:建立mysql数据库(用来存放爬虫爬到的小说数据),继续完善mysql类库文件的封装
2:request 发送 http请求获取网页源码
3: 使用 cheerio 模块解析网页源码拿到我们想要的数据
4: 返回数据给前端
第三天:
1:配置好babel + gulp + watch 对代码进行转换
2:完成数据库的Promise封装,实现小说数据入库
3:node-schedule实现定时爬取小说网站,对比新旧章节后将最新章节存入数据库,然后将最新章节邮件通知给用户
4:通过两种方法pm2,cluster 实现接口负载均衡
5:手工配置pug,渲染邮件模板,可自己美化pug代码达到精美邮件模板
6:concurrently 实现并发执行多个任务