Codes for Online Testing Using JavaScript and JsPsych
- Copy Online_Testing/.env.tpl to Online_Testing/.env
- Copy Online_Testing/Emotion_Regulation_JS/database_config_template.php to Online_Testing/Emotion_Regulation_JS/database_config.php
- Execute this :
docker system prune --all --force # Reset docker
docker-compose up --force-recreate # Start docker images : see docker-compose.yml
- Wait for mariadb initialization before connecting with a client :
mariadb-docker_1 | 2020-05-06 11:24:35 0 [Note] mysqld: ready for connections. - Connect with a browser
firefox http://localhost:80/experiment_RSVP.html
docker-compose exec php bash
To debug php, use Vscode with Xdebug.
To debug js, use Chrome debug tool.
To debug sql, use Dbeaver.
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.