Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.15 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.15 KB

Peer Assisted Content Delivery

Peer assisted content delivery system that uses webrtc connection to deliver image contents of a webpage in a p2p manner between users viewing the images.

Requirements

Ubuntu 14.04 or greater version

Installation

Install nodejs

  $ https://deb.nodesource.com/setup_7.x | sudo -E bash -
  $ sudo apt-get install -y nodejs

Install browserify

  $ npm install -g browserify

Run the signaling server:

  $ cd [pathtorepos]/PeerAssistedCDN/server
  $ npm install 
  $ node signalling_new.js

Build torrent

  $ cd Torrent
  $ npm install
  $ npm run build

Build client software

  $ cd client
  $ npm run build

To host the example site:

  $ cd [pathtorepos]/PeerAssistedCDN/site
  $ npm install 
  $ mkdir test_images ## copy all the images to this folder
  $ node index.js data

Create infohash of images

  $ cd [pathtorepos]/PeerAssistedCDN/site
  $ mkdir test_images
  $ mkdir metaInfo
  $ cd [pathtorepos]/PeerAssistedCDN/infohash-creator
  $ npm run build

Then open google chrome and load http://localhost:5000/testsite1