Category:: Express.js

Enabling HTTPS for Your Express App

I am gonna show you the usage of ssl certificates along with Express JS based application. Once you have your private key and certificate, using them in your app is easy. http Server Let’s revisit how we’ve […]

How to use JWT (JSON Web Token) with Express JS

Today I am gonna show you JWT(JSON Web Token) token generating and verification steps with express JS framework. What is JWT (JSON Web Token)? A JSON Web Token, or JWT, is used to send information that can be verified […]

Node JS Email Validation with MX DNS Record Check

Typically we do the email validation with regular expression which will validate the structure. The Regular expression can be useless even after it is validated the format if the domain does not exist. So validating with […]

How to serve static files with Express

In many instances you required to server static assets such as images, css files and JavaScript files, so today we gonna show you, how you can server static files using express framework. For example, If you have following […]

How to Delete a File in Node JS

The following tutorial will describe how to delete files that you no longer need, deleting files using node js extremely simple with node js’s fs library. Note: There is no way of undoing deleted files, just keep […]

Creating a RESTful API with Express js, Node js/MySQl

Do you want to create a RESTful API with NodeJS/Express Js framework? Here is the tutorial, by reading this tutorial you can create our own REST api application server. Nowadays, it’s quite common to create web and […]

How to handle cookies in Express JS?

Cookies are very useful to store small piece of web application data and cookies are stored on the user’s computer by the user’s web browser while the user is browsing. Express uses the same methods, Cookies, […]

Enabling HTTPS for Express.js application

By using HTTPS protocol we increase the security of your application, SSL mechanism will encrypt the connection between you and your application server, data will be travel in secure layer. To use SSL certificates in your […]

Express js optimize performance with GZIP Compression

You can improve speed and save bandwidth by using GZIP compression in your express js application. GZIP actually decreases the downloadable amount of data for user request. Without GZIP compression, when you request a […]

Express js optimize performance with clusters

You can increase the performance of your Express.js application by using clusters. Cluster is a native core library from node.js which allows you to implement a network of multiple processes. Usually an node js process […]

NPM top commands

Just like composer from PHP ,RubyGems from Ruby ,pip from Python, Maven from Java, NuGet from Microsoft Node.js also has a package manager, Node Package Manager (NPM). NPM Commands Here is the list of commonly used top […]