Skip to content

Extending the traditional centralised content delivery used in websites with a p2p network

Notifications You must be signed in to change notification settings

BMS-13-CS-AKS/PeerAssistedCDN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extending the traditional centralised content delivery used in websites with a p2p network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published