Clone git repo then
cd HyperLedger_research/scripts
chmod u+x prereqs-ubuntu.sh
cd ..
./scripts/prereqs-ubuntu.shcd ..
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/localOpen bashrc
nano ~/.bashrcAdd this command
export GOPATH=/usr/local/go
export PATH=$PATH:$GOPATH/binsource ~/.bashrcThe [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.shRemove 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 fabcarMove our custom cc and server app.
cd ..
cd /home/username/fabric/chaincode
mv fabcar /home/username/fabric/fabric-samples/chaincodecd ..
cd /home/username/fabric/
mv fabcar /home/username/fabric/fabric-samples/cd /fabric-samples/fabcar/
node enrollAdmin.js
node registerUser.jschmod u+x startFabric.sh
./startFabric.sh node