Node.js curriculum
Node.js
11 lessons ready
Run JavaScript on the server: modules, npm, files, Express, REST APIs.
Beginner
What is Node.js?
JavaScript outside the browser. What Node.js is and how to run your first script.
6 minFree preview
Modules
Split code into files with export and import, and use Node's built-in modules.
7 minFree preview
npm and packages
Install other people's code with npm, and understand package.json and node_modules.
7 min Account
Working with files
Read and write files with the fs module, using async and await.
8 min Account
Your first web server
Build a tiny HTTP server with the built-in http module and see requests and responses.
8 min Account
Intermediate
Express basics
Routing, route parameters and query strings in a few lines with the Express framework.
9 min Account
Building a REST API
Create, read, update and delete resources over HTTP with correct methods and status codes.
10 min Account
Environment variables
Keep secrets and settings out of your code with process.env and .env files.
8 min Account
Advanced
Middleware
Functions that sit between a request and a response: logging, authentication checks and error handling.
9 min Account
Databases
Store data permanently with SQL: create tables, insert, query and update, using Node's built-in SQLite.
10 min Account
Authentication
Store passwords safely with hashing and salt, and issue signed tokens to prove who a user is.
10 min Account