setup README and requirements
This commit is contained in:
24
README.md
Normal file
24
README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Kafka Example
|
||||
|
||||
This is a very simple application to demonstrate how to set up a Kafka instance, create a consumer and a producer, and send and receive messages.
|
||||
|
||||
## Setup
|
||||
|
||||
1) Create a virtual environment
|
||||
2) Install required libraries
|
||||
```zsh
|
||||
pip3 install -r requirements.txt
|
||||
```
|
||||
3) Run Kafka using Docker Compose
|
||||
```zsh
|
||||
docker compose up
|
||||
```
|
||||
4) Run tracker.py
|
||||
```zsh
|
||||
python3 src/tracker.py
|
||||
```
|
||||
5) Run producer.py
|
||||
```zsh
|
||||
python3 src/producer.py
|
||||
```
|
||||
6) Confirm messages in terminal
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
confluent-kafka
|
||||
Reference in New Issue
Block a user