Newer
Older
CRDT-based p2p Drawing Application
## Set up
### Install
```
> npm install
```
### Build
```
> npm run build
```
### Run the server
```
> node server.js &
```
### 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](http://localhost:12345).
Open the developer console to find out your client's ID. To connect to another peer, call the following function from the console with their ID:
```
>> window.connectToPeer("peer-id")
```