Skip to content

Codes for Online Testing Using JavaScript and JsPsych

Notifications You must be signed in to change notification settings

MBB-team/Online_Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online_testing

Codes for Online Testing Using JavaScript and JsPsych

Installation

  1. Copy Online_Testing/.env.tpl to Online_Testing/.env
  2. Copy Online_Testing/Emotion_Regulation_JS/database_config_template.php to Online_Testing/Emotion_Regulation_JS/database_config.php
  3. Execute this :
docker system prune --all --force # Reset docker
docker-compose up --force-recreate # Start docker images : see docker-compose.yml
  1. Wait for mariadb initialization before connecting with a client :
    mariadb-docker_1 | 2020-05-06 11:24:35 0 [Note] mysqld: ready for connections.
  2. Connect with a browser
firefox http:https://localhost:80/experiment_RSVP.html

Command line to php or mariadb

docker-compose exec php bash

Debug

To debug php, use Vscode with Xdebug.
To debug js, use Chrome debug tool.
To debug sql, use Dbeaver.

Information

https://github.com/MBB-team/Online_Testing
sql : all sql files executed on start.
src/index.php : main app entry point.
src/task : tasks.
src/task/jsPsych-master : web framework.

About

Codes for Online Testing Using JavaScript and JsPsych

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages