Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 733 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 733 Bytes

Nest with Kafka

Nest framework TypeScript starter repository.

  • Provide KAFKA_SERVER or gcp.kafka.com host configuration
  • Create a first-topic : kafka-topics --bootstrap-server localhost:9092 --create --topic first-topic --partitions 1 --replication-factor 1
  • Verify topic content size: kafka-run-class kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic second-topic --time -1

Installation

$ npm install

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