Skip to content

This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain.

License

Notifications You must be signed in to change notification settings

suhasranganath/Hyperledger-Fabric-Tuna-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperledger Fabric Tuna App

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!)

Setup

  1. Make sure you are in tuna-app folder
  2. Start the Hyperledger Fabric network with the following command:
  3. $ ./startFabric.sh
  4. Install the required libraries from the package.json file
  5. $ npm install
  6. Register the Admin and User components of our network
  7. $ node registerAdmin.js
    $ node registerUser.js
  8. Start the client application
  9. $ node server.js

The network will be setup on port 8000. You can access it through localhost:8000

Troubleshoot

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

Shutdown the network and clean up images

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

About

This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published