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)
  • Build a RESTful API using Express.
  • Interact with databases
  • Handling errors
  • Implementing Authentication and Authorization

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.

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 proccess 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. Building a RESTful API using Express

  • Express Hello World – Introduce the Express framework and show how to create the first Express application
  • Routing – Show you how to create routes that define endpoints and functions that respond to the client requests to these endpoints.
  • Middleware – Learn about express middleware.
  • Validation – Guide you on how to validate data using the express-validator library.