跳到主要内容
学院
中级 代码街区

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
    第 1 单元

    Node.js basics

    What Node is, ES modules, built-in modules, npm and scripts.

    0 / 4
  2. 2
    第 2 单元

    The event loop

    How one thread serves thousands, worker threads and EventEmitter.

    0 / 3
  3. 3
    第 3 单元

    Files and streams

    Read and write files, build safe paths and stream big data.

    0 / 3
  4. 4
    第 4 单元

    HTTP servers

    Build servers with node:http, then with Express 5.

    0 / 3
  5. 5
    第 5 单元

    A real JSON API

    REST routes, validation, errors, logs and a leaderboard.

    0 / 4
  6. 6
    第 6 单元

    Ready for production

    Tests, TypeScript, configuration, security headers and Docker.

    0 / 4

快速导航