Node.js Tutorial

This practical Node.js tutorial provides you with everything you need to use Node.js effectively.

What you will learn:

  • Learn the fundamentals of Node.
  • Master Node.js module system.
  • Utilize Node package manager (npm).

Who this tutorial is for:

  • Anyone who already has basic JavaScript knowledge.

Section 1. Getting Started with Node.js

  • What is Node.js – Explain to you what node.js is and why you should use Node.js for your next projects.
  • Install Node.js – Show you step-by-step how to install Node.js on your computer.
  • Node.js Hello, World! – Learn how to create a Node.js Hello World program and automatically rerun the program whenever the code changes using the --watch flag.

Section 2. Node.js Module Systems

  • CommonJS modules – Help you understand how CommonJS modules work and how to create and reuse a module in a program.
  • ES modules – Guide you on how to use ES modules in Node.js.
  • Path module – Learn how to use the path module to manipulate file paths effectively.
  • OS module – Show you how to perform operating system-related activities using the os module.
  • Events module – Explain the events module and how the EventEmitter object works.
  • HTTP module – Learn how to use the http module to create a simple HTTP server.
  • Process module – Show you how to use the process core module to access environment variables.

Section 3. Node Package Manager (NPM)

  • What is npm? – Give you a quick introduction to npm and how to use the npm CLI to install a new package.
  • npm semantic versioning – Learn to specify a version for your package using the semantic versioning spec.
  • npm list – Show you how to use the npm list command to list the installed packages.
  • npm view – Guide you on how to view information on a package.
  • npm uninstall – Show you how to remove a package from the current project.
  • npm publish – Guide you on publishing your package to the npm registry.

Section 4. Interacting with databases

  • Node.js SQLite – Show you how to interact with SQLite using the built-in Node.js module.

Section 5. Node.js Tools

  • Node Version Manager on Windows: A complete guide to Node Version Manager (NVM) on Windows, which allows you to manage and switch between multiple Node.js versions on a single Windows computer.
  • Node Version Manager on macOS: A complete guide to Node Version Manager (NVM) on macOS. You’ll learn to manage multiple Node.js versions and switch between them on a single macOS.