Node.js in Depth
Build the server side of an app in JavaScript: run Node.js programs and command-line tools, build REST APIs with Express, keep their data in MongoDB, add…
Updated
Module 1: Meet Node.js
Run JavaScript outside the browser: set up Node.js and Git, refresh the JavaScript Node code leans on, organize a program with modules and npm, find bugs with the debugger, and build command-line tools that read and write files, then finish an expense tracker that turns a bank's CSV export into a monthly summary.
- Getting Started with Node.js (5 topics, 8 lessons)
- The JavaScript You Need for Node (4 topics, 10 lessons)
- Modules, npm and the Debugger (4 topics, 6 lessons)
- Files and the Command Line (5 topics, 8 lessons)
Module 2: Building Web APIs with Express
Build the server side of an app: learn HTTP in plain words, answer requests with Node's own http module, then build REST APIs with Express, with routes, parameters, middleware, validation and consistent errors, and prove they work with node --test and Supertest. Then build a library's book-loans API.
- HTTP and Your First Server (3 topics, 5 lessons)
- Express: Routes and Middleware (3 topics, 5 lessons)
- Validation, Errors and REST Design (4 topics, 5 lessons)
- Testing an API (4 topics, 5 lessons)
Module 3: Data with MongoDB
Keep an API's data in MongoDB: documents and collections, a database on your own computer, the official driver's create, read, update and delete, filters, sorting, paging and search, database code kept in one place and tested with mongodb-memory-server, and Mongoose when a project uses it. Then build a recipe box API with search.
- The MongoDB You Need for Node (4 topics, 5 lessons)
- Reading and Changing Data (4 topics, 5 lessons)
- An API Backed by MongoDB (5 topics, 6 lessons)
Module 4: Users and Security
Give an API accounts it can trust: hashed passwords, sign-up and sign-in, session cookies and tokens (JWT) and when each fits, rules about who may do what, CORS, security headers, rate limits, the attacks to expect and secrets kept out of your code. Then build a club's events API where only organizers create events.
- Passwords and Signing In (3 topics, 5 lessons)
- Who May Do What (3 topics, 3 lessons)
- Hardening an API (4 topics, 6 lessons)
Module 5: Real-Time Apps
Make the server speak first: WebSockets for live updates, broadcasting to everyone at once, streams for files too big to hold in memory, uploads with limits, and work that runs after the response. Then build a live quiz game for a group of friends.
- WebSockets (3 topics, 4 lessons)
- Streams, Uploads and Background Work (5 topics, 5 lessons)
Module 6: Professional Node
Work the way professional Node developers do: structured logs, configuration checked at startup, a graceful shutdown and a health check, performance you measure, ESLint and Prettier, a CI pipeline on GitHub Actions, and your API online at a link with Render and MongoDB Atlas. Then ship a small API of your own and the final capstone.
- Logs, Configuration and Shutdown (4 topics, 5 lessons)
- Code Quality and CI (3 topics, 3 lessons)
- Putting an API Online (4 topics, 4 lessons)