This is an updated example of the integration between PsiTurk and jsPsych. It is a rewrite of the example code given in the jsPsych tutorial using Literate CoffeeScript. It uses some code used in jodeleeuw's experiment example (also available on GitHub).
The experiment file
templates/exp.html calls the
See the PsiTurk Quick Start Guide for info on how to get up and running quickly. Instead of using
psiturk-setup-example to create example code, you can check out this repository.
git clone --recursive https://github.com/jtth/jspsi-go-example.git
You can use
git clone https://github.com/jtth/jspsi-go-example.git and symlink your own local copy of jsPsych if you'd prefer.
Or just grab it using the PsiTurk Experiment Exchange.
Once you have the directory on your computer, go into it and start PsiTurk.
cd jspsi-go-example psiturk
If you want to edit the CoffeeScript experiment and have it installed, run this in the directory with
coffee -c -w experiment.litcoffee