Addressing Challenges in Browser Based P2P Content Sharing Framework Using WebRTC
- npm modules:
- For peer: bows, dht-id, eventemitter2, simple-peer, socket.io-client,
- For Boot strap server: dht-id, hapi, socket.io, config, socket.io-client
- Other requirements: browserify
Building and executing code:
- Peer (
peer.jscontains the main code for a peer in the asynchronous chord network.
node-details.jsare its components which it uses to contact with bootstrap server and other peers in the network
browserify main.js > bundle.jsfor compiling changes made to peer code
createPeer.htmlin any web browser (chrome/firefox recommended) for creating a new peer. Open console for getting output and issuing commands to peers.
- Boot Strap server (
nodejs boostrap.jsfor starting the server