2.2.0 • Published 4 years ago
vortexconfig v2.2.0
Include this module in your microservice with line: var config = require('vortexconfig');
To get config object: config.getConfig().then(result => { console.log(result) }); (getConfig() is a Promise that will return config object once resolved)
To get specific instance config object: config.getInstanceConfig(instance).then(result=> { console.log(result) });
You need to have a .env file in your Microservice/API root directory
This can either follow the cloud-example.env or file-example.env
Make sure PC is set up to access Vortex google cloud project otherwise it will not work.