0.0.9 • Published 4 years ago
cr-producer-order v0.0.9
Description
const odOptions = new OrderDistributionOptions();
odOptions.kafkaProducerOptions = new ProducerKafkaOptions();
odOptions.kafkaProducerOptions.clientId = 'cr-core';
odOptions.kafkaProducerOptions.brokers = ['10.0.0.79:9092'];
//
const app = await NestFactory.create(OdModule.registerFrom(odOptions));
Installation
$ npm install cr-producer-order
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov