Gateway Watchit Seeder
Start docker containers
docker-compose up
Migrate movies to mongodb (Please wait until movies get ready migrated)
docker-compose exec watchit_migrator bash -c "export PYTHONPATH=$PYTHONPATH:/data/watchit && python resource/py/migrate.py"
Initialize IPFS
ipfs init
In a new console please get ID and copy it
ipfs id # Copy ipfs ID (ex: QmNWCiQTM1drWrdAM5jgRjdGiDoy7sYjznpip1BZU1Jz5m)
Now lets get init and set bootstrap ipfs node
bash ./resource/bash/init_ipfs.sh {YOUR_IPFS_ID_HERE}
Run ipfs daemon as background
ipfs daemon --enable-pubsub-experiment &
And expose our node tu ipfs network over orbitdb migration
bash ./resource/bash/restart_ipfs.sh
After run migration (Step 2) and expose our node in gateway (Step 7)
- Two file are generated
hash
andclients
. Please copy first entry hash inhash (Private Key)
file and any of the list inclients (Public Key)
file. This keys will be requested on app login.
To configure your app please
- In this file set your ENV variables with:
BOOTSTRAP_IP = {GATEWAY_IP} BOOTSTRAP_HASH = {COPIED_ID}