Skip to content

Decentralised Photo Sharing using the Ethereum based Blockchain Platform.

Notifications You must be signed in to change notification settings

LLRHall/EthPhoto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Decentralised Photo Sharing using the Ethereum based Blockchain Platform.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published