mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Update the workshop with a new WORKSHOP_PATH under fabric-samples
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
4c656f6215
commit
c4acd5a95f
1 changed files with 10 additions and 6 deletions
|
|
@ -6,9 +6,10 @@
|
|||
|
||||
Make sure you have cloned the workshop:
|
||||
|
||||
```
|
||||
git clone https://github.com/hyperledgendary/full-stack-asset-transfer-guide.git workshop
|
||||
cd workshop
|
||||
```bash
|
||||
git clone https://github.com/hyperledger/fabric-samples.git fabric-samples
|
||||
cd fabric-samples/full-stack-asset-transfer-guide
|
||||
|
||||
export WORKSHOP_PATH=$(pwd)
|
||||
```
|
||||
|
||||
|
|
@ -201,7 +202,7 @@ We'll use the example typescript contract already written in `$WORKSHOP_PATH/con
|
|||
Use another terminal window for the chaincode. Make sure the terminal is setup with the same environment variables as the first terminal:
|
||||
|
||||
```
|
||||
cd full-stack-asset-transfer-guide
|
||||
cd fabric-samples/full-stack-asset-transfer-guide
|
||||
export WORKSHOP_PATH=$(pwd)
|
||||
export PATH=${WORKSHOP_PATH}/bin:$PATH
|
||||
export FABRIC_CFG_PATH=${WORKSHOP_PATH}/config
|
||||
|
|
@ -254,7 +255,7 @@ Choose a terminal window to run the transactions from; initially we'll use the `
|
|||
If this is a new terminal window set the environment variables:
|
||||
|
||||
```
|
||||
cd full-stack-asset-transfer-guide
|
||||
cd fabric-samples/full-stack-asset-transfer-guide
|
||||
export WORKSHOP_PATH=$(pwd)
|
||||
export PATH=${WORKSHOP_PATH}/bin:$PATH
|
||||
export FABRIC_CFG_PATH=${WORKSHOP_PATH}/config
|
||||
|
|
@ -314,7 +315,10 @@ Let's say we want to change that error message to something else.
|
|||
- Stop the running chaincode (CTRL-C in the chaincode terminal)
|
||||
- Load the `src/assetTransfer.ts` file into an editor of your choice
|
||||
- Around line 51, find the error string and make a modification. Remember to save the change.
|
||||
- Rebuild this as it's typescript with "npm run build"
|
||||
- Rebuild the typescript contract:
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
You can now restart the contract as before
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue