Giter Club home page Giter Club logo

dl4ld-petrinet's Introduction

Petrinet Smart Contract

Note: We will soon change this with a new use-case; Test Xin

First get a fabric test network running by following th fabric online docs.

https://hyperledger-fabric.readthedocs.io/en/release-2.2/install.html

Install fabric samples to build a test network with 3 organizations

git clone git clone https://github.com/dl4ld/fabric-samples.git

Install petrinet smart contract and application in fabric-samples

cd fabric-samples
git clone git clone https://github.com/dl4ld/petrinet.git

Start test network with 3 organizations

cd fabric-samples/test-network3
./network.sh up createChannel -c mychannel -ca

Deploy Petrinet smart contract

./network.sh deployCC -ccn petrinet01 -ccp ~/fabric-samples/petrinet/chaincode-javascript/ -ccl javascript

Run organization clients

cd fabric-samples/petrinet/application-javascript/run_org3.sh petrinet01
cd fabric-samples/petrinet/application-javascript/run_org2.sh petrinet01
cd fabric-samples/petrinet/application-javascript/run_org1.sh petrinet01

Access web interface for each organization

http://localhost:9391
http://localhost:9291
http://localhost:9191

Install Kathara binary. Follow instructions https://www.kathara.org/

Install Kathara lab

git clone https://github.com/dl4ld/network-lab.git

Start lab

cd network-lab
kathara lstart

Start mqtt server

./start_mqtt.sh

Create control network

./create_control_network.sh

Connect nodes to control network

./connect_nodes_to_control_network.sh

dl4ld-petrinet's People

Contributors

cinkerzx avatar lut99 avatar recap 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.