Home » Node.js

Tag Archives: Node.js

Rate limiting in Express

Hello. In this tutorial, we will understand how to implement a simple rate-limiting in a simple nodejs application using express. 1. Introduction With the increase in digital security, there are many reasons for protecting the api’s such as saving costs in the cloud or restricting the api usage. The express-rate-limit is a simple library that helps to quickly build a ...

Read More »

Securing Restful APIs with Nodejs and Express

Hello. In this tutorial, we will understand how to secure restful apis in a nodejs with the help of the json web token. 1. Introduction To protect the restful apis in a nodejs application once usually recommends the most common approach known as the json web token (popularly called the “jwt” or “jot”). Json web tokens (or jwt) are an ...

Read More »

Why Node.js is Great for Backend Development?

There is no denying that every business wants to provide a seamless experience to its users through its app. And this can be achieved by making the backend of the app strong. Node.js is the one that’s becoming the first choice of businesses for developing scalable mobile and web applications. The USA alone has over 41,000 websites created using Node ...

Read More »

LocalStack SQS Node.js Example

Hello. In this tutorial, we will interact with Amazon AWS SQS (simple queue service) to create a Node.js app with the help of a popular emulator known as LocalStack. 1. Introduction Localstack is an aws cloud service emulator that runs in a single container and allows us to run the aws applications on our local machines without connecting to a ...

Read More »

How to do pagination in Node.js

Hello. In this tutorial, we will explain the concept of pagination in a node.js application. 1. Introduction Pagination is a concept of adding numbers to identify the sequence of pages. In pagination, we use the skip and limit key for reducing the size of data retrieved from the database. In this tutorial, we will implement pagination in the simplest terms ...

Read More »

Firebase Cloud Firestore using Node.js

Hello. In this tutorial, we will explain the implementation of Firebase Firestore in the node.js application. The application will be responsible to perform the crud operations. 1. Introduction Firebase is a Backend-as-a-Service (BaaS) that helps to store real-time data in the database. Allows syncing the real-time data across all devices. Features – Serverless Highly secure Offers minimal setup Provides three-way ...

Read More »

Readable and Writable Streams in Node.js

Hello. In this tutorial, we will explain readable and writable Streams in a Node.js application. 1. Introduction Streams in the node are the objects that help you to write and read data to and from the destination source. There are four different types of streams in node.js: Readable – Stream uses for reading operations Writable – Stream used for write ...

Read More »

Session Management in Node.js

Hello. This tutorial will explain session management in the node.js application. 1. Introduction Session management is an important part of any application that helps the application track the users and their activities. To understand this we will be using a cookie which is key-value pair stored in the browser. The browser then attaches the cookies to every HTTP request sent ...

Read More »

Local Authentication Using Passport in Node.js

Hello. This tutorial will explain authentication in the Node.js applications through the passport module. 1. Introduction Passport.js is an authentication middleware designed for Nodejs. passport-local uses the passport strategy for authenticating with a username and password. The module helps to authenticate using a username and password in the nodejs applications. If you are interested in reading further about this module ...

Read More »