Giter Club home page Giter Club logo

watchit-gateway's Introduction

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}

watchit-gateway's People

Contributors

geolffreym avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.