This application lets different scratch instances on the local network task to each other.
#TODO: verify this sequence on a fresh vm
npm install -g bower
bower install
npm install
node scratchnet.js
-c config (use an alternate configuration, defaults to 'me')
-n name (override the name from the launcher config)
-p port (override the port from the launcher config)
node scratchnet.js -c bob
node scratchnet.js -c alice
After starting scratchnet, go to
http://localhost:2000
- Choose an application (chat, hangman, number-guess)
- Invite another scratchnet instance to join you.
- When the other instance accepts the invitation a scratch extension file ({service}.s2e) is generated in the current directory.
Start scratch
- Shift-click on 'File' in the menu bar.
- Select 'Open experimental extension'
- Open the scratch extension.
- Start scratching ;) You'll find the extension under 'Blocks'
While still in development we provided this fast test env to check how things work out in scratch:
- launch:
node devscripts/launcher-comm.js EchoChat - startup the scratch project found at ./scratch-sample/echo.sb2