Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 583 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 583 Bytes

pushnotifications-server

Dev

  1. Install Kafka

  2. Start zookeeper server

bin/zookeeper-server-start.sh config/zookeeper.properties
  1. Start kafka server
bin/kafka-server-start.sh config/server.properties

4.Create a topic

bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test
  1. To send messages to a topic
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
> This is a message
> This is another message

Start

  1. npm install
  2. npm start