Build Node.js Authentication REST APIs with JWT

Build and Deploy token-based Authentication REST API server with JWT using NodeJS, MongoDB, ExpressJS, Docker, GCP

JSON Web Token (JWT) is popular and talked about all the time, but what is JWT exactly and what is JWT structure, and how it works. In this course, we will answer these questions and also see how we can use JWT to build a token-based authentication REST APIs using Node.js with JWT and see how is that compared to the traditional cookie-based authentication.

What you’ll learn

  • What is the JWT structure?.
  • token-based authentication.
  • Use NodeJS core module (crypto) to generate JWT.
  • Build NodeJS Authentication REST APIs that uses JWT.
  • Work with Express, Bcrypt, and NeDB.
  • Setup a new MongoDB cluster and connect the Auth API to it.
  • Learn how to wire the application modules using Dependency Injection(DI).
  • Use Docker to dockerize the authentication service.
  • Use Google Cloud Platform to deploy the authentication service.
  • Set security-related HTTP headers with Helmet.

Course Content

  • JWT –> 7 lectures • 39min.
  • Build Authentication API server –> 7 lectures • 59min.
  • Deploy Authentication API server –> 6 lectures • 35min.

Build Node.js Authentication REST APIs with JWT

Requirements

  • Understanding of Javascript.

JSON Web Token (JWT) is popular and talked about all the time, but what is JWT exactly and what is JWT structure, and how it works. In this course, we will answer these questions and also see how we can use JWT to build a token-based authentication REST APIs using Node.js with JWT and see how is that compared to the traditional cookie-based authentication.

This course also dives into defining and creating Authentication API, exposing API Endpoints over HTTP, and handling HTTP Requests. It covers testing API Endpoints (using an HTTP client – Postman).

This course will give you the skills you need to advance your NodeJS platform skills. This course is very practical and applicable. It focuses on teaching you skills you can use. In this course, you will build your skills with web API authentication, hashing, encryption, JWT, Docker, Google Cloud platform deployment.

Even though we will using Node.js but the concepts learned here can be used with any other framework!

By the end of this course you will learn:

  • What is the JWT structure?
  • Use Node.js core module (crypto) to generate JWT
  • Build Node.js Authentication Restful APIs that uses JWT
  • Work with Express, Bcrypt, and NeDB
  • Setup a new MongoDB cluster and connect the Auth API to it
  • Learn how to wire the application modules using Dependency Injection(DI)
  • Use Docker to dockerize the authentication service
  • Deploy authentication service to Google Cloud Platform