Package Exports
- @digifi/app-config-loader
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@digifi/app-config-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
App-Config-Loader

Takes db config from either the command line or .env file and returns app configuration for the periodic app.
- Command Line
$ node index.js -e development --db_config.settings.name=Test App --db_config.configuration.type=db --db_config.configuration.db=lowkie --db_config.configuration.options.dbpath=content/config/settings/config_db.json- .env file
- create a env file in the app_root with DB_CONFIG set to configurations in JSON format
Example .env
DB_CONFIG={
"settings": {
"name": "Test App Config"
},
"db_config":{
"type": "db",
"db":"lowkie",
"options":{
"db_path": "content/config/settings/config_db.json"
}
}
}
- Default
{
configuration: {
'type': 'db',
'db': 'mongoose',
'options': {
'url': 'mongodb://localhost:27017/config_db',
'connection_options': {},
},
},
settings: {
name: 'Sample App',
},
}