A web-based test engine for research on visual presentation factors in online news articles. A slimmed-down version of this application was created to administer this experiment in a proctored setting: that code can be found at https://github.com/marijnburger/pyrite_proctored.
- Download repository & install Node.js
- Install bower globally:
$ npm install -g bower $ npm installwill install all necessary npm dependencies listed inpackage.json, followed by automatically installing all bower dependencies inbower.json- Generate articles (see below)
- Initialize application:
$ sudo node server.js(needs 'sudo' because it runs on port 80) - Visit application in a web browser at
http://localhost/
- Download repository
- Copy directory
pyrite_prodto EC2 Instance - Connect to EC2 instance via SSH
- Install
npm,bower, andforeverlocally - Navigate into
pyrite_prod/and compile dependencies:$ npm install - Generate articles (see below)
- Launch:
$ sudo forever start server.js - Visit application in a web browser at EC2 instance address
- Navigate into directory
app/scripts/articleGenerator/ - Build directories:
$ node run.js buckets - Generate articles:
$ node run.js all
- If any articles need to be redone, do so with
$ node run.js [article-id]where[article-id]is the string of numbers and dashes at the end of the article's title, i.e.article_[article-id].html
- Copy the newly created and filled directory
articles/topublic/data/