All Projects → enbochen → Hyperledger Composer Supply Chain Network

enbochen / Hyperledger Composer Supply Chain Network

An implementation of Hyperledger Composer to improve transparency and traceability of supply chain

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hyperledger Composer Supply Chain Network

Fabric Sdk Node
Hyperledger Fabric SDK for Node https://wiki.hyperledger.org/display/fabric
Stars: ✭ 676 (+1085.96%)
Mutual labels:  blockchain, hyperledger
Copycats
copycats command line tool (and core library) - crypto cats / kitties collectibles unchained - buy! sell! hodl! sire! - play for free - runs off the blockchain w/ ledger lite - no ether / gas required; run your own peer-to-peer (P2P) network node over HTTP
Stars: ✭ 26 (-54.39%)
Mutual labels:  blockchain, hyperledger
Fabric Sdk Go
Stars: ✭ 712 (+1149.12%)
Mutual labels:  blockchain, hyperledger
Fabric Baseimage
Stars: ✭ 53 (-7.02%)
Mutual labels:  blockchain, hyperledger
Iroha
Iroha - A simple, decentralized ledger
Stars: ✭ 1,015 (+1680.7%)
Mutual labels:  blockchain, hyperledger
Unchained
My personal study of blockchain related technology.
Stars: ✭ 379 (+564.91%)
Mutual labels:  blockchain, hyperledger
Blockchain
Compilation of useful documents and scientific papers about Blockchain & cryptocurrencies.
Stars: ✭ 751 (+1217.54%)
Mutual labels:  blockchain, hyperledger
Fabric Sdk Py
Hyperledger Fabric Python SDK
Stars: ✭ 303 (+431.58%)
Mutual labels:  blockchain, hyperledger
Blockchain Explorer
Stars: ✭ 984 (+1626.32%)
Mutual labels:  blockchain, hyperledger
Fabric Sdk Java
Stars: ✭ 982 (+1622.81%)
Mutual labels:  blockchain, hyperledger
Hyperledger
Hyperledger is a Collaborative Project at The Linux Foundation.
Stars: ✭ 3,653 (+6308.77%)
Mutual labels:  blockchain, hyperledger
Trubudget
A blockchain-based workflow tool for efficient and transparent project management
Stars: ✭ 50 (-12.28%)
Mutual labels:  blockchain, transparency
Fabric Ca
Stars: ✭ 331 (+480.7%)
Mutual labels:  blockchain, hyperledger
Blockchain guide
Introduce blockchain related technologies, from theory to practice with bitcoin, ethereum and hyperledger.
Stars: ✭ 5,897 (+10245.61%)
Mutual labels:  blockchain, hyperledger
Blockchain
黑马程序员 120天全栈区块链开发 开源教程
Stars: ✭ 3,480 (+6005.26%)
Mutual labels:  blockchain, hyperledger
Cello
Operating System for Enterprise Blockchain
Stars: ✭ 715 (+1154.39%)
Mutual labels:  blockchain, hyperledger
Awesome Blockchain Kor
<블록체인의 정석>, <하이퍼레저 블록체인 개발> 소스코드 및 참고자료 저장소
Stars: ✭ 243 (+326.32%)
Mutual labels:  blockchain, hyperledger
Heroes Service
Short tutorial to build a blockchain application in Go with Hyperledger Fabric
Stars: ✭ 248 (+335.09%)
Mutual labels:  blockchain, hyperledger
Burrow
https://wiki.hyperledger.org/display/burrow
Stars: ✭ 851 (+1392.98%)
Mutual labels:  blockchain, hyperledger
Mortgageblockchainfabric
Mortgage Processing App using Hyperledger Fabric Blockchain. Uses channels for privacy and access, and restricts read/write previleges through endorsement policies
Stars: ✭ 45 (-21.05%)
Mutual labels:  blockchain, hyperledger

Hyperledger Composer Supply Chain Network

This is one implementation of Hyperledger Composer for supply chain, which demonstrates how Hyperledger blockchain improve transparency and traceability of industrial supply chain.

Master Thesis: An Approach for Improving Transparency and Traceability of Industrial Supply Chain with Blockchain Technology

How to run it?

  1. Install packages: npm install
  2. Create a folder for local archive: mkdir dist
  3. Generate the BNA (Business Network Archive) file: npm run prepublish
  4. Next, in a browser, navigate to the online Bluemix Composer Playground http://composer-playground.mybluemix.net and import the newly-generated BNA file into the Playground using the "Import/Replace" button at the bottom left of the screen. Locate the dist/hyperledger-supply-chain-network.bna file under your 'hyperledger-supply-chain-network' folder and upload it. This automatically deploys the new business network.
  5. Try to play with it. (Playground Tutorial)

Congratulations!

P.S. No.4 just only runs on web brower, all the data are stored in local storage. If you want run it on real blockchain network. Please follow Developer Guide and Developer Environment to make it real!

Model

This business network defines:

  • Participant Supplier Manufacturer Distributor Retailer Customer

  • Asset Commodity

  • Transaction InitiatePO TransferCommodity SetupDemo

  • Event none

Commodity are owned by a Supplier, Manufacturer, Distributor, Retailer or Customer, and the owner property on a Commodity can be modified by submitting a transaction (e.g. M2O, O2D). The transaction emits a SampleEvent that notifies applications of the old and new values for each modified Commodity.(WIP)

How to play on Bluemix Composer Playground?

To test this Business Network Definition in the Test tab:

Create a Manufacturer participant:

{
  "$class": "org.hcsc.network.Manufacturer",
  "tradeId": "M1",
  "companyName": "FAST"
}

Create a Commodity asset:

{
  "$class": "org.hcsc.network.Commodity",
  "tradingSymbol": "ts1",
  "description": "Aliquip.",
  "quantity": 216.3,
  "owner": "resource:org.hcsc.network.Manufacturer#M1"
}

Submit a TransferCommodity transaction:

{
  "$class": "org.hcsc.network.TransferCommodity",
  "commodity": "resource:org.hcsc.network.Commodity#ts1",
  "issuer": "resource:org.hcsc.network.Manufacturer#M1",
  "newOwner": "resource:org.hcsc.network.Distributor#D1"
}

After submitting this transaction, you should now see the transaction in the Transaction Registry and that a SampleEvent has been emitted (WIP). As a result, the value of the tradingSymbol:ts1 should now be new owner in the Asset Registry.

Pre-requisites on MacOS

Installing and running Hyperledger Composer Playground locally

  1. Pick a directory that you want to install into, then run the following command to download and start a Hyperledger Fabric instance and Hyperledger Composer Playground:
curl -sSL https://hyperledger.github.io/composer/install-hlfv1.sh | bash
  1. Access your local Hyperledger Composer Playground by clicking this link: http://localhost:8080. Please note: Private browsing is not supported when running the Playground locally.

Set Up Fabric

  1. kill and remove all running containers, and should remove all previously created Hyperledger Fabric chaincode images.
docker kill $(docker ps -q)
docker rm $(docker ps -aq)
docker rmi $(docker images dev-* -q)
  1. Download the fabric runtime first. If you have already downloaded it, then start the fabric environment, and create a Hyperledger Composer profile:
cd tools/fabric/
./downloadFabric.sh
./startFabric.sh
./createComposerProfile.sh
  1. Stop Fabric runtime at the end of your development session:
cd tools/fabric/
./stopFabric.sh
./teardownFabric.sh

More info:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].