Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 797 Bytes

File metadata and controls

36 lines (26 loc) · 797 Bytes

You need to first have a running kafka cluster with a ‘btc-price’ topic.

  1. First run questDB on docker using

    docker run -p 9000:9000 -p 9009:9009 questdb/questdb
  2. 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
  3. Run the consumer server

    cd consumer
    pnpm i 
    pnpm start
  4. 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.