Convention-based bootstrapper for LoopBack applications
Go to file
Miroslav Bajtoš c1743dc2ff Load datasources and app cfg from multiple files
Modify loading of `appConfig` and `dataSourceConfig` to look for
the following files:

  - app.json
  - app.local.{js|json}
  - app.{$env}.{js|json}

  - datasources.json
  - datasources.local.{js|json}
  - datasources.{$env}.{js|json}

where $env is the value of `app.get('env')`, which usually defaults
to `process.env.NODE_ENV`.

The values in the additional files are applied to the config object,
overwritting any existing values. The new values must be value types
like String or Number; Object and Array are not supported.

Additional datasource config files cannot define new datasources,
only modify existing ones.

The commit includes refactoring of the config-loading code into
a standalone file.
2014-05-27 14:08:58 +02:00
lib Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00
test Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00
.gitignore Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00
.jshintignore Initial commit 2014-05-23 15:51:20 +02:00
.jshintrc Initial commit 2014-05-23 15:51:20 +02:00
CONTRIBUTING.md Initial commit 2014-05-23 15:51:20 +02:00
LICENSE Initial commit 2014-05-23 15:51:20 +02:00
README.md Initial commit 2014-05-23 15:51:20 +02:00
index.js Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00
package.json Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00

README.md

LoopBack Boot

LoopBack Boot is a convention-based bootstrapper for LoopBack applications.

For full documentation, see the official StrongLoop documentation:

Installation

npm install loopback-boot

Usage

TBD