From 1c5e9757cc2c21da728c68706ddd91da12a2770d Mon Sep 17 00:00:00 2001 From: Arijit Sen Date: Mon, 30 Jul 2018 16:27:00 +0530 Subject: [PATCH 1/5] Update README.md --- LFS171x/fabric-material/tuna-app/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/LFS171x/fabric-material/tuna-app/README.md b/LFS171x/fabric-material/tuna-app/README.md index 04af2161..a17de8c2 100644 --- a/LFS171x/fabric-material/tuna-app/README.md +++ b/LFS171x/fabric-material/tuna-app/README.md @@ -2,6 +2,19 @@ This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain. In this exercise we will set up the minimum number of nodes required to develop chaincode. It has a single peer and a single organization. +## Installation + +Start the Fabric network ``./startFabric.sh`` + +Install the npm packages ``npm install`` + +Register the Admin ``node registerAdmin.js`` + +Register the User ``node registerUser.js`` + +Run the server ``node server.js`` + + if getting error about running ./startFabric.sh permission chmod a+x startFabric.sh From 975b8cd4bdb643e701a6f7a7616a52b44b44b364 Mon Sep 17 00:00:00 2001 From: Arijit Sen Date: Mon, 30 Jul 2018 17:03:57 +0530 Subject: [PATCH 2/5] Added install steps Added some install steps which should be helpful to beginners Signed-off-by: Arijit Sen --- LFS171x/fabric-material/tuna-app/README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/LFS171x/fabric-material/tuna-app/README.md b/LFS171x/fabric-material/tuna-app/README.md index a17de8c2..9c801879 100644 --- a/LFS171x/fabric-material/tuna-app/README.md +++ b/LFS171x/fabric-material/tuna-app/README.md @@ -4,16 +4,17 @@ This application demonstrates the creation and transfer of tuna fish shipments b ## Installation -Start the Fabric network ``./startFabric.sh`` +1. Start the Fabric network ``./startFabric.sh`` -Install the npm packages ``npm install`` +2. Install the npm packages ``npm install`` -Register the Admin ``node registerAdmin.js`` +3. Register the Admin ``node registerAdmin.js`` -Register the User ``node registerUser.js`` +4. Register the User ``node registerUser.js`` -Run the server ``node server.js`` +5. Run the server ``node server.js`` +6. View at browser ``localhost:8000`` if getting error about running ./startFabric.sh permission From 6ff23b514b5ae6608b9855989aa5594e5f854cd3 Mon Sep 17 00:00:00 2001 From: Arijit Sen Date: Mon, 30 Jul 2018 17:16:58 +0530 Subject: [PATCH 3/5] Added Name and Install steps * Added Name and Install steps * Added Code Comment for chmod option Signed-off-by: Arijit Sen --- LFS171x/fabric-material/tuna-app/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LFS171x/fabric-material/tuna-app/README.md b/LFS171x/fabric-material/tuna-app/README.md index 9c801879..dd096500 100644 --- a/LFS171x/fabric-material/tuna-app/README.md +++ b/LFS171x/fabric-material/tuna-app/README.md @@ -1,4 +1,4 @@ -## Hyperledger Fabric Sample Application +## Hyperledger Fabric Sample Application (Tuna App) This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain. In this exercise we will set up the minimum number of nodes required to develop chaincode. It has a single peer and a single organization. @@ -18,6 +18,6 @@ This application demonstrates the creation and transfer of tuna fish shipments b if getting error about running ./startFabric.sh permission -chmod a+x startFabric.sh +``chmod a+x startFabric.sh`` This code is based on code written by the Hyperledger Fabric community. Source code can be found here: (https://github.com/hyperledger/fabric-samples). From 99db57abbb1a9e4bb2d4803b2db8ec2dccb854ea Mon Sep 17 00:00:00 2001 From: Arijit Sen Date: Mon, 30 Jul 2018 17:23:23 +0530 Subject: [PATCH 4/5] DOC Check Fail * Trying to avoid DOC Check Fail Signed-off-by: arijitthehacker --- LFS171x/fabric-material/tuna-app/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LFS171x/fabric-material/tuna-app/README.md b/LFS171x/fabric-material/tuna-app/README.md index dd096500..bebbb966 100644 --- a/LFS171x/fabric-material/tuna-app/README.md +++ b/LFS171x/fabric-material/tuna-app/README.md @@ -1,6 +1,6 @@ ## Hyperledger Fabric Sample Application (Tuna App) -This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain. In this exercise we will set up the minimum number of nodes required to develop chaincode. It has a single peer and a single organization. + This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain. In this exercise we will set up the minimum number of nodes required to develop chaincode. It has a single peer and a single organization. ## Installation From d1e42c49a9f500f5dbf09f709dae6b88226c98a6 Mon Sep 17 00:00:00 2001 From: Arijit Sen Date: Tue, 31 Jul 2018 09:30:14 +0530 Subject: [PATCH 5/5] Edited few lines to make the README clear * Edited the file to add the steps for the installation. Signed-off-by: Arijit Sen --- LFS171x/fabric-material/tuna-app/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/LFS171x/fabric-material/tuna-app/README.md b/LFS171x/fabric-material/tuna-app/README.md index bebbb966..cf0074b2 100644 --- a/LFS171x/fabric-material/tuna-app/README.md +++ b/LFS171x/fabric-material/tuna-app/README.md @@ -1,11 +1,16 @@ ## Hyperledger Fabric Sample Application (Tuna App) - This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain. In this exercise we will set up the minimum number of nodes required to develop chaincode. It has a single peer and a single organization. +This application demonstrates the creation and transfer of tuna fish shipments between actors leveraging Hyperledger Fabric in the supply chain. In this exercise we will set up the minimum number of nodes required to develop chaincode. It has a single peer and a single organization. ## Installation 1. Start the Fabric network ``./startFabric.sh`` + +**NOTE:** if getting error about running ./startFabric.sh permission try: + +``chmod a+x startFabric.sh`` + 2. Install the npm packages ``npm install`` 3. Register the Admin ``node registerAdmin.js`` @@ -16,8 +21,5 @@ 6. View at browser ``localhost:8000`` -if getting error about running ./startFabric.sh permission - -``chmod a+x startFabric.sh`` This code is based on code written by the Hyperledger Fabric community. Source code can be found here: (https://github.com/hyperledger/fabric-samples).