Project and Reference in Node.js

Project and Reference is the last chapter of the free Node.js tutorial. It joins the whole course in one project and ends with a one-page cheat sheet.

What each lesson covers:

  • Capstone: Build a Report Card Service: A complete Node.js project in five steps: a command-line tool with parseArgs and an env file, streaming a marks file with readline and saving results safely, an EventEmitter-based report builder with custom errors, an HTTP API with health checks and graceful shutdown, and tests with node:test, followed by three extension exercises.
  • Node.js Cheat Sheet: A one-page Node.js reference: core modules, CommonJS and ES module patterns, event loop order, process, fs and path, EventEmitter, streams and buffers, HTTP and networking, child processes and workers, node:test, crypto, CLI flags, package.json fields and npm commands, plus common error codes, error messages with fixes, and a glossary for beginners.

Every lab runs a small Node.js runtime in your browser, in JavaScript or TypeScript (pick one in the Language menu at the top). Examples that need the real operating system show output from real Node.js.

Lessons in this section

  1. Capstone: Build a Report Card Service

    A complete Node.js project in five steps: a command-line tool with parseArgs and an env file, streaming a marks file with readline and saving results safely, an EventEmitter-based report builder with custom errors, an HTTP API with health checks and graceful shutdown, and tests with node:test, followed by three extension exercises.

    • Plan a small Node.js project in modules
    • Build a CLI with parseArgs, an env file and config validation
    • Process a data file with streams and save results safely
    • Report progress with events and handle bad data with custom errors
  2. Node.js Cheat Sheet

    A one-page Node.js reference: core modules, CommonJS and ES module patterns, event loop order, process, fs and path, EventEmitter, streams and buffers, HTTP and networking, child processes and workers, node:test, crypto, CLI flags, package.json fields and npm commands, plus common error codes, error messages with fixes, and a glossary for beginners.