Skip to content
Snippets Groups Projects
Select Git revision
  • 7b868091a773a5eb54d2746406b489ea6ec17051
  • master default
  • proposed-rewrite-strategy-for-fixtures-with-assertions
  • travisbuddy
  • _syntax
  • update-expressions
  • features-cleanup
  • v8-with-all-flags
  • promise-constructor-override
  • jugglinmike-refactor-for-parsers-directive
  • donprinthandle
  • remove-issafeinteger-followup
  • bigint-fix-minvalue
  • revert-1176-1051
  • ljharb-finally
  • revert-1141-ArrayIteratorPrototype-next
  • revert-1150-revert-1064-class-fields
  • dev
  • es5-tests
19 results

test262

drawing-app

CRDT-based p2p Drawing Application

Set up

Install

> npm install

Build

> npm run build

Run the server

> npm run peer &

Run the static client

> npm start

Open in browser

Using a modern browser that supports WebRTC, like a recent version of Chrome or Firefox, open several windows of http://localhost:12345. Copy your user ID from one client to the peer ID input on another client to establish a connection between the two.

Development

Precommit Checks

The project is supplied with a .pre-commit-config.yml. This file defines the checks that pre-commit must execute on every git commit. To use pre-commit (RECOMMENDED):

  1. Install it, following the instructions available at the link provided;
  2. Hook it to the project, by running pre-commit install from the project's root directory. Whenever a pre-commit check fails, it fixes the code in place for you and aborts the commit. You therefore have to git add . and reissue the git commit command.

License

MIT