In the previous section, we set up a development environment. In this section, we will create the FarmaTrace business network definition including the .cto, .script, .query, and .acl files, and then package them as a .bna file using Composer tools.
The yo hyperledger-composer command has three options: Angular, business network, and CLI. These are defined as follows:
- hyperledger-composer:businessnetwork is used to generate a skeleton business network with an asset, participant and transaction defined, as well as a Mocha unit test.
- hyperledger-composer:angular is used to generate the Angular application by connecting to a running business network.
- hyperledger-composer:cli is used to create a standard npm module with the usual attributes of name, author, description and help to create the sample structure.