Skip to content

jojustin/nconf-appconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nconf-appconfig

IBM Cloud App Configuration store for nconf

Installation

Installing npm (node package manager)

  $ curl http://npmjs.org/install.sh | sh

Installing nconf-appconfig

  $ [sudo] npm install nconf
  $ [sudo] npm install nconf-appconfig

Usage

The store provided by nconf-appconfig will persist all of your configuration settings to a IBM Cloud App Configuration server. All calls to .get() are asynchronous taking an additional callback parameter.

  var nconf = require('nconf');
  
  //
  // Requiring `nconf-appconfig` will extend the `nconf`
  // module.
  //
  require('nconf-appconfig');
  
  nconf.use('appconfig', { region: 'us-south', guid: 'guid', apikey: 'apikey', collectionId: 'collection', environmentId: 'dev', debug: 'true' });

Refer to appconfiguration-node-sdk for details of the SDK initialization of IBM Cloud App Configuration.

Author: Josephine Eskaline Joyce

Releases

No releases published

Packages

No packages published