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

21 lines
1.1 KiB
Plaintext
Raw Permalink 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类库文件的封装
2request 发送 http请求获取网页源码
3: 使用 cheerio 模块解析网页源码拿到我们想要的数据
4: 返回数据给前端
第三天:
1配置好babel + gulp + watch 对代码进行转换
2完成数据库的Promise封装实现小说数据入库
3node-schedule实现定时爬取小说网站对比新旧章节后将最新章节存入数据库然后将最新章节邮件通知给用户
4通过两种方法pm2cluster 实现接口负载均衡
5手工配置pug渲染邮件模板可自己美化pug代码达到精美邮件模板
6concurrently 实现并发执行多个任务