/flinky

Converts live Stock Price of any Company from USD to INR using live Fx rates

Primary LanguagePython

Create Virtual Environment

python3 -m venv {name_venv} source {name_venv}/bin/activate


Docker

A. Create Docker container from dockerfile

docker-compose up -d

B. Create topic 'stream1ws' on kafka server

docker exec -it broker kafka-topics --create
--bootstrap-server localhost:9092
--topic stream1ws


pip

A. Upgrade pip3 first

pip3 install --upgrade pip

B. Install pacakges:

pip3 install -r requirements.txt

C. Create requirements.txt file

pip3 freeze > requirements.txt

D. List all installed libraries

pip3 list


Flink Connector

A. Download flink-sql-connector-kafka-1.17.0.jar

http --download https://repo1.maven.org/maven2/org/apache/flink/flink-sql-connector-kafka/1.17.0/flink-sql-connector-kafka-1.17.0.jar

Make sure the path is correct in the flink scripts


StreamLit

To run -> streamlit run streamlit.py