01 Node.js 介绍
什么是 Node.js
- Javascript on the machine — JavaScript 跑在机器端(服务端),不只是浏览器
- A runtime for Google Chrome's V8 Javascript engine — 跑在谷歌 V8 引擎上的运行时
Node.js 的用途
- 构建工具 — gulp、webpack 都要依赖 Node.js(Build Tools and Utilities)
- Web 应用 / Web 服务端 — Web Applications / Web Services
Node.js 擅长做什么
- 轻量级到大型应用 — Lightweight Applications all the way up to very large
- 高并发性 — High Concurrency
- 异步非阻塞 — Asyncronous Actions/Requests/non-blocking
- 实时通信 — Realtime Communication
- 同构应用 — Isomorphic Applications,服务端和客户端共享代码