⛓ Supply Chain on Hyperledger Fabric
A technical framework for improving traceability in supply chain systems using blockchain. Developed as part of my final year project at University. See dissertation.pdf for further discussion.
Improving Supply chain systems offers benefits to quality, cost, and regulatory compliance, but interoperability between organisations is an obstacle. This project addresses the issue of interoperability through the introduction of blockchain technology, implementing a complex supply chain model from literature on the Hyperledger platform.
The process of translating a supply chain network model to an implementation is described in detail; coupled with the the complexity of the network model chosen, this allows the system to be generalised well to a variety of supply chain use cases. The system includes infrastructure, application and integration layers, providing an end-to-end reference implementation for creation of supply chain systems in enterprise.
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0-rc1
(docs)
npm i -g [email protected] [email protected] passport-github
cd network
./importIdCards.sh
Create a new OAuth application on GitHub
composer-rest-server
http://localhost:3000/
OAuth application for the multi-user mode of composer-rest-server
http://localhost:3000/auth/github/callback
# in 'network' directory
export COMPOSE_PROJECT_NAME=biswas
./deployNetwork.sh
export COMPOSER_PROVIDERS='{
"github": {
"provider": "github",
"module": "passport-github",
"clientID": "REPLACE_WITH_CLIENT_ID",
"clientSecret": "REPLACE_WITH_CLIENT_SECRET",
"authPath": "/auth/github",
"callbackURL": "/auth/github/callback",
"successRedirect": "/",
"failureRedirect": "/"
}
}'
composer-rest-server -c grower-network-admin@biswas -a true -m true
The API explorer is now located http://localhost:3000/explorer.
/wallet/import
endpoint at the bottom of the list in the API explorer./network/fabric/id-cards/grower-network-admin/card
using the name admin
./network/fabric/id-cards/users
using the same endpoint. The names should be the same as the name of the card, i.e. the file distributor.card
should be imported as distributor
sample-env
environmentaccessToken
./frontend/src/controllers/api.js
yarn start
inside ./frontend
bottleID
from the Postman environment# in ./network/composer
npm t