/p2pfs

A Peer-to-Peer file sharing system

Primary LanguageJavaApache License 2.0Apache-2.0

p2pfs

A Peer-to-Peer file sharing system

quick start

Prerequisites:

  • maven 3.5.4
  • Java 1.8+

Step 1: Clone the repository

Step 2: Go to project's root directory and use mvn clean install to build the project.

Step 3: Start the BootstrapServer in a different terminal.

Note: Go to the Boostrap server directory under the root directory and compile the BoostrapServer

Step 4: Start up several terminals from the project's root directory and run the following command to start each node providing appropriate arguments.

java -jar target/io.viro.p2pfs-1.0-SNAPSHOT.jar <NodeIP> <NodePort> <NodeUsername> <BootstrapServerIP> <BootstrapServerPort>

eg: java -jar target/io.viro.p2pfs-1.0-SNAPSHOT.jar 127.0.0.2 55557 node1 localhost 55555

Run with makefile

To run this with 10 nodes execute make.sh

./make.sh