This is an example ROAR-App using the jsPsych Pavlovia reaction time task but with the ROAR-App template.
Type
npm install
to install dependencies. Then use
npm run build
to build the website in the dist
directory. To view your website, type
npm start
which will open up your experiment in a browser and automatically update when you make changes to the source code.
This example uses the query string to retrieve the participant ID. For example, when you type npm start
, you should append ?participant=your-participant-id
to the url, where "your-participant-id" is the desired participant ID.
We anticipate that ROAR scientists might use this example as a template for their own experiments. To do so,
- Fork this repository.
- Edit your experiment in the
src
directory. Place any assets in subdirectories inside ofsrc
. For a more full featured example, see the ROAR-SWR repository. - Push your changes to your own fork.
- Deploy changes to your website.