Skip to content

Inventory Service Application using NodeJS to interact with Kafka Event Streams

Notifications You must be signed in to change notification settings

cloud-native-toolkit/inventory-kafka-nodejs

Repository files navigation

Inventory Service Kafka Producer

This Node.JS Application is part of the Inventory Service for the IBM Cloud Native Toolkit Journey. This application allows users to produce a message to a kafka topic notifying all consumers that an update to an item in inventory has occured.

Environment Setup

Install the application dependencies by running the following:

npm install

Running Kafka

Make sure you have an instance of kafka running either locally or remotely.

Following the instruction here for running kafka locally.

Kafka Configuration

Modify the Kafka Configuration Code to match your Kafka configuration in order for your application to properly communicate with your Kafka instance.

Local Development

To start the server run:

npm run dev

Access the swagger page via http:localhost:3000

OpenShift Deployment

Deploying to Openshift...

Contributors

About

Inventory Service Application using NodeJS to interact with Kafka Event Streams

Resources

Stars

Watchers

Forks

Packages

No packages published