Skip to content

hungvo2003vn/File-Sharing-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File-Sharing-App

1. Fetch source code

git init
git remote add origin https://github.com/hungvo2003vn/File-Sharing-App.git
git fetch
git checkout P2P-WEB

2. Download required packages

python setup.py install

3. Run Application

Run Application Server

python -m p2pfs <role>

role can be 'tracker' or 'peer'

Run Application UI

  • Change dir to p2pfe
cd p2pfe
npm install
  • Create an .env file in p2pfe
PORT_TRACKER = 8000
PORT_PEER = 8080

# P2P SERVER
TRACKER_SERVER_IP = '127.0.0.1'
TRACKER_SERVER_PORT = <FLASK_APP_PORT_TRACKER>
PEER_SERVER_IP = '127.0.0.1'
PEER_SERVER_PORT = <FLASK_APP_PORT_PEER>
  • Run command:
npm run <role>

role can be 'tracker' or 'peer'

4. Application View

  • Tracker View: image
  • Peer View: image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published