Free course
Node.js Course
Learn to run JavaScript outside the browser, organize modules and packages, work with files, handle asynchronous events, and build HTTP servers.
Prerequisites: JavaScript, Shell Commands and HTTP
Your progress
of lessons completed.
Course completed.
What you'll learn
Build a small Node.js command-line program and an HTTP server using modules, files, asynchronous code, and environment configuration.
Take this course offline
Subscribe to my newsletter to get every free book and course in PDF and EPUB format.
Get the downloadsCourse contents
The Node.js runtime
Install Node, run scripts, use the REPL, and work with process.
- ✓ The Node.js Guide
- ✓ How to install Node.js
- ✓ Differences between Node and the Browser
- ✓ How to use the Node.js REPL
- ✓ Run a Node.js script
- ✓ Node, accept arguments from the command line
- ✓ Output to the command line using Node
- ✓ Accept input from the command line in Node
- ✓ Check your understanding: the Node.js runtime
Modules and npm
Organize code and manage project packages and versions.
- ✓ The Node Core Modules
- ✓ CommonJS modules
- ✓ Expose functionality from a Node file using exports
- ✓ ES modules in Node.js
- ✓ The package.json guide
- ✓ An introduction to the npm package manager
- ✓ npm dependencies and devDependencies
- ✓ Semantic Versioning using npm
- ✓ Lock dependency versions
- ✓ Check your understanding: modules and npm
Files and paths
Read, write, inspect, and locate files without blocking work.
Asynchronous code and events
The event loop, promises, emitters, streams, and failures.
- ✓ The Node.js Event Loop
- ✓ Understanding process.nextTick()
- ✓ Understanding setImmediate()
- ✓ Use promises and await with Node.js callbacks
- ✓ The Node Event emitter
- ✓ Error handling in Node.js
- ✓ Node.js Streams
- ✓ Do not block the event loop
- ✓ Handle asynchronous failures
- ✓ Check your understanding: asynchronous code and events
Servers and environment
Requests, responses, configuration, deployment, and shutdown.
- ✓ How to read environment variables from Node.js
- ✓ Load an environment file
- ✓ Build an HTTP Server
- ✓ Serve an HTML page using Node.js
- ✓ Get HTTP request body data using Node
- ✓ Make an HTTP POST request using Node
- ✓ Route requests by method and URL
- ✓ Node, the difference between development and production
- ✓ Where to host a Node.js app
- ✓ Shut a server down gracefully
- ✓ Build a small JSON server
- ✓ Check your understanding: servers and environment