Skip to content

Latest commit

 

History

History
executable file
·
24 lines (13 loc) · 846 Bytes

README.md

File metadata and controls

executable file
·
24 lines (13 loc) · 846 Bytes

Installation

You must have nodjs installed: https://nodejs.org. Make sure Python 2 is installed.

Development

If you are working on your local machine, open the dynamic link in the output when running the server.

If you are working on Sapir, go to http://sapir.psych.wisc.edu/mturk/ImageSimilarity/dev.

The static HTML, CSS, and JavaScript files are in the dev/ directory, and the Node.js API server is located in the root ./index.js file.

Production

When you are done, run the following command on Sapir and go to http://sapir.psych.wisc.edu/mturk/ImageSimilarity/prod.

npm run prod

Switching from CSV to JSON and Vice Versa for Data Collection

Open fileformat.js and switch which file format you want the data and demographics in. You must restart the node api server (pm2) after making these changes.