node-lessons README

The project's README from github.com/alsotang/node-lessons. As one markdown file: README.md.

《Node.js 包教不包会》 -- by alsotang

注意

本书写成于 2015 年,其中的某些最佳实践或许已经发生变化。比如异步处理应更多使用 Promise 与 await/async,但本书未有提及。由于 js 一直向后兼容,所以本书中的内容仍然可以正常在生产环境中使用。

为何写作此课程

在 CNode(https://cnodejs.org/) 混了那么久,解答了不少 Node.js 初学者们的问题。回头想想,那些问题所需要的思路都不难,但大部分人由于练手机会少,所以在遇到问题的时候很无措。国内唯一一本排的上号的 Node.js 书是 @朴灵(https://github.com/JacksonTian) 的 《深入浅出Node.js》(http://book.douban.com/subject/25768396/ ),但这本书离实战还是比较远的。

这个课程是希望提供更多的 Node.js 实战机会,通过每一节精心安排的课程目标,让 Node.js 的初学者们可以循序渐进地,有目的有挑战地开展 Node.js 的学习。

广告

需要内推腾讯的同学请参照此贴: https://cnodejs.org/topic/58351689bde2b59e06141e9f

更多 Node.js 入门资料请前往:https://cnodejs.org/getstart

新手搭建 Node.js 云主机,推荐使用无需备案的 DigitalOcean(https://www.digitalocean.com/)

课程列表

计划

本课程特点

License

MIT

node-lessons (alsotang/node-lessons)

Searching Database…

What is this?A free, hands-on Node.js course (titled 'Node.js 包教不包会' — roughly 'Node.js: Taught, Not Guaranteed') by alsotang, built as a series of practical lessons rather than a textbook.
Is this a book to read or a set of exercises?It is a lesson-based course: each numbered lesson sets a concrete challenge (build an Express app, write a scraper, control concurrency), and you are encouraged to try the challenge before reading the lesson's explanation.
How do I start working through it?Start with Lesson 0, which walks through setting up a Node.js dev environment, then go through the numbered lessons in order, starting with a basic Express app and moving on to scraping, concurrency, testing, and deployment.
Do I need anything beyond Node.js itself?Just a working Node.js environment to begin; each later lesson introduces its own npm packages as needed, such as Express, superagent, cheerio, eventproxy, async, and Mocha.
Is the content still current?The book was written in 2015 and never updated to cover Promises/async-await as the modern best practice for async code, though the examples still run fine since JavaScript has stayed backward compatible.
Who is this course friendly (and unfriendly) for?It assumes some baseline familiarity: it is not friendly to complete web-dev beginners or to Windows users, but is a good fit for developers coming from a Ruby on Rails background.
What does the web-scraping lesson teach?Lesson 3 walks through building a simple scraper using the superagent HTTP client together with cheerio for parsing HTML.
How does the course handle testing?Three lessons cover testing: Mocha/should/istanbul for unit tests, Mocha/chai/PhantomJS for browser-side tests, and supertest for testing HTTP endpoints.
Does the course cover deploying a Node.js app?Yes - Lesson 12 covers deploying to Heroku and Lesson 13 covers setting up continuous integration with Travis.
Are more lessons planned?The author lists planned but unwritten topics, including explaining HTTP headers, using MySQL, setting up Node.js/MongoDB/nginx on a fresh VPS, and building a simple blog app.
Creator
alsotang
Size
2 MB
Stars
16.4K
Updated
CommitFeb 15
Age
12y
Commits · 90 Days