Quik chat is a simple web chatting app.
-
Download the suitable binary version from https://kafka.apache.org/downloads
-
Extract the version and rename to simply kafka (note that after extraction, you will have something like kafka.2.3 bla bla)
-
open the command line from the extracted kafka folder
-
Then start the zookeeper server first using (I'm using windows):
<bin\windows\zookeeper-server-start.bat config\zookeeper.properties>
-Then start the kafka server using:
<bin\windows\kafka-server-start.bat config\server.properties>
-Then create the kafka topic (make sure the name of the created topic tally with the one in your code)
<bin\windows\kafka-topics --create --topic your-topic --bootstrap-server localhost:9092>
-Also make sure your kafka cmd port is same as specified port in your code.
-Set up the configuration and run.