Categories
Express.js

API Caching with Redis and Node.js

In this post, I would like to show you, how we can use Redis to Cache APIs response to avoid multiple hits to the API. Same technique you can use to avoid multiple database calls ..etc We gonna create the express.js application to demonstrate Redis cache example. let’s create a folder called redisCahceExample After creating, […]

Categories
Express.js

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 […]

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

Categories
Express.js

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, […]

Categories
Node JS

How to Build and integrate MailChimp Subscribe list with Node js

In this post I would like to show you a simple demo application which is build on top of express js framework, By following this tutorial you gonna build a subscribe form, through this form user can subscribe to MailChimp subscription list. Let’s setup your express js application by creating package.json file and install required […]

Categories
Express.js

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 […]

Categories
Express.js

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 […]