# queue-bull-component

[![LoopBack](https://github.com/loopbackio/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)](http://loopback.io/)

## Installation

Install BullQueueComponent using `npm`;

```sh
$ [npm install | yarn add] queue-bull-component
```

## Basic Use

Configure and load BullQueueComponent in the application constructor
as shown below.

```ts
import {BullQueueComponent, BullQueueComponentOptions, DEFAULT_QUEUE_BULL_COMPONENT_OPTIONS} from 'queue-bull-component';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: BullQueueComponentOptions = DEFAULT_QUEUE_BULL_COMPONENT_OPTIONS;
    this.configure(BullQueueComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(BullQueueComponent);
    // ...
  }
  // ...
}
```
