@rxap/nest-rabbitmq
TypeScript icon, indicating that this package has built-in type declarations

10.0.1 • Public • Published

@rxap/nest-rabbitmq

npm version commitizen friendly styled with prettier Libraries.io dependency status for latest release, scoped npm package npm NPM - Installation

Installation Add the package to your workspace: ```bash yarn add

@rxap/nest-rabbitmq

**Install peer dependencies:** ```bash yarn add
  @nestjs/common@^10.3.8 @nestjs/config@^3.2.2 @nestjs/microservices@^10.3.8 @nestjs/terminus@^10.2.3 @rxap/nest-vault@^10.1.1-dev.0 @rxap/utilities@^16.4.0-dev.1 amqp-connection-manager@^4.1.14 amqplib@^0.10.4 rxjs@^7.8.1 

Execute the init generator: bash yarn nx g @rxap/nest-rabbitmq:init

Guides

ClientRMQExchange

import { VaultModule, RabbitmqVaultService } from '@rxap/nest-vault';
import { ClientsModule } from '@nestjs/microservices';
import { ClientRmqExchangeModuleOptionsFactory, RABBITMQ_EXCHANGE } from '@rxap/nest-rabbitmq';
import { Logger, Module } from '@nestjs/common';

@Module({
  imports: [
    VaultModule.register(),
    ClientsModule.registerAsync({
      clients: [
        {
          name: RABBITMQ_EXCHANGE,
          useClass: ClientRmqExchangeModuleOptionsFactory,
          extraProviders: [ RabbitmqVaultService, Logger ]
        }
      ],
      isGlobal: true
    })
  ],
})
export class AppModule { }

Generators

##
init
>
Initialize the package in the workspace

```bash yarn nx g
@rxap/nest-rabbitmq:init
```

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @rxap/nest-rabbitmq

    Weekly Downloads

    8

    Version

    10.0.1

    License

    GPL-3.0-or-later

    Unpacked Size

    92.4 kB

    Total Files

    35

    Last publish

    Collaborators

    • badry.muenker
    • mmuenker