Express JS – Convert Given text to Voice using Node JS

I this post I would like to introduce ‘say’, which reads out the given text and we can even save it in audio format. Requirements Mac OS X (comes with say) Linux with Festival installed, you can install with sudo apt-get install festival festvox-kallpc16k Windows (comes with SAPI.SpVoice). Limitations In windows systems, voice parameter is […]

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 been creating our http server: https Server Switching over to HTTPS is simple. Put your private key and […]

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 and trusted by means of a digital signature. It comprises a compact and URL-safe JSON object, […]

Node JS – Integrate Stripe Payment Gateway in Express JS

One of the obvious reason to love stripe is, it is pretty easy to integrate and nowadays it is the most popular one. You can create a Stripe account via stripe registration page, which you can use for both testing and production, both version will contain different app key and secret key, make sure to […]

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 directories under the public directory css – which holds the css files js – which holds the […]

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 mobile apps that consume data from APIs. This is providing easy decoupling, client or server can be developed […]

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, as most other web frameworks to track sessions. A cookie will have the session ID so that Express can […]

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 application you have to purchase it form authorized certificate providers like Godaddy.com or you can install your own self […]

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 file like http://example.com/about.html, your browser talks to a web server and return plan HTML without compression, if you enable GZIP compression […]

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 will only use one core process meaning we are not using all available CPU power, using clusters we can spin […]

Send Email using G-Mail SMTP in Express/Node.js

In this arti­cle, I will demon­strate a sim­ple exam­ple of send­ing emails using G-Mail SMTP in Express/ Node.js. fortunately sending emails in express/node js pretty easy, in node.js there are many open source email libraries are available. In this tutorial we are going to use express-mail library. For sending html emails we are going to […]

Express js – Creating your own middleware

One of the greatest things about Express is that it is easily extended, which is achieved by using middleware. Middleware are functions that handle requests, which are invoked by the Express.js routing layer and we can have N number of middleware on single request. In fact, our routes are just the final middleware function. We […]

Getting Started with Express.js

In this post I would like to write getting started steps for Express.js framework. What is Express? Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.It’s an easy to use node.js framework for web applications. This post is part of a series […]