1.11.1 • Published 2 years ago
@everymundo/em-eureka v1.11.1
@everymundo/em-eureka
Description
This is a tool to help integrate nodejs applications with the everymundo microservices infrastructure by allowing nodejs apps to connect to Netflix Eureka servers.
Installation
npm install @everymundo/em-eureka
Usage
const {EmEureka:{createClient}} = require('@everymundo/em-eureka');
// To connect to eureka and put this app available to other apps to use
const eurekaCli = createClient({ app: 'myAppName', port: 3001 });
// Then, after the previous line
// to use apps already available on eureka
const otherApp = eurekaCli.service('otherApp', {headers: {'x-api-key'}});
otherApp.get('/method?param1=value1¶m2=value')
.then(({body}) => {
console.log({body});
})
otherApp.post('/something?'+Math.random(),{timeout:250, data:{something:'else'}})
.then((res) => {
const {body, status, headers} = res
console.log({body, status, headers});
})
1.11.1
2 years ago
1.11.0
2 years ago
1.10.7
3 years ago
1.10.6
3 years ago
1.10.5
5 years ago
1.10.4
5 years ago
1.10.3
5 years ago
1.10.2
5 years ago
1.10.1
5 years ago
1.9.1
5 years ago
1.9.0
5 years ago
1.8.4
5 years ago
1.8.3
6 years ago
1.8.2
6 years ago
1.8.0
6 years ago
1.7.2
6 years ago
1.7.1
6 years ago
1.7.0
6 years ago
1.6.0
6 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago