Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Hyperledger Fabric Samples

Prereqs

Clone git repo then

cd HyperLedger_research/scripts
chmod u+x prereqs-ubuntu.sh
cd ..   
./scripts/prereqs-ubuntu.sh

Golang installation

cd ..
wget https://dl.google.com/go/go1.12.14.linux-amd64.tar.gz
tar -xzvf go1.12.14.linux-amd64.tar.gz
mv go/ /usr/local

Open bashrc

nano ~/.bashrc

Add this command

export GOPATH=/usr/local/go
export PATH=$PATH:$GOPATH/bin
source ~/.bashrc

Download Binaries and Docker Images

The [scripts/bootstrap.sh] script will preload all of the requisite docker images for Hyperledger Fabric and tag them with the 'latest' tag. Optionally, specify a version for fabric, fabric-ca and thirdparty images. Default versions are 1.4.1, 1.4.1 and 0.4.15 respectively.

chmod u+x bootstrap.sh
./scripts/bootstrap.sh

Change Fabric Samples

Remove the fabcar folder and then past oru custom fabcar. Do same with chaincode folder.

cd

cd /home/username/fabric/fabric-samples

rm -R fabcar

cd chaincode

rm -R fabcar

Move our custom cc and server app.

cd ..
cd /home/username/fabric/chaincode
mv fabcar /home/username/fabric/fabric-samples/chaincode
cd ..
cd /home/username/fabric/
mv fabcar /home/username/fabric/fabric-samples/

Start Fabric Network

cd /fabric-samples/fabcar/
node enrollAdmin.js
node registerUser.js
chmod u+x startFabric.sh
./startFabric.sh node

About

roobee research

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages