Node.js 20 Backend Essentials
Build fast, scalable server-side JavaScript with Node.js 20. Master ES modules, the event loop, fs/promises, HTTP servers, streams, and REST API patterns.
What you'll build & master
- ✓ Run JavaScript on the server with Node.js 20 built-in modules (node:fs, node:path, node:http)
- ✓ Understand the non-blocking event loop and async/await I/O
- ✓ Read and write files safely with fs/promises and path.join()
- ✓ Parse environment config and JSON payloads cleanly
- ✓ Design RESTful HTTP endpoints with proper status codes and error handling
Course Syllabus
Node.js Core
- 18 min
Node.js Runtime, Modules & process
Understand how Node.js runs JavaScript outside the browser using V8, libuv, built-in node: modules, and process.env.
- 28 min
Event Loop & Async Concurrency
Master microtasks (Promises), timers, and running independent async tasks concurrently with Promise.all().
- 38 min
File System (node:fs/promises) & Paths
Read, write, and parse JSON files asynchronously using node:fs/promises and cross-platform path.join().
Backend APIs
- 19 min
HTTP Servers & JSON Routing
Build zero-dependency HTTP APIs with node:http, parse URL paths cleanly, and return proper HTTP status codes.
- 28 min
Streams, Buffers & Crypto Hashing
Process large payloads with constant memory using Node streams and generate secure hashes with node:crypto.
- 38 min
Middleware Pipelines & Centralized Errors
Compose request logging, auth guards, and centralized error handling using Express/Hono-style middleware pipelines.
Security & Auth
- 19 min
Password Hashing & Bearer Auth (scrypt)
Hash passwords safely with per-user salts using Node's built-in crypto.scryptSync and compare hashes with timingSafeEqual.
- 28 min
Rate Limiting, CORS & HTTP Security Headers
Protect Node.js APIs from abuse with sliding-window rate limits, explicit CORS origins, and body size caps.
Data & Persistence
Production Node.js
- 18 min
Built-In Testing with node:test & node:assert
Write fast, zero-dependency unit tests directly in Node.js 20 using node:test and node:assert/strict.
- 28 min
Structured Logging & Graceful Shutdown
Emit machine-parseable JSON logs and handle SIGTERM/SIGINT so deployments finish active requests cleanly.