@hjkltop/nestjs-eureka
TypeScript icon, indicating that this package has built-in type declarations

1.0.7-beta.2 • Public • Published

Version

nests-eureka is a NestJS module that provides an integration with eureka-js-client

Getting Started

You need to import the EurekaModule in your application:

EurekaModule.forRoot({
    eureka: {
      requestMiddleware: (requestOpts, done) => {
        requestOpts.auth = {
          user: 'username',
          password: 'password'',
        };
        done(requestOpts);
      },
      host: 'eureka-service',
      port: 8761,
      registryFetchInterval: 1000,
      servicePath: '/eureka/apps/',
      maxRetries: 3,
    },
    service: {
      name: 'my-service',
      port: 8080,
    },
}),

Run Tests

npm run test
docker pull springcloud/eureka
docker run --rm -p 8761:8761 springcloud/eureka
npm run test:e2e

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @hjkltop/nestjs-eureka

Weekly Downloads

2

Version

1.0.7-beta.2

License

MIT

Unpacked Size

112 kB

Total Files

45

Last publish

Collaborators

  • ekxs