You need to first have a running kafka cluster with a ‘btc-price’ topic.
-
First run questDB on docker using
docker run -p 9000:9000 -p 9009:9009 questdb/questdb
-
Then run the producer server For the producer you also need to add a .env file containing your CryptoCompare API key as such
CC_API_KEY=<YOUR API KEY>
cd serveur-btc pnpm i pnpm start
-
Run the consumer server
cd consumer pnpm i pnpm start
-
Run the frontend
cd client pnpm i pnpm start
Go to http://localhost:5173 . Refreshing the webpage will cause the consumer to break. If this happens re run the consumer and refresh the webpage.