纯Node 6.10.0支持的代码,不依赖于babel
依赖于任何第三方框架,纯手写Node框架及中间件
所有语法都在Node.green下的支持列表
git clone https://github.com/slashhuang/pure-node-notebook.git
npm install
npm start
- 第一课: 创建一个简单的服务器
知识点: http请求。 ES6语法。 端口号。 commonJS模块体系。
git checkout lesson-1
- 第二课: 创建静态资源html、js返回
知识点: fs模块。 http请求对象分析。
git checkout lesson-2
- 第三-五课: 学习Promise来架构网站中间件
知识点: Promise。 程序设计模式 。 http请求对象分析
git checkout lesson-3-5
- 第六-10课: 使用webpack架构前端、采用mongodb作为数据库
知识点: Promise、设计模式、mongodb、webpack
git checkout lesson5-10