-
-
Have Kafka on your local setup
-
Run Zookeeper service -
.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
-
Run the server props service
.\bin\windows\kafka-server-start.bat .\config\server.properties
-
Create a venv in your development dir and install the dependencies (NOTE : Do NOT install latest versions of Elasticsearch or Kafka. Python 3.12 is not stable in prod yet. Please use the mentioned versions only)
-
Run command
pip install -r requirements.txt
after activating venv -
Once installed, navigate to
<venv-name>/Lib/elasticsearch/compat.py
and fix this code line
From This -
try: from collections.abs import Mapping except ImportError: from collections import Mapping
To This -
try: from collections.abs import Mapping except ImportError: from collections.abc import Mapping
- Run
docker-compose up
from terminal and pull the Elasticsearch and Kibana images - In 2 separate terminals, run
python producer.py
andpython consumer.py
- Head to
http://localhost:9200/_cat/indices?v
and see ifstock_data
is in the indexed list - Move to
http://localhost:5601/
to check Kibana - Add index pattern
stock_data*
in index pattern and create dashboard of your taste
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Real-time stock visualizer that consumes AAPL stock data from Alpha Vantage and leverages Kafka for live data streaming. ELK stack is used for indexing and visualizing stock price changes in a KIbana dashboard
VibhinnS/Stonks
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Real-time stock visualizer that consumes AAPL stock data from Alpha Vantage and leverages Kafka for live data streaming. ELK stack is used for indexing and visualizing stock price changes in a KIbana dashboard
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published