Git Product home page Git Product logo

ethphoto's Introduction

Eth Photo

Team 10

Decentralized Photo Sharing using The Ethereum based Blockchain Platform

Required packages to build and run the software

  • ethereum (geth)
  • nodejs
  • npm
  • embark
  • go-ipfs
  • mist browser
  • ntp

Platform

We have built and tested the software on Ubuntu 14.04 LTS on x64 architecture.

Setup Instructions and Installation

  1. Install all the dependencies using

    bash install.sh

  2. Run

     nohup ipfs daemon &
    

in the terminal. nohup and & enables us to work on the same terminal and put the process in the background.

  1. Run

     ipfs swarm connect /ip4/<ip>/tcp/4001/ipfs/<ipfshash>
    
  2. Include this in your genesis.json file for each. All nodes should have the same genesis block.

     {
         "nonce": "0x0000000000000042",
         "difficulty": "0x40000",
         "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
         "coinbase": "0x0000000000000000000000000000000000000000",
         "timestamp": "0x00",
         "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
         "extraData": "0x",
         "gasLimit": "0x4c4b40"
     }
    
  3. Run

     $ geth --identity ”Sukhi” --rpc --rpcport ”8001” --rpccorsdomain ”*”
     --rpcaddr ”0.0.0.0” --datadir ”./node0” --port ”30301” --ipcapi ”ad-
     min,db,eth,debug,miner,net,shh,txpool,personal,web3” --rpcapi ”db,eth,net,web3”
     --autodag --networkid 1900 --nat ”any” init genesis.json
    
  4. Run

     $ geth --identity ”Sukhi” --rpc --rpcport ”8001” --rpccorsdomain ”*”
     --rpcaddr ”0.0.0.0” --datadir ”./node0” --port ”30301” --ipcapi ”ad-
     min,db,eth,debug,miner,net,shh,txpool,personal,web3” --rpcapi ”db,eth,net,web3”
     --autodag --networkid 1900 --nat ”any” console on geth command line
    
  5. Run admin.addPeer("enode://<enodehash>@<ip>:30301")

  6. Make an account in geth by executing personal.newAccount("password")

  7. Now set networkx proxy (http and https) to http://<ip>:1337

  8. Mine the node. Run miner.start()

  9. Type admin.addPeers on geth command line

  10. Run

    $ mist –rpc node0/geth.ipc
    

in another terminal and open http://<ip>:8000 in address bar.

Start up MIST browser as follows:

mist --rpc geth.ipc

ethphoto's People

Contributors

parth-vader avatar

Watchers

James Cloos 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.