Skip to content

Shrey-Viradiya/CoinCapDataConsumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoinCapDataConsumer

This project consumes data from the CoinCap public APIs and puts them into a sink.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

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

Setup

To run this project, you need to have Java, Maven, and Kafka installed on your machine.

  1. Clone the repository:
git clone https://github.com/Shrey-Viradiya/CoinCapDataConsumer.git
  1. Navigate to the project directory:
cd CoinCapDataConsumer
  1. Build the project:
mvn clean install
  1. 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

Built With

  • Java - The programming language used
  • Maven - Dependency Management
  • Kafka - Used for real-time data streaming

About

Data Consumer code to fetch data from the CoinCap API as put it in the sink

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages