Skip to content

geolffreym/watchit-gateway

Repository files navigation

Gitter

watchit-gateway

Gateway Watchit Seeder

How

Start docker containers

  1. docker-compose up

Migrate movies to mongodb (Please wait until movies get ready migrated)

  1. docker-compose exec watchit_migrator bash -c "export PYTHONPATH=$PYTHONPATH:/data/watchit && python resource/py/migrate.py"

Initialize IPFS

  1. ipfs init

In a new console please get ID and copy it

  1. ipfs id # Copy ipfs ID (ex: QmNWCiQTM1drWrdAM5jgRjdGiDoy7sYjznpip1BZU1Jz5m)

Now lets get init and set bootstrap ipfs node

  1. bash ./resource/bash/init_ipfs.sh {YOUR_IPFS_ID_HERE}

Run ipfs daemon as background

  1. ipfs daemon --enable-pubsub-experiment &

And expose our node tu ipfs network over orbitdb migration

  1. bash ./resource/bash/restart_ipfs.sh

watchit-app

After run migration (Step 2) and expose our node in gateway (Step 7)

  1. Two file are generated hash and clients. Please copy first entry hash in hash (Private Key) file and any of the list in clients (Public Key) file. This keys will be requested on app login.

To configure your app please

  1. In this file set your ENV variables with: BOOTSTRAP_IP = {GATEWAY_IP} BOOTSTRAP_HASH = {COPIED_ID}

About

IPFS gateway for watchit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published