Node.js Tutorial
JavaScript on the server
Build backend applications with Node.js. 20 free lessons covering modules, npm, Express, file system, REST APIs, and async patterns.
What you'll learn
- Node.js modules
- npm and packages
- File system operations
- Express.js framework
- REST API design
Prerequisites
- Solid JavaScript
- Basic command-line usage
Why learn Node.js?
- Run JavaScript anywhere — beyond just the browser
- Power behind most modern web servers
- Same language across front-end and back-end
- Huge npm ecosystem — packages for everything
Course Curriculum
20 lessons · ~12 hours · self-paced
- 1
Introduction to Node.js
What is Node.js?
- 2
Installing Node.js & Setup
Installing Node.js and npm
- 3
Node.js Modules
CommonJS Modules (require / module.exports)
- 4
The File System (fs)
Reading and Writing Files
- 5
Working with Paths
The path Module
- 6
HTTP Module
Creating a Basic HTTP Server
- 7
NPM & Package Management
Installing and Managing Packages
- 8
Introduction to Express.js
What is Express.js?
- 9
Express Routing
Route Parameters and Query Strings
- 10
Middleware in Express
Built-in and Custom Middleware
- 11
Template Engines (EJS)
Setting Up EJS
- 12
REST API Basics
What is a REST API?
- 13
Building a REST API
CRUD Operations with Express
- 14
Working with Databases (MongoDB)
MongoDB and Mongoose ODM
- 15
Working with SQL Databases
Connecting to SQL Databases
- 16
Authentication & Authorization
Password Hashing with bcrypt
- 17
Error Handling
Async Error Handling Patterns
- 18
Environment Variables & Config
Using dotenv and process.env
- 19
Node.js Best Practices
Project Structure That Survives Growth
- 20
Final Project: Build a REST API
Project Setup and Configuration
From the Blog
Guides and tutorials related to Node.js.
Ready to start?
All 20 lessons are free. No credit card. No sign-up required to read.
Start with lesson 1: Introduction to Node.js