![Build Status](https://travis-ci.org/Rostlab/JS16_ProjectD_Group4.svg?branch=develop)
Installing
Dependencies:
- recent node.js + npm
- MongoDB
Install npm dependencies:
npm install -g gulp
npm install
Afterwards adjust config.json
. You need to create a Twitter API key for the crawler.
Run
Currently the package has two main files: app.js
(web app) and crawler.js
for the crawler.
WebApp
node app
/
Will provide an overview with the most popular characters
/character-name
shows the graph for a character
/character-name.csv
returns the raw data as CSV
Crawler
node crawler
You can set the tasks that the crawler runs in crawler.js
.
Testing
npm test
Hook up npm and git
To run npm test
automatically before every git commit, install a git pre-commit hook:
npm hookup
git aborts the commit if the tests fail. You can (but shouldn't) bypass it with git commit --no-verify ...
.