Sikau

Learn Node.js

JavaScript on the server: files, HTTP, Express and APIs.

Take JavaScript to the server. Learn the Node runtime, modules and npm, files, the event loop and events; build HTTP servers and Express APIs with routing, middleware and validation; then configuration, authentication, testing, security and deployment — in a Node.js runtime that runs in your browser.

Intermediate · 18 lessons · about 10 hours · free

Start Node.js free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: Node basics

The runtime, modules, files, async code and events.

  1. Day 1What is Node.js?JavaScript outside the browser.20 min
  2. Day 2Modules and npmSplit code into files; use other people's packages.30 min
  3. Day 3Reading and writing filesfs/promises, JSON and paths.30 min
  4. Day 4Async and the event loopHow one thread handles thousands of requests.30 min
  5. Day 5EventsEventEmitter: the pattern behind servers and streams.25 min
  6. Day 6Project: A command-line todo appArguments, files and JSON together.40 min

Unit 2: HTTP and Express

Servers, routing, middleware and REST APIs.

  1. Day 7Your first HTTP serverhttp.createServer, requests and responses.30 min
  2. Day 8Routing and JSON bodies by handMethods, paths, query strings and request bodies.35 min
  3. Day 9Express basicsRoutes, params, queries and JSON — cleanly.30 min
  4. Day 10MiddlewareLogging, body parsing, auth checks and error handling.35 min
  5. Day 11A REST APICRUD with the right methods, routes and status codes.40 min
  6. Day 12Project: A structured APIexpress.Router, modules and validation helpers.45 min

Unit 3: Production Node

Configuration, auth, testing, security and deployment.

  1. Day 13Configuration and environmentsSettings from the environment, validated at startup.25 min
  2. Day 14Passwords and tokensHash passwords, issue tokens, protect routes.40 min
  3. Day 15Testing with node:testProve your code works — and keeps working.30 min
  4. Day 16Security essentialsValidate, limit, and don't leak.35 min
  5. Day 17Running in productionLogs, health checks, graceful shutdown, processes and Docker.25 min
  6. Day 18Capstone: Orders APIAuth, validation, persistence and a Router.60 min

Before you start

These courses make Node.js easier:

See all courses

Built with ❤️ by dibe.sh