/libp2p-second-language-playground

LibP2P - Second language educational playground

Primary LanguageVueMIT LicenseMIT

LibP2P - Second Language Educational Playground

Teachers create rooms for students join and play. Teachers could define parameters of matches and play with students monitoring scores in realtime.

Live Demo!

screenshot of the playground

This project was bootstrapped with Vue CLI.

Before you start

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

Compiles and hot-reloads for development

$ npm run serve

Compiles and minifies for production

$ npm run build

Run your deploy to github pages

$ npm run deploy

Run your tests

$ npm run test

Lints and fixes files

$ npm run lint

Signaling Servers are important

Verify signaling servers in case two peers not seen each other. Check here

Customize configuration

See Configuration Reference.

Message Protocol


// 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}