@vidaxl/microservice-status-handler
v0.0.15
Published
To avoid typing the same boring lines per microservice. You use it like this in the status handler:
Downloads
19
Keywords
Readme
motivation
To avoid typing the same boring lines per microservice. You use it like this in the status handler:
const statusAggregator = require('status-aggregator');
const configGetter = require('./helpers/config');
const statusHandler = require('@vidaxl/microservice-status-handler');
module.exports = statusHandler
.name('product-catalog-service')
.configGetter(configGetter)
.statusAggregator(statusAggregator)();
dependencies
@vidaxl/status-aggregator-vidaxl-config-bridge Please note, that this library dependes on @vidaxl/config-getter-for-microservices, if you want to use it please add that to your package.json like:
"@vidaxl/config-getter-for-microservices": "latest",
"@vidaxl/microservice-status-handler": "latest"
Also this piece of software has a dependency, the @vidaxl/status-aggregator-vidaxl-config-bridge.
Please always install the latest from all as those will be backward compatible.
If you are implementing this library, please make sure that you copy/overwrite the .npmrc file with the one you find in the MICRO-49 branch of the product-catalog-service soon it will be in the master too.