Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.86 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.86 KB

a) In order to run the application, the user must have Python installed. If not, then use this link to get started : https://docs.anaconda.com/anaconda/user-guide/getting-started/

Please install following Python packages before running the application:

  1. Plotly 3.1.0 : Incase your plotly has higher version, downgrade your plotly to this version
  2. ntlk: Natural language processing library for sentiment analysis
  3. Dash: Latest version of dash should suffice
  4. dash_boostrap_components
  5. IPython Display
  6. Flask
  7. sqlite3
  8. tweepy: this library will be used for scraping live tweets using Twitter API
  9. sqlalchemy

In order to install these packages from anaconda prompt type in either of the following commands:

  1. pip install
  2. pip install --user
  3. conda install
  4. conda install -c conda-forge


After installing all the dependencies, we need to set up Flask apps for the four modules. In order to do that:

  1. Git clone the repository
  2. Open Anaconda Prompts(3 anaconda prompts). The following process has to be applicable for 3 directories mentioned.
  3. Open the respective directories of the modules(Introduction, Climate Dashboard,Twitter Sentiment)
  4. All of these directories should have app.py, which is our flask app(except twitter, it is names as twitter.py)
  5. Windows Users, type in SET FLASK_APP=app.py, SET FLASK_ENV=development, flask run --port 900[0,3] (change 0 for Introduction, 1 for Climate Dashboard, 2 Sentiment). For Mac Users, dont use SET command.
  6. After your apps are initialized on the respective local hosts, go to your text editor and run iframe_apps.html.