This project demonstrates how to work with Apache Kafka using Node.js and the kafka-node
library.
Before running the scripts in this project, ensure that you have the following prerequisites installed:
- Node.js: Download and Install Node.js
-
Clone this repository to your local machine:
git clone <repository-url> cd node-kafka-project
-
Install project dependencies
npm install
-
Run docker-compose.yml file
docker-compose up -d
-
Create a Kafka topic
npm run create-topic
-
Run Consumer
npm run consume
-
Run Producer
npm run produce