Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lesson0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ export NVM_DIR="/Users/YOURUSERNAME/.nvm"
`$ nvm ls`

看一下

[下一课](../../../tree/master/lesson1)
2 changes: 1 addition & 1 deletion lesson1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ scheme有我们很熟悉的`http`、`https`、`ftp`,以及著名的`ed2k`,`t




[上一课](../../../tree/master/lesson0) [下一课](../../../tree/master/lesson2)
2 changes: 2 additions & 0 deletions lesson10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@ http://jsperf.com/math-perf-alsotang
进入之后点击那个 `Run tests` 按钮,就可以在浏览器中看到它们的效率差异了,毕竟浏览器也是可以跑 js 的。

点击这里:http://jsperf.com/math-perf-alsotang/edit ,就可以看到这个 benchmark 是怎么配置的,很简单。

[上一课](../../../tree/master/lesson9)[下一课](../../../tree/master/lesson11)
2 changes: 2 additions & 0 deletions lesson11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,5 @@ newFoo(); // { value: 100 }
```

完。

[上一课](../../../tree/master/lesson10)[下一课](../../../tree/master/lesson12)
2 changes: 2 additions & 0 deletions lesson12/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,5 @@ push 完成后,在命令键入 `heroku open`,则 heroku 会自动打开浏
国内的话,其实在阿里云上面也可以考虑这么搞一搞。

完。

[上一课](../../../tree/master/lesson11)[下一课](../../../tree/master/lesson13)
2 changes: 2 additions & 0 deletions lesson13/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ services:
```

其它数据库详细内容参考[travis 官方文档](http://docs.travis-ci.com/user/database-setup/)

[上一课](../../../tree/master/lesson12)[下一课](../../../tree/master/lesson14)
2 changes: 2 additions & 0 deletions lesson14/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,5 @@ https://github.com/alsotang/node-lessons/blob/master/lesson14/%E8%A7%A3%E5%AF%86
### 构建大型项目

从 npm 上面寻找质量高的库,并用质量高的方式拼凑起来。

[上一课](../../../tree/master/lesson13)[下一课](../../../tree/master/lesson15)
2 changes: 2 additions & 0 deletions lesson15/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,5 @@ Nodeclub 是使用 Node.js 和 MongoDB 开发的社区系统
https://github.com/cnodejs/nodeclub

完。

[上一课](../../../tree/master/lesson14)[下一课](../../../tree/master/lesson16)
2 changes: 2 additions & 0 deletions lesson16/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,5 @@ if (req.session.user) {
### etag 当做 session,保存 http 会话

很黑客的一种玩法:https://cnodejs.org/topic/5212d82d0a746c580b43d948

[上一课](../../../tree/master/lesson15)[下一课](../../../tree/master/lesson17)
1 change: 1 addition & 0 deletions lesson17/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,3 +690,4 @@ getPromise('1',3000)



[上一课](../../../tree/master/lesson16)
1 change: 1 addition & 0 deletions lesson2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,4 @@ OK,运行我们的程序
这是因为,当我们不传入 `q` 参数时,`req.query.q` 取到的值是 `undefined`,`utility.md5` 直接使用了这个空值,导致下层的 `crypto` 抛错。


[上一课](../../../tree/master/lesson1)[下一课](../../../tree/master/lesson3)
2 changes: 2 additions & 0 deletions lesson3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ app.get('/', function (req, res, next) {
OK,一个简单的爬虫就是这么简单。这里我们还没有利用到 Node.js 的异步并发特性。不过下两章内容都是关于异步控制的。

记得好好看看 superagent 的 API,它把链式调用的风格玩到了极致。

[上一课](../../../tree/master/lesson2)[下一课](../../../tree/master/lesson4)
1 change: 1 addition & 0 deletions lesson4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,4 @@ topicUrls.forEach(function (topicUrl) {



[上一课](../../../tree/master/lesson3)[下一课](../../../tree/master/lesson5)
1 change: 1 addition & 0 deletions lesson5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ async.mapLimit(urls, 5, function (url, callback) {



[上一课](../../../tree/master/lesson4)[下一课](../../../tree/master/lesson6)
2 changes: 2 additions & 0 deletions lesson6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,5 @@ cov test-cov:
这时,我们只需要调用 `make test` 或者 `make cov`,就可以跑我们相应的测试了。

至于 Makefile 怎么写?以及 .PHONY 是什么意思,请看这里:http://blog.csdn.net/haoel/article/details/2886 ,左耳朵耗子陈皓2004年的文章。

[上一课](../../../tree/master/lesson5)[下一课](../../../tree/master/lesson7)
2 changes: 2 additions & 0 deletions lesson7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,5 @@ npm test
```

至此,我们实现了前端脚本的单元测试,基于 phanatomjs 你几乎可以调用所有的浏览器方法,而 mocha-phanatomjs 也可以很便捷地将测试结果反馈到 mocha,便于后续的持续集成。

[上一课](../../../tree/master/lesson6)[下一课](../../../tree/master/lesson8)
1 change: 1 addition & 0 deletions lesson8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,3 +257,4 @@ Nodeclub 里面的测试使用的技术跟前面介绍的是一样的,should m
https://github.com/cnodejs/nodeclub/blob/master/test/controllers/topic.test.js


[上一课](../../../tree/master/lesson7)[下一课](../../../tree/master/lesson9)
1 change: 1 addition & 0 deletions lesson9/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,4 @@ console.log(match2) // => [ '```\ncode code2 .code3```\n```' ]
完。


[上一课](../../../tree/master/lesson8)[下一课](../../../tree/master/lesson10)