0.1.4 • Published 8 years ago

@webgap/configuration v0.1.4

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

WebGAP Configuration

Build Status Test Coverage Code Climate Dependency Status

NPM version NPM downloads

README

This is the base configurations module for WebGAP. Contains base configurations Schema for all WebGAP components.

Dependencies

Handles configurations using node-convict.

Requirements

This module uses 2 environment variables. Only environment variables, no options parameters, are used in order to make sure the configurations and configurations schema is loaded once and only once (Caching Caveats).

The module loads a configuration JSON file:

NODE_APP_CONF - Full path to the configuration file 

The module holds a default schema for configurations used by WebGAP. If you want to use your own, it can be overridden using the following environment variable:

NODE_APP_CONF_SCHEMA - Full path of an alternative configurations schema

API

Installation

npm install @webgap/configuration --save

Usage

var configuration = require('@webgap/configuration');
...
var tokenSecret = configuration.get('GENERAL.TOKEN.SECRET');
...

Schema

Check the file configurations-schema.json for schema definition.

License

Apache License, Version 2.0

0.1.4

8 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago