Getting started with Node.js: learn what Node.js is, how to install it with nvm, run your first script, use npm, and build a basic HTTP server.
Tutorial series
Node JS Essentials
10 tutorials — follow in order for the best learning path.
- Getting Started with Node.js: Install, npm, and First Server
- Node.js Essentials: Modules and npm
Learn Node.js essentials for creating, importing, and sharing modules, plus how to use npm to manage dependencies in your projects.
- Working with the File System in Node.js
A practical guide to working with the file system in Node.js. Covers reading, writing, and manipulating files with fs, fs/promises, streams, common patterns.
- Database Integration (SQL and NoSQL)
Connect Node.js to PostgreSQL and MongoDB: use the pg driver and Mongoose for database integration, connection pooling, and security best practices.
- Building HTTP servers with Node.js from scratch
Learn building HTTP servers using the Node.js http module. Handle routes, process requests, read request bodies, and set response headers without a framework.
- Node.js Essentials: Building a Web App with Express
Build a complete web app from scratch in this Node.js Essentials tutorial. Covers Express.js routing, middleware, form handling, and static file serving.
- Node.js Streams: Efficient Data Processing Guide
Node.js streams let you process large data chunk by chunk, keeping memory usage low. Learn readable, writable, and transform streams with examples.
- Node.js logging and monitoring: structured logs in production
Master Node.js logging and monitoring in production with structured logging, Pino, Winston, process events, and production best practices for observability.
- Node.js Worker Threads: Parallel Processing with worker_threads
Learn how to use Node.js worker threads for CPU-intensive tasks. Offload heavy computations from the event loop and improve application performance.
- Middleware Patterns in Node.js
Master middleware patterns in Express.js — learn how to create, chain, and compose middleware functions for scalable Node.js applications.