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…

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…