Using TypeScript to build NodeJS and Express Application
|

Using TypeScript to build NodeJS and Express Application

In this article we will learn how can we build a NodeJS and express application using TypeScript, which is being treated as a JavaScript replacement and many NodeJS applications have already started shifting their code from JavaScript to TypeScript. So its just a matter of time for TypeScript to become the de facto standard for…

Using Docker to Containerize NodeJS and MongoDB Application

Using Docker to Containerize NodeJS and MongoDB Application

In this article we will learn how to run NodeJS applications on docker. We will take two examples of node applications, one a simple node app returning just ‘Hello from docker!!’ message as response, and another a full fledged node app with MongoDB that performs basic user registration, login and authentication. Checkout full source code…

Using Swagger to Autogenerate OpenAPI Specifications for REST APIs

Using Swagger to Autogenerate OpenAPI Specifications for REST APIs

In this article we will learn how we can auto generate OpenAPI Specifications using Swagger for RESTful APIs which helps us to describe, consume and visualize the APIs. With the help of swagger we will learn to autogenerate API documentation for REST APIs we built for CRUD operations. Checkout full source code for this implementation…

User Authentication in NodeJS using Passport.js (local strategy)

User Authentication in NodeJS using Passport.js (local strategy)

In this article we will learn how to implement user authentication in NodeJS using passport.js which is a authentication middleware and is extremely flexible and modular. In this tutorial we will create a simple NodeJS backend using express with just registration and login functionality to understand the use of passport.js in authentication. In previous article…

Using JWT Refresh Token in NodeJS and Angular Authentication
|

Using JWT Refresh Token in NodeJS and Angular Authentication

In this article we will learn how to generate and make use of JWT refresh token to request for new access token without having the need to login every time the access token expires. We will also learn how to use angular interceptor in this refresh process to check for access token expiry and immediately…