Deploying a business network

We have tested the composer application in the playground, so next we will deploy it to the blockchain:

  1. Create a folder called insurance-claim-network, and navigate to the folder.
  2. Generate a business network project template, as follows:
      yo hyperledger-composer:businessnetwork

It will prompt a few questions. Enter insurance-claim-network as the network name and choose the empty template network, as shown in the following screenshot:

This will generate a few files with a default template. Replace the contents of com.packt.quickstart .claim.cto with our earlier tested model file.

Create a new folder called lib ...

Get Blockchain Development with Hyperledger now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.