/p2p-di

A peer-to-peer distributed index for file sharing

Primary LanguagePython

Peer to peer system with distributed index (P2P-DI)

Run dev mode

Clone this repo :

git clone git@github.com:jaymindesai/p2p p2p

# switch to directory
cd p2p

Install virtualenv on your box :

pip --user install virtualenv

Create virtualenv :

# create virtualenv
virtualenv --python=<path_to_python_3.7_executable> venv		# starts a virtualenv in "p2p" directory

Start virtualenv :

# start venv
source venv/bin/activate

Install :

python setup.py install

Run tests :

python setup.py test

Run Registration Server alone :

# switch to server sub-directory
cd ./p2p/server/

# run server
python rs.py