Category: Node.Js

Using nconf to configure a Node.js application

Posted on August 18, 2017 by in Node.Js


Sometimes things vary from environment to environment. Like, how we wear a tie to the office, but would try not to elsewhere, save for a few occasions. Similarly, in Node.js, you might want configuration settings to change in each environment. Some of these settings include IP address, port number, database configurations etc., that change from the development to production environment. The recommended approach for changing your app’s environment is by using the NODE_ENV environment variable.

Currently, Node.js does not have a standard way of managing config variables, but luckily there are a number of node modules that will help you to standardize this. One among them is the nconf package. Nconf provides a hierarchical Node.js configuration with files, command-line arguments, and environment variables.

User Authentication and Authorization – Part ll

Posted on June 16, 2017 by in Node.Js


Authentication is used by the server when it needs to know the identity of someone who is accessing their information.
Authorization is a process by which the server determines if the client has permission to use a resource or
access a file. In general, authentication answers the question“Who are you?” and authorization answers  “What are you allowed to do?”.

In an earlier blog, we have discussed about Token based authentication and authorization and how it is being implemented in one of our projects. Over these past few months, we’ve made changes to our approach.
Read on to find out what enhancements we have made and why.

Designing a notification system

Posted on April 26, 2017 by in Node.Js, SQL

It has become common for any social mobile or web app to support notifications and track user activities within that application.


Using Bower, Grunt and VS Code for Node.JS development

Posted on June 8, 2015 by in Node.Js

We’ve been working extensively with Node.JS and Express for the past 8 months and have picked a few components that allow us to work efficiently and manage our project better. In this blog we will be discussing how to setup a Node.JS project with,

Token based authentication system in Node.JS

Posted on June 8, 2015 by in Node.Js

What is token based authentication ? 

At a very basic level, token based authentication works as follows –