cd client && npm install
cd server && npm install
Extract Kafka install folder to /kafka folder in root or repo
cd client && npm run build
-
SSH into EC2 Instace with screen
-
If Zookeeper is not already running
(terminal 1)
cd bin/
./1_zk.sh
- Start Kafka
(terminal 2)
cd bin/
./2_kafka.sh
- Start Python Tweet Producer Script
Note: script must be killed manually
(terminal 3)
cd bin/
./3_app.sh
- (Optional) View Tweets/messages in Kafka topic
(terminal 4)
cd kafka/
bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic twitterstream --from-beginning
- Start Node-Kafka Stream
(terminal 5)
cd bin/
./4_node.sh
- Start Node Server
(terminal 6)
node server/index.js