prerequisites
- a twitter developer account and replace the bearer token value in file
stream-api/src/main/resources/application.yaml
- docker, npm, maven and java installed
run stream-api/src/main/kotlin/simple/Application.kt
with spring profile direct-twitter
start streaming event from twitter curl --location --request GET 'http://localhost:8080/stream/sseTweets'
start kafka cluster : docker-compose up
run twitter-worker/src/main/kotlin/worker/TwitterWorkerApplication.kt
run stream-api/src/main/kotlin/simple/Application.kt
with spring profile kafka-twitter
start streaming event from kafka curl --location --request GET 'http://localhost:8080/stream/sseTweets'
start kafka cluster : docker-compose up
run twitter-kafka-stream/src/main/kotlin/stream/TwitterStreamingApplication.kt
run twitter-worker/src/main/kotlin/worker/TwitterWorkerApplication.kt
run stream-api/src/main/kotlin/simple/Application.kt
with spring profile kafka-twitter
start streaming event from kafka curl --location --request GET 'http://localhost:8080/stream/sseTweets?filters={tag1},{tag2},...{tagN}'
cd into cd frontend-app/ui
, run npm run start