You need pre install kafka and zookeeper in docker. Enter at deploy folder and run
$ docker-compose up -dThis command automatically installs kafka and zookeeper and starts them.
Kafka default expose port <you docker ip>:9092
For install all dependencies run
$ make getThen build your binary
$ make buildFor starting consumer start your binary
$ ./cmd/main --act consumerFor Windows:
$ ./cmd/main.exe --act consumerFor starting producer
$ ./cmd/main --act producerFor Windows:
$ ./cmd/main.exe --act producerFor publish message at broker in producer cli simply write next command to cli
$ send###<your message here>send this is event. So far, there is one event in the app.
Then in consumer cli you will see that message delivered.