Node.js
运行在服务器上的 JavaScript。
Node.js runs JavaScript outside the browser: on servers, in command-line tools and in the build tools you use every day. This track takes you from your first node command to a tested, secure JSON API: modern ES modules and npm, the event loop and worker threads, files and streams, HTTP servers with node:http and Express 5, validation, errors and logging, the built-in test runner, TypeScript with no build step, and deployment.
You already know JavaScript. Here you learn to run it where the data lives.
- 课时
- 21
- 时长
- 3 小时
- 级别
- 中级
本课程的内容目前为英文。
- 铜牌 可挑战
- 银牌 可挑战
- 金牌 未解锁
准备好证明自己了吗?
三场考试正等着你:铜牌、银牌和金牌。
学完后你将能够
- Set up modern projects with ES modules, npm scripts and Node's built-in modules
- Explain the event loop and keep it free with async I/O and worker threads
- Read, write and stream files safely, even huge ones
- Build a REST JSON API with Express 5, validation and central error handling
- Test with
node:test, run TypeScript directly and ship to production with Docker
学习旅程
1 第 1 单元Node.js basics
What Node is, ES modules, built-in modules, npm and scripts.
0 / 42 第 2 单元The event loop
How one thread serves thousands, worker threads and EventEmitter.
0 / 33 第 3 单元Files and streams
Read and write files, build safe paths and stream big data.
0 / 34 第 4 单元HTTP servers
Build servers with node:http, then with Express 5.
0 / 35 第 5 单元A real JSON API
REST routes, validation, errors, logs and a leaderboard.
0 / 46 第 6 单元Ready for production
Tests, TypeScript, configuration, security headers and Docker.
0 / 4