This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain.
This application is part of LinuxFoundationX course that I took to learn about HyperLedger. Certificate(click to view!)
- Make sure you are in tuna-app folder
- Start the Hyperledger Fabric network with the following command:
- Install the required libraries from the package.json file
- Register the Admin and User components of our network
- Start the client application
$ ./startFabric.sh
$ npm install
$ node registerAdmin.js
$ node registerUser.js
$ node server.js
The network will be setup on port 8000. You can access it through localhost:8000
To resolve persmission issues while running ./startFabric.sh
$ chmod a+x startFabric.sh
If you get error while creating user/admin components. Try following commands
$ rm -rf ~/.hfc-key-store
$ node registerAdmin.js
$ node registerUser.js
Following commands remove all Docker containers and images created.
$docker rm -f $(docker ps -aq)
$docker rmi -f $(docker images -a -q)
This code is based on code written by the Hyperledger Fabric community. Source code can be found here: (https://github.com/hyperledger/fabric-samples).
Please do sign up for the course on edX. Course Link