All client files are located in static
folder. The folder contains three major app folders:
app
folder contains the sankey visualization code.statistics
folder contains the topic statistics visualization code.tree
folder contains the topic tree visualization code.
All these scripts are minified with gulp task scripts
to files build.min.js
(sankey), statistics.min.js
(statistics) and tree.min.js
(topic tree).
There's also a less
folder containing all the less code which will be compiled to the css
folder by gulp task less
. The css
folder also contains other css-files.
All the templates files are located in the templates
folder.
- Install Node.js.
- Install gulp by running
npm install -g gulp
. - Install dependencies by running
npm install
andbower install
.
- To build the minified script files, run
gulp scripts
. - To compile less, run
gulp less
.
- Put data to somewhere you want and set it as the
root_path
insrc/backend/topic.py
. - Set
distance_constraint
insrc/backend/graph.py
. (For All dataset, it is 0.5, for CS dataset, it is 0.65) - Go to the directory of where you put the code.
- Type command
virtualenv env
. - Type command
source env/bin/active
. For Windows, run the commandenv/Scripts/active.bat
. - Type command
python app.py
. - Click the link in the prompt to open the webpage. By default, it is
http://127.0.0.1:5000/
.