@dfds-devex/minions-core

Component framework for micro frontend architecture.


License
MIT
Install
npm install @dfds-devex/minions-core@0.0.31

Documentation

Kafka to SignalR relay

Kafka tp signalr

Introduction

A service that listens to Kafka topics and relay the Kafka records to SignalR clients.

The service works as a part of DFDS Development excellence departments self service platform and will forward domain events to clients. This mean that terminology used in the rest of the self servive platform also will be used here.

Usage

build local docker image: docker build -f ./src/KafkaToSignalrRelay/Dockerfile . -t kafka-signalr-relay

start host by running the docker image: docker run -p 50900:50900 -it kafka-signalr-relay

Tests

Run integration tests by running the command: dotnet test src/Tests/KafkaToSignalrRelay.IntegrationTests/ in this directory

Development

You can emit events into the system by posting to the HTTP REST endpoint /events see curl example below:

curl --request POST \
  --url http://localhost:50900/events \
  --header 'content-type: application/json' \
  --data '{"Hello": "World"}'