TODO: Add description
- clean up Kafka log dirs every time when it starts app -
rm -fr /opt/kafka/logs/*
- change dir to app -
cd api.gateway
- start up -
./zookeeper.sh
- start up -
./kafka.sh
- create topic
MyTopic
-sudo -u kafka /opt/kafka/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic MyTopic
- create topic
kaffe-test
-sudo -u kafka /opt/kafka/bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic kaffe-test
- subscription to topic
MyTopic
-sudo -u kafka /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic MyTopic --from-beginning
- subscription to topic
kaffe-test
-sudo -u kafka /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic kaffe-test --from-beginning
- start up an application -
.run.sh
- in any browsers -
http://159.224.174.183/graphiql
you can change addresss in file -config/config.exs:20,22
- Please see for a detailed are queries into directory -
scripts