fabric-samples/commercial-paper/roles/digibank.sh
Matthew B. White 9b1452508f [FAB-15213] Update Commercial Paper for Java
Update with Java Contract

Change-Id: Iced5568a248c1474ae4b6fb0352d23e49ebfc252
Signed-off-by: Matthew B. White <whitemat@uk.ibm.com>
Signed-off-by: James Taylor <jamest@uk.ibm.com>
2019-08-07 11:18:37 +01:00

39 lines
No EOL
983 B
Bash
Executable file

#!/bin/bash
#
# SPDX-License-Identifier: Apache-2.0
#
function _exit(){
printf "Exiting:%s\n" "$1"
exit -1
}
# Where am I?
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
cd "${DIR}/organization/digibank/configuration/cli"
docker-compose -f docker-compose.yml up -d cliDigiBank
echo "
Install and Instantiate a Smart Contract as 'Magnetocorp'
Run Applications in either langauage (can be different from the Smart Contract)
JavaScript Client Aplications:
To add identity to the wallet: node addToWallet.js
< issue the paper run as Magnetocorp>
To buy the paper : node buy.js
To redeem the paper : node redeem.js
Java Client Applications:
(remember to build the Java first with 'mvn clean package')
< issue the paper run as Magnetocorp>
To buy the paper : node buy.js
To redeem the paper : node redeem.js
"
echo "Suggest that you change to this dir> cd ${DIR}/organization/digibank"