This repo contains the avoidance learning task. It is a jspsych7 task built with React and Electron. This task uses Honeycomb (also known as Neuro Task Starter).
- Clone this repo onto your computer
git clone https://github.com/lucywowen/avoidance_learning_task.git
- Change directory into the new folder
cd avoidance_learning_task
- Set the remote url to your tasks' repo (create a github repo if not yet created)
git remote set-url origin <PATH_TO_YOUR_REPO>
- Install the dependencies (the -D flag installs the dev dependencies as well as the production ones)
npm install -D
- Run the task in dev mode - this should launch an electron window with the task with the inspector open to the console and will hot-reload when changes are made to the app
npm run dev
- Check out the data - the data is saved throughout the task to the users's app directory. This is logged at the
beginning of the task wherever you ran
npm run dev
- Change directory into the new folder
cd avoidance_learning_task
- Pull any changes to the task, just in case
git pull
- Install the dependencies (the -D flag installs the dev dependencies as well as the production ones)
npm install -D
- Run the task
npm run dev:clinic
-
Use whatever participant name you want, but try to use the same study ID across subjects. For example, use 'TEST' for study ID if you're just debugging and use 'STUDY'.
-
If you need to change anything, please use a different branch!!
git checkout -b <new branch name>
- Push any changes on the different branch
git push
- Hope for no merge issues :)