open-index/open-npm huggingface dataset:
npm package: @pharmercure/nestjs-consul
Description: A library to make your Nestjs application discoverable to Consul
Latest version: 0.0.2

# nestjs-consul

A library to make your Nestjs application discoverable to Consul

## How to
Install the package with the command
```shell
npm i @pharmercure/nestjs-consul
```
Then import the package in your `AppModule` like this:
```typescript
@Module({
  imports: [
    ...,
    NestjsConsulModule.forRoot({
      host: 'Consul host',
      port: 'Consul port',
      secure: false,
      service: {
        name: 'Name of the service',
        address: 'address of the service',
        port: 'Port of the service',
        check: {
          http: `Healthcheck endpoint`,
          ttl: 'Healthcheck ttl',
          interval: 'Healthcheck interval',
        },
      }
    }),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule { }
```