diff --git a/chaincode/fabcar/node/fabcar.js b/chaincode/fabcar/javascript-low-level/fabcar.js similarity index 100% rename from chaincode/fabcar/node/fabcar.js rename to chaincode/fabcar/javascript-low-level/fabcar.js diff --git a/chaincode/fabcar/node/package.json b/chaincode/fabcar/javascript-low-level/package.json similarity index 100% rename from chaincode/fabcar/node/package.json rename to chaincode/fabcar/javascript-low-level/package.json diff --git a/fabcar/enrollAdmin.js b/fabcar/javascript-low-level/enrollAdmin.js similarity index 100% rename from fabcar/enrollAdmin.js rename to fabcar/javascript-low-level/enrollAdmin.js diff --git a/fabcar/invoke.js b/fabcar/javascript-low-level/invoke.js similarity index 100% rename from fabcar/invoke.js rename to fabcar/javascript-low-level/invoke.js diff --git a/fabcar/package.json b/fabcar/javascript-low-level/package.json similarity index 100% rename from fabcar/package.json rename to fabcar/javascript-low-level/package.json diff --git a/fabcar/query.js b/fabcar/javascript-low-level/query.js similarity index 100% rename from fabcar/query.js rename to fabcar/javascript-low-level/query.js diff --git a/fabcar/registerUser.js b/fabcar/javascript-low-level/registerUser.js similarity index 100% rename from fabcar/registerUser.js rename to fabcar/javascript-low-level/registerUser.js diff --git a/fabcar/startFabric.sh b/fabcar/startFabric.sh index d652d7a7d2..7a2fcaee47 100755 --- a/fabcar/startFabric.sh +++ b/fabcar/startFabric.sh @@ -50,8 +50,59 @@ docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/g sleep 10 docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" cli peer chaincode invoke -o orderer.example.com:7050 -C mychannel -n fabcar -c '{"function":"initLedger","Args":[]}' -printf "\nTotal setup execution time : $(($(date +%s) - starttime)) secs ...\n\n\n" -printf "Start by installing required packages run 'npm install'\n" -printf "Then run 'node enrollAdmin.js', then 'node registerUser'\n\n" -printf "The 'node invoke.js' will fail until it has been updated with valid arguments\n" -printf "The 'node query.js' may be run at anytime once the user has been registered\n\n" +cat <