This project consumes data from the CoinCap public APIs and puts them into a sink.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- Java 21
- Maven
- Docker (for running Kafka)
Use the following commands to setup the kafka container in your local docker.
Clone this repo: https://github.com/conduktor/kafka-stack-docker-compose
cd kafka-stack-docker-compose
docker compose -f zk-single-kafka-single.yml up
docker exec -it kafka1 kafka-topics --create --topic COINCAP_REALTIME_PRICE_DATA --partitions 1 --replication-factor 1 --bootstrap-server localhost:9092
To run this project, you need to have Java, Maven, and Kafka installed on your machine.
- Clone the repository:
git clone https://github.com/Shrey-Viradiya/CoinCapDataConsumer.git
- Navigate to the project directory:
cd CoinCapDataConsumer
- Build the project:
mvn clean install
- Run the project:
java -cp target/CoinCapDataConsumer-1.0-SNAPSHOT.jar <<path/to/configuration_file.yaml>>
or
use can use docker image.
docker build -t coin-cap-consumer .
docker run --name BRTPP -d coin-cap-consumer