Skip to content

Commit

Permalink
Update 'Running a Fabric Application' tutorial for Fabric Gateway
Browse files Browse the repository at this point in the history
Also fixed a few build warnings in other documents.

Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
(cherry picked from commit 7bd3c9e)
  • Loading branch information
bestbeforetoday authored and denyeart committed Dec 16, 2021
1 parent 3580b4e commit ef5ac00
Show file tree
Hide file tree
Showing 5 changed files with 396 additions and 841 deletions.
17 changes: 11 additions & 6 deletions docs/source/channel_update_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Org3 peer. From the ``addOrg3`` directory, issue the following command:
If the command is successful, you will see the creation of the Org3 peer:

.. code:: bash
.. code::
Creating peer0.org3.example.com ... done
Expand Down Expand Up @@ -194,6 +194,7 @@ to remove).
Navigate back to the ``test-network`` directory.

.. code:: bash
cd ..
Because Org3 is not yet a member of the channel, we need to operate as the admin
Expand Down Expand Up @@ -228,7 +229,7 @@ represented and its encoding (protobuf or JSON) is recommended.
When you issued the ``peer channel fetch`` command, the following output is
displayed in your logs:

.. code:: bash
.. code::
2021-01-07 18:46:33.687 UTC [cli.common] readBlock -> INFO 004 Received block: 2
Expand All @@ -251,7 +252,8 @@ the update process separate from other artifacts. Change into the ``channel-art
folder to complete the next steps:

.. code:: bash
cd channel-artifacts
cd channel-artifacts
Now we will make use of the ``configtxlator`` tool to decode this channel
configuration block into JSON format (which can be read and modified by humans).
Expand Down Expand Up @@ -354,7 +356,8 @@ First, let's sign this update proto as Org1. Navigate back to the ``test-network
directory:

.. code:: bash
cd ..
cd ..
Remember that we exported the necessary environment variables to operate as the Org1 admin.
As a result, the following ``peer channel signconfigtx`` command will sign the update as Org1.
Expand Down Expand Up @@ -699,7 +702,8 @@ this we will use the configtxlator tool, as done previously when adding Org3 to
channel. First, change into the ``channel-artifacts`` folder:

.. code:: bash
cd channel-artifacts
cd channel-artifacts
When converting it we need to remove all the headers, metadata, and signatures
that are not required to update Org3 to include an anchor peer by using the ``jq``
Expand Down Expand Up @@ -772,7 +776,8 @@ Now that the update has been properly formatted it is time to sign off and submi
Navigate back to the ``test-network`` directory:

.. code:: bash
cd ..
cd ..
Since this is only an update to Org3 we only need to have Org3 sign off on the update. Run the following
Expand Down
3 changes: 0 additions & 3 deletions docs/source/developapps/apis.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The Fabric application stack has five layers:
* :doc:`Prerequisite software <prereqs>`: the base layer needed to run the software, for example, Docker.
* :doc:`Fabric and Fabric samples <install>`: the Fabric executables to run a Fabric network along with sample code.
* :doc:`Contract APIs <sdk_chaincode>`: to develop smart contracts executed on a Fabric Network.
* :doc:`Application SDKs <sdk_chaincode>`: to develop your blockchain application.
* :doc:`Application APIs <sdk_chaincode>`: to develop your blockchain application.
* The Application: your blockchain application will utilize the Application SDKs to call smart contracts running on a Fabric network.


Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting_started_run_fabric.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Getting Started - Run Fabric
=========================
============================

.. toctree::
:maxdepth: 1
Expand Down
Loading

0 comments on commit ef5ac00

Please sign in to comment.