Node-config with dynamic configuration
You don't have to restart your Node.js app to apply new configuration. Simply update the configuration files. This repository is forked from lorenwest/node-config and more specifically this Pull Request.
Quick Start
Install in your app directory, and edit the default config file.
$ npm install config-dynamic$ mkdir config$ vi config/default.json
// Customer module configs "foo": "bar": "fizz"
Example express server that returns the config value:
$ npm install express$ touch index.js
const config = const express = const app = const port = 3000 app app
Start your app server:
$ node index.jsExample app listening at http://localhost:3000
Poll the server for the latest configuration:
$ curl localhost:3000fizz
Update config/default.json.
// Customer module configs "foo": "bar": "buzz"
Poll the server for the latest configuration:
$ curl localhost:3000buzz
License
May be freely distributed under the MIT license.