Giter Site home page Giter Site logo

pipeedge's Introduction

Requirements

Go 1.15
Hyperledger Fabric 1.4.x
Nodejs v8
Docker

Download required binaries

curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.4 1.4.4 0.4.22 It will download fabric-samples Copy binaries located in fabric-samples/bin to bft/bin

Create bft orderer and gen tool

Use following command to generate orderer and gen tool:

make orderer-docker

make configtxgen

Replace 'orderer' and 'configtxgen' in bft/bin folder with generated ones

Other envirnment setting

  • GO installation

Download go1.15

Use following command to create working path:

mkdir ${HOME}/gopath

mv go ${HOME}/gopath

chmod -R 777 go

mkdir -p ${HOME}/gopath/src/github.com/hyperledger/

gedit ~/.bashrc

add the following at the end:

export PATH=$PATH:$HOME/go/bin

export GOPATH=$HOME/gopath

export GOROOT=$HOME/go

export GOBIN=$GOROOT/bin

export PATH=$HOME/gopath/src/github.com/hyperledger/fabric/bft/bin:$PATH

Update:

source ~/.bashrc

Check Go environment:

go env

  • GO package installation:

mkdir -p $GOPATH/src/golang/x

cd $GOPATH/src/golang/x

chmod -R 777 golang

  • Download the required package:

go env -w GO111MODULE=on

go mod init

git clone https://github.com/golang/tools.git

go get golang/x/tools/go/packages

go mod vendor

Note

If above environment cannot be established, you can download binaries from https://drive.google.com/file/d/1BRS7d2bV7XdPL_DTPppjjFaEOMPAw30v/view?usp=sharing copy the folders in side bft to src/github.com/hyperledger/fabric/bft DO NOT delete bin file

Build bft network

  • start network with couchdb in bft/pbft-network folder run:

./byfn.sh up -a -s couchdb

  • close network ./byfn.sh down

Run application to access ledger

Direct to bft/client folder, run following command:

node enrollAdmin.js node registerUser.js

Run pipeEdge

Direct to /bft/pipeEdge/app folder, run following command:

Choose system size files. e.g. edge_server10 with 10 edge servers.

Start up system: ./edge_server10.py

pipeedge's People

Contributors

fio1982 avatar neuraledge avatar

Stargazers

 avatar  avatar Qiuyu Ding avatar Zhenpeng Zhou avatar  avatar 吴忠辉 avatar

Watchers

 avatar

pipeedge's Issues

Invalid

The website of binaries is invalid. Please give a valid website of binaries. Some progresses of other environment settings are wrong. Could you please correct them? Thank you!!!

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.