Home » Express.js

Tag Archives: Express.js

Using the EJS template in the node.js application

Hello. In this tutorial, we will understand and see a practical implementation of ejs template in the nodejs and express js application. 1. Introduction ejs or Embedded Javascript Templating is a template engine used by nodejs applications. The template engine helps to work on the html code with minimal code. Ejs is one of the most common templating engines used ...

Read More »

HTTP POST Request in Node using Axios

Hello. In this tutorial, we will understand and see a practical implementation of the HTTP POST Request with Axios in the express js application. 1. Introduction Axios is a promise-based HTTP client for browser and nodejs. It makes asynchronous calls to the restful endpoints and can be used with plain javascript or applications like Vue or React. It offers several ...

Read More »

Express.js Template Engine

Hello. In this tutorial, we will understand how to a template engine in a simple express.js application. 1. Introduction The template engine in the express js application helps to use the static template files in the applications. At runtime, it replaces the variable in the template file with the actual values. Some of the commonly used popular template engines are ...

Read More »

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 »

CRUD Operations with SQLite in Express.js

Hello. In this tutorial, we will perform CRUD operations in an Express.js application with SQLite. 1. Introduction SQLite is a software library that provides a relational database management system. It is lightweight in terms of setup, database administration, and required resources. It is self-contained, serverless, zero-configuration, transactional. Self-contained means that it require minimal support from the operating system or any ...

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 »

Node.js JWT Implementation

Hello. In this tutorial, we will implement a Node.js JWT (JSON Web Token) to protect the application endpoints from unauthorized access. The Node.js framework is commonly used to create server-based applications which are further used to show the contents to the users. 1. Introduction JSON web tokens (or the JWT’s) is an Open RFC standard that defines a compact and ...

Read More »

Node.js and MongoDB Tutorial

Hello. In this tutorial, we will create a simple node.js application and perform the CRUD operations with the MongoDB. The node.js framework is commonly used to create server-based applications which are further used to show the contents to the users.  1. Introduction Let us first understand that what is Mongo database and set up Node.js. MongoDB is a high-performance NoSQL ...

Read More »