Node.js is the most-deployed JavaScript runtime outside the browser, and Express is the most-used framework on top of it. This tutorial walks you through Node.js the way you will actually use it - file system, child processes, HTTP servers, async patterns, Express APIs, MongoDB integration, debugging, and deployment.
We start with installation and the REPL, then move through the file system (because every Node.js script eventually reads a file), async patterns (callbacks, promises, async/await, loops without footguns), HTTP/HTTPS servers, Express + database integration (MongoDB + Mongoose, MySQL), and finally testing, debugging, and Heroku deployment. Every example is a small, runnable snippet you can paste into a fresh node REPL.
Click Start the course to begin with installation, or jump to the chapter you need - Async Patterns and Express and Databases are the most-bookmarked.
How to use this course
Node.js lessons are designed as copy-paste snippets you can run in a fresh project directory. Create a folder per chapter, run npm init -y, and install only the packages named in that lesson so dependency trees stay small. The early modules cover the REPL, fs, and path; mid-course chapters introduce HTTP servers and Express routing; later chapters connect to MongoDB and MySQL and finish with testing and Heroku deployment.
When async code misbehaves, read the Async Patterns chapter before stacking await inside loops. For Express middleware ordering or error handlers, keep the official flow diagram from that lesson open while you edit routes.
Environment setup
| Requirement | Notes |
|---|---|
| Node.js LTS | 20.x or 22.x; use nvm if you maintain multiple versions |
| npm or yarn | Examples use npm install |
| MongoDB | Local instance or Atlas free tier for Mongoose chapters |
| MySQL | Optional for SQL-backed Express examples |
Browser-side JavaScript knowledge helps but is not required. If you need language fundamentals first, work through the JavaScript tutorial track, then return here for server-side I/O and networking.
Topic overview
| Module | What you will build |
|---|---|
| Core APIs | File reads, streams, child processes, environment variables |
| HTTP layer | http/https modules, Express routers, middleware |
| Data stores | Mongoose schemas, MySQL connection pools |
| Reliability | Error middleware, debugging with inspector, common module fixes |
| Shipping | assert tests, Heroku Procfile, production env vars |
From here, explore Laravel for a batteries-included PHP framework or Python if your team standardizes on FastAPI or Django for APIs.

