Master Code
On The Go

Learn. Practice. Build.

Home › How-To › Node.js Guides
🟢 Node.js Guides

Learn Node.js — Complete Guides

From install to production. Every Node.js guide you need — install, npm, files, APIs, authentication, and databases.

12 guides · Updated weekly
🚀 Getting Started
🟢

Install Node.js

Complete install guide for Windows, Mac, and Linux with nvm, npm, and verification steps.

BeginnerSetup
⬆️

Update Node.js

Update to the latest LTS version with nvm, npm, Homebrew, or the official installer.

BeginnerSetup
📦

Install pnpm

The fast, disk-efficient package manager for Node.js projects.

BeginnerTools
🚀

Deploy Node.js Free

Deploy to Render, Railway, or Fly.io. Free tiers explained with step-by-step setup.

IntermediateDeploy
📚 Package Management
📦

npm vs npx vs yarn vs pnpm

Complete comparison — which package manager to use and when.

BeginnerComparison
🔧

Fix "Cannot Find Module"

Every cause and fix for the most common Node.js error.

IntermediateDebug
🔐

Environment Variables with dotenv

Load secrets and configuration safely from a .env file.

BeginnerConfig
📂 Working with Data
📄

Read & Write JSON Files

Read, parse, and write JSON files with the fs module and ES modules.

BeginnerFiles
🗂️

File System (fs) Module

Read, write, append, delete, and watch files with the fs module.

BeginnerFiles
🐘

Node.js with PostgreSQL

Connect Node.js to PostgreSQL with pg or Prisma. Includes pooling and transactions.

IntermediateDatabase
🌐 Building APIs
🚂

Install Express.js

The Node.js web framework for building APIs and web servers.

BeginnerExpress
🚂

Build First REST API

Full CRUD API with Express. Test every endpoint with curl.

IntermediateExpress
🔌

What Is a REST API?

HTTP methods, status codes, and how to design clean endpoints.

BeginnerConcepts
🔑

JWT Authentication

Sign, verify, and protect routes with JSON Web Tokens and middleware.

IntermediateAuth
⏳ Coming Soon
📁

Node.js Project Structure

Best practices for folders, routes, controllers, and services.

Coming Soon

🎯 Start with Install Node.js

New to Node? Begin with the install guide — everything else builds on it.

Open Install Guide →
← All How-To Guides