Skip to content

GDGVIT/p2p-share-backend

GDSC VIT

shellshare

Share files over a p2p network blazingly fast.


Join Us Discord Chat

DOCS UI

Features

  • Tracker-based peer discovery
  • Seamless peer-to-peer file sharing
  • CLI interface with multiple commands and flags
  • Support for uploading and downloading files
  • Search functionality for available files in the network
  • Robust error handling and graceful peer disconnection

Dependencies

  • Rust (>= 1.70)
  • Cargo
  • tokio
  • clap
  • serde / serde_json

Running

Clone the repo

git clone https://github.com/sofaspawn/p2p-file-sharing.git
cd p2p-file-sharing

Build the project

cargo build --release

Download binary locally

cargo install --path .

Run the tracker

shellshare tracker --port 8080

Run a peer

shellshare peer --tracker 127.0.0.1:8080 --port 9001

Commands

  • Upload a file
shellshare peer --tracker 127.0.0.1:8080 --port 9001 upload <file_path>
  • Download a file
shellshare peer --tracker 127.0.0.1:8080 --port 9001 download <file_name>
  • List available files
shellshare peer --tracker 127.0.0.1:8080 --port 9001 list

Contributors

sofaspawn

hardik

GitHub LinkedIn

Made with ❤ by GDSC-VIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •