官术网_书友最值得收藏!

Running the web application

Following the steps get the web application running:

  1. Run node app.js. This will bring up the node server:
  1. 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:
  1. 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.

主站蜘蛛池模板: 曲麻莱县| 墨脱县| 新绛县| 府谷县| 城步| 萨迦县| 白银市| 张家川| 南平市| 万载县| 赤峰市| 济宁市| 庆城县| 丰宁| 张家口市| 定襄县| 稷山县| 河北省| 商丘市| 衡阳县| 荆州市| 临沂市| 淮安市| 左贡县| 无极县| 辽宁省| 佛坪县| 巴彦淖尔市| 明星| 县级市| 鲁甸县| 台山市| 梁平县| 苍梧县| 新竹市| 泽州县| 冕宁县| 天峨县| 融水| 榕江县| 锦州市|