Minitour / BigDataHW4

MIT License
0 stars 0 forks source link

TweeStock

We'll monitor the most followed people on twitter (Top 500 from SocialBlade). If their tweet contains a company name/symbol, based on on the stocks symbols dataset, then we'll start monitoring the stock. We can also analyse the tweet and see if the tweet is positive or negative, and then based on that assume if the stock should be sold or bought.

stocks_monitor 002

stocks_monitor 003

Demo

https://www.youtube.com/watch?v=z_6miocPdoI

Architecture

stocks_monitor 001

Our system is composed of 4 layers:

Technologies

Pre-Setup

1) Install nodejs and npm 2) go to modules/iex/ and run npm install 3) Install python libs

Setup

1) Open the project with PyCharm 2) Run modules/backend/app.py 3) Run the IEX service node modules/iex/app.js 4) Run the twitter service: modules/twitter/twitter_service.py 5) Run the spark service: modules/spark/spark_service.py (run after all services have promoted that they are listening for incoming connections) 6) Visit http://localhost:5001/

It is important that the python files are executed from PyCharm.