Teachers create rooms for students join and play. Teachers could define parameters of matches and play with students monitoring scores in realtime.
This project was bootstrapped with Vue CLI.
First clone this repo, install dependencies in the project root and build the project.
$ git clone https://github.com/filipesoccol/libp2p-second-language-playground
$ cd libp2p-second-language-playground
$ npm install
$ npm run build
$ npm run serve
$ npm run build
$ npm run deploy
$ npm run test
$ npm run lint
Verify signaling servers in case two peers not seen each other. Check here
// HOST - Ping
{type: 'ping', message: 8}
// HOST - Word Options Message
{type: 'words', message: ['word1', 'word2', 'word3']}
// HOST - Word Quantity
{type: 'quantity', message: 8}
// HOST - Lock Words / Draft started
{type: 'lock', message: ''}
// GUEST - Join Message
{type: 'join', message: 'username'}
// GUEST - Chosen words
{type: 'chosen', message: ['word1', 'word2', 'word3']}
// GUEST - Scored word
{type: 'scored', message: 'word1'}
// GUEST - UnScored word
{type: 'unscored', message: index}