multiplayer game and chat for collecting data on human counterfactual explanations in a collaborative learning task.
- clone the repository with
git glone
- install npm
sudo apt install npm
(you can also follow one of these link npm installation ubuntu, npm installation mac) - enter the cloned folder and initialize it with
npm init -y
- install express and socket.io with
npm install express socket.io
- install nodemon with
npm install nodemon --save-dev
- in package.json set the main script to
server.js
by modifying"main": "server.js"
- make sure that the script type is "module" by adding
"type": "module"
(if the line "type" does not exist, add it after"main": "server.js"
- set the start and dev scripts by adding
"start": "node server.js", "dev": "nodemon server.js"
before"test"
- access the server folder and launch the script by typing
npm run dev
- the default project starts on http://localhost:3000/
- install mongodb using
npm install mongodb
- install mongoose using
pip install mongoose
- important: comment the database code if you are running the code locally (i.e., remove
import mongoose
fromserver.js
and importfs
for saving on csv files