5.4.5 ā€¢ Published 8 years ago

kazana-config v5.4.5

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

kazana-config

Kazana core module for configuration

NPM version Dependency Status Build Status Coverage Status

Usage

Kazana apps can be configured in 4 ways

  1. config: {} setting in the app / plugin manifests

    module.exports = {
      name: 'myApp',
      version: '1.0.0',
      config: {
        kazana: {
          admin: {
            password: 'supersecret'
          }
        },
        myApp: {
          mySetting: 'value'
        }
      }
    }
  2. .kazanarc files, using the rc package.

    [kazana.admin]
      password = supersecret
    [myApp]
      mySetting = value
  3. Environment variables

    kazana_kazana__admin__password='supersecret' kazana_myApp__mySetting=value npm start
  4. command line arguments

    npm start -- --kazana.admin.password='supersecret'

See https://www.npmjs.com/package/rc#standards for more details on how configuration is retrieved, and it what order.

The settings become available as server.settings.app.<setting path> within the app and the plugins, for example server.settings.app.kazana.admin.password or server.settings.app.config.myApp.mySetting

Kazana Settings

Local setup and Testing

git clone git@github.com:eHealthAfrica/kazana-config.git
cd kazana-config
npm install
npm test

Test

devDependency Status

npm test

Credit

Brought to you by eHealth Africa ā€” good tech for hard places.

License

Apache-2.0

5.4.5

8 years ago

5.4.4

8 years ago

5.4.3

8 years ago

5.4.2

8 years ago

5.4.1

8 years ago

5.4.0

8 years ago

5.3.0

9 years ago

5.2.0

9 years ago

5.1.0

9 years ago

5.0.0

9 years ago

4.0.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago