Follow

Tag: Node.Js

Using nconf to configure a Node.js application

Posted on August 18, 2017 by in Node.Js

Introduction

Sometimes things vary from environment to environment. Like, we wear a tie to the office but try not to elsewhere. Similarly in Node.js, you might want configuration settings to change per 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.