git init
git remote add origin https://github.com/hungvo2003vn/File-Sharing-App.git
git fetch
git checkout P2P-WEB
python setup.py install
python -m p2pfs <role>
role can be 'tracker' or 'peer'
- 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'