Niv lab tools for securely serving and storing data from online computational psychiatry experiments.
The following is the minimal set of commands needed to get started with NivTurk (assuming you have already a virtual machine with python 3.6+ and npm installed):
ssh <user-name>@<server-name>.princeton.edu
git clone https://github.com/nivlab/nivturk.git
cd nivturk
pip install -r requirements.txt # For python dependencies
npm install # For node
npm run gunicorn # Launch the server
To locally demo the experiment (with it already running, see above):
cd nivturk
# To directly open in a browser
npm run firefox / safari
# or to print out a URL that can be copied to a browser
For details on how to serve your experiment, how the code is organized, and how data is stored, please see the Documentation.