上QQ阅读APP看书,第一时间看更新
Running the web application
Following the steps get the web application running:
- Run node app.js. This will bring up the node server:
- Once the node server is up, click on the Query Chaincode button. This will return the current orgAsset result in the blockchain. Here is the result:
- Click on the Ship button, which will call the Ship method in the blockchain. Once it is called successfully, click on the Query Chaincode button again and you will see the updatedorgAsset result, with the status updated to SHIP. When it has updated, the page should look like this:
Remember, since there is a delay of a few seconds, you may need to click the button a couple of times for the update to occur.