digitalproperty-network
Advanced tools
Comparing version 0.0.4-20170316133757 to 0.0.4-20170316134459
{ | ||
"name": "digitalproperty-network", | ||
"version": "0.0.4-20170316133757", | ||
"version": "0.0.4-20170316134459", | ||
"description": "Digital Property Network", | ||
@@ -5,0 +5,0 @@ "scripts": { |
# Digital Property Network | ||
This defines the transaction implementations, access control lists and other functional aspects. There is a dependency on a version of a Business Network Model. | ||
With this dependency, this DigitalProperty-Network defines the complete Business Network Definition. In this specific example, the Digital Property Network. | ||
Defines a business network where house sellers can list their properties for sale. | ||
Note that this network **references** the digital property model, via an npm dependency declared in package.json: | ||
``` | ||
"dependencies": { | ||
"digitalproperty-model": "latest" | ||
} | ||
``` | ||
This allows the model to be shared across different types of business networks, and allows the model to have a lifecycle that is independent of the business network. | ||
## What should I do with this npm module? | ||
@@ -56,14 +65,13 @@ It is expected that this npm module would be associated with a CI pipeline and tracked as source code in something like GitHub Enterpise. The CI pipeline this would be able to run functional validation on the whole definition, and also be able to published the module to an NPM repository. This allows sharing of the module etc. | ||
There is a `concerto archive` command that can be used to create and inspect these archives. The `concerto network` command is then used to administer the business network archive on the Hyperledger Fabric. | ||
There is a `composer archive` command that can be used to create and inspect these archives. The `composer network` command is then used to administer the business network archive on the Hyperledger Fabric. | ||
### Creating an archive | ||
The `concerto archive create` command is used to create the archive. The `--archiveFile` option is used to specify the name of the archive file to create. If this is not specified then a default name will be used that is based on the identifier of the business network (sanitized to be suitable as a filename). For example `@ibm_digitalPropertyNetwork-0.1.2.bna`. | ||
The `composer archive create` command is used to create the archive. The `--archiveFile` option is used to specify the name of the archive file to create. If this is not specified then a default name will be used that is based on the identifier of the business network (sanitized to be suitable as a filename). For example `@ibm_digitalPropertyNetwork-0.1.2.bna`. | ||
One of either --inputDir or --moduleName must be specified. --inputDir is the directory that contains the `package.json` file of the Business Network npm module's package.json. | ||
Please refer to the docs for `composer archive create` for more options. | ||
```bash | ||
concerto archive create --archiveFile digitialLandTitle.bna --inputDir . --moduleName DigitalLandTitle | ||
composer archive create --archiveFile digitialLandTitle.bna --inputDir . --sourceType dir --sourceName DigitalLandTitle | ||
``` | ||
@@ -74,5 +82,5 @@ | ||
```bash | ||
concerto network deploy --archiveFile DigitalLandTitle.zip --enrollId WebAppAdmin --enrollSecret DJY27pEnl16d | ||
composer network deploy --archiveFile DigitalLandTitle.zip --enrollId WebAppAdmin --enrollSecret DJY27pEnl16d | ||
``` | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25570
85