Tools, FAQ, Tutorials:
"yo" Command to Generate Business Network
How to generate required source code files for a new business network with Hyperledger Composer command line tools?
✍: FYIcenter.com
You can use the "yo" command line tool to generate required source code
files for a new business network as shown below.
1. Run "yo" command with the "hyperledger-composer:businessnetwork" template:
$ yo hyperledger-composer:businessnetwork ? ========================================================================== We're constantly looking for ways to make yo better! May we anonymously report usage statistics to improve the tool over time? ========================================================================== No Welcome to the business network generator ? Business network name: tutorial-network ? Description: My first business network with composer CLI. ? Author name: Admin ? Author email: admin@fyicenter.com ? License: Apache-2.0 ? Namespace: org.example.biznet.cto ? Do you want to generate an empty template network? No: generate a populated sample network create package.json create README.md create models/org.example.biznet.cto create permissions.acl create .eslintrc.yml create features/sample.feature create features/support/index.js create test/logic.js create lib/logic.js $ ls -l tutorial-network drwxrwxr-x 2 fyicenter 4096 Apr 1 14:34 test -rw-r--r-- 1 fyicenter 2129 Apr 1 14:34 permissions.acl -rw-r--r-- 1 fyicenter 979 Apr 1 14:34 package.json drwxrwxr-x 2 fyicenter 4096 Apr 1 14:34 models drwxrwxr-x 2 fyicenter 4096 Apr 1 14:34 lib drwxrwxr-x 3 fyicenter 4096 Apr 1 14:34 features -rw-r--r-- 1 fyicenter 64 Apr 1 14:34 README.md
As you can see, the "yo" command create all source code files required for the business network in a sub-folder called "tutorial-network".
⇒ "composer archive" to Generate BNA File
⇐ Building Business Network with Hyperledger Composer
2019-04-21, 240👍, 0💬
Popular Posts:
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
Where to find tutorials on how to work with MySQL Database in PHP? A collection of tutorials to answ...
How To Remove Slashes on Submitted Input Values in PHP? By default, when input values are submitted ...
How to see more EPUB 2.0 metadata list with Calibre? You can follow this tutorial to view EPUB 2.0 m...
How to create Hello-3.1.epub with WinRAR? I have all required files to create Hello-3.1.epub. To cre...