Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dashboard using Plotly Dash. #4

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Improve README.
Hephaestus12 committed Aug 29, 2020
commit f13972bd42de133817aeac7c369c5d563008ff55
70 changes: 70 additions & 0 deletions gsoc_application_projects/2020/influenza/dash/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Influenza Estimator Web Tool

## Running directly from docker container

To run this file directly from the docker container do the following steps:

### Install Docker engine

You will find instructions to install docker engine on your system [here.](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)

### Pulling and running the docker image

```commandline
docker pull tejsukhatme/influenza_estimator:latest
docker run -it -p 5000:5000 tejsukhatme/influenza_estimator:latest
```


## To compile manually and run, open a terminal and follow the following commands:

cd into the folder of choice and enter:
```commandline
git pull https://github.com/Hephaestus12/applications.git
cd applications/gsoc_application_projects/2020/influenza/dash/
```

### Prepare the Environment

Make sure your have a python environment with Python 3.5
You will have to manually compile and install Shogun from source into that environment. Only then will you be able to run the webapp.

You can find the instructions for doing that [here](http://blog.detoni.me/2018/10/08/Compile-Shogun-with-Conda/).

### Installing packages

You have to install the following packages into your python environment.
```commandline
pip install -r requirements.txt
```

### Running the application
```commandline
python app.py
```

Your flask application should be successfully running once this is done.



# Influenza API Guide

#### GET the Live influenza ESTIMATE numbers as a JSON file for all countries.
Send a GET request to the following Endpoint:
```
/api/v1.0/all/current/
```


#### GET older influenza PREDICTED ESTIMATE numbers as a JSON file for all the countries.
Send a GET request to the following Endpoint:
```
/api/v1.0/all/weekly/estimate/<int:year>/<int:week>/
```


#### GET older influenza INCIDENCE numbers as a JSON file for all the countries.
Send a GET request to the following Endpoint:
```
/api/v1.0/all/weekly/incidence/<int:year>/<int:week>/
```