Giter Site home page Giter Site logo

omarket's Introduction

사전 준비 사항

우분투


apt install g++
cd $HOME
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0

$HOME/.profile 에 다음 추가
PATH=$PATH:$HOME/fabric-samples/bin

아티팩트 생성


export FABRIC_CFG_PATH=$PWD
export CHANNEL_NAME=omarketchannel
configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block

configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME

configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Store1MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Store1MSP

configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Store2MSPanchors.tx -channelID $CHANNEL_NAME -asOrg Store2MSP

네트워크 실행


docker-compose up -d

채널 생성


docker exec -it cli bash

./script/script.sh omarketcc 10 60

클라이언트 어플리케이션 위치

  • Open market header : omarket/app/main
  • Store1 : omarket/app/store1
  • Store2 : omarket/app/store2

클라이언트 어플리케이션은 각 경로에서 실행


node app.js

이벤트 핸들러

이벤트 핸들러 컴파일


go get github.com/hyperledger/fabric
cd $GOPATH/src/github.com/hyperledger/fabric/examples/events/eventsclient
go build

이벤트 핸들러 컨테이너 생성


cp eventsclient omarket프로젝트경로/docker
cd omarket프로젝트경로/docker
docker build -t eventsclient .

omarket's People

Contributors

mjkong avatar

Watchers

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