Skip to content

STRATEGY-EU/cap-kafka-gateway

Repository files navigation

CAP-to-Kafka gateway

Retrieve CAP (Common Alerting Protocal) messages from an RSS feed and publish them to Kafka.

The project assumes that the STRATEGY-EU/DRIVER+ Apache Kafka-based test-bed is running. If not, see the test-bed installation instructions for installing a local version of the testbed.

In addition, it assumes that a CAP AVRO schema has been registered in the testbed too.

Installation

npm add -g pnpm
pnpm i
npm run build

Docker

npm run docker:build

This will create a docker local image with the name 'cap-to-kafka'. See the docker-compose.yml for an example service configuration to add in your testbed composition.

To publish the local docker image to strategy-eu docker hub:

docker login --username=<<GIT USERNAME e.g. erik.vullings>>
npm run docker:build
npm run docker:tag
npm run docker:publish

Usage

You can start them in two terminals, or one after the other.

npm run cap-to-kafka

Develop

npm start

About

Forward CAP messages, received via an RSS feed, to Kafka.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published