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:
- Plotly 3.1.0 : Incase your plotly has higher version, downgrade your plotly to this version
- ntlk: Natural language processing library for sentiment analysis
- Dash: Latest version of dash should suffice
- dash_boostrap_components
- IPython Display
- Flask
- sqlite3
- tweepy: this library will be used for scraping live tweets using Twitter API
- sqlalchemy
In order to install these packages from anaconda prompt type in either of the following commands:
- pip install
- pip install --user
- conda install
- 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:
- Git clone the repository
- Open Anaconda Prompts(3 anaconda prompts). The following process has to be applicable for 3 directories mentioned.
- Open the respective directories of the modules(Introduction, Climate Dashboard,Twitter Sentiment)
- All of these directories should have app.py, which is our flask app(except twitter, it is names as twitter.py)
- 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.
- After your apps are initialized on the respective local hosts, go to your text editor and run iframe_apps.html.