Skip to content

moon004/p2p-sharer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peer-to-peer file sharing system

P2P Sharer is a peer to peer file sharing system that is built on top of IPFS protocol which allows you to directly send your local file to other machine without having to rely on any third party organization like Dropbox and so on.

More than that, it also enables you to add your friend by linking your peers' ipfs ID with the naming you set.

Prerequisites

You are required to download and install ipfs, and host your own node by running ipfs daemon before running any command from p2p-sharer.

Build from source

Clone them:

git clone https://github.com/moon004/p2p-sharer.git

Then build them, you must have Go and gx installed and build them:

Get all the dependencies (Go and gx)

go mod download

If that doesn't work, try:

go get ./...

Then get gx dependencies by running:

gx install

Then finally build them:

go install

When it's done, you are able to use the CLI, see the guide below.

Or you can get the binaries from this repo.

Usage

It is highly suggested that you add your swarm peers as friend before retrieving any item (files or directory) from them.

Add file:

p2p-sharer up "file/directory name"

Add friend:

p2p-sharer addfriend "peer's ID" "friend's name"

Retrieve Object from your added friends:

p2p-sharer retobject "ipfs hash" "friend's name" -o "output file name"

Get your own ipfs ID:

p2p-sharer myid

List your added friends:

p2p-sharer friendlist

Contribution

Feel free to open any issues, p2p-sharer has been practically tested by the creator and it's working! It's a great file-sharing tools in an organization.

Main Motivation

This project is aimed to serve Youdeez as a medium for its users to share their music Playlists (including the song binaries) via peer to peer protocols and "friending" system.

About

Share file in a decentralized manner.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages