Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Fix typo. composer-file-stroage-ways -> composer-file-storage-ways
Browse files Browse the repository at this point in the history
  • Loading branch information
nyetwurk committed Aug 31, 2018
1 parent e993322 commit 0216ca2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,34 +59,35 @@ cd ~/fabric-tools

- Generate the Business Network Archive (BNA) file from the root directory:
```
cd ~/hyperledger_composer_file_storage
composer archive create -t dir -n .
```

- Successfully created a file called `composer-file-stroage[email protected]` in root directory
- Successfully created a file called `composer-file-storage[email protected]` in root directory

- Install the runtime instance for the .bna file. This HAS to use the PeerAdmin@hlfv1 card
```
composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName composer-file-stroage-ways
composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName composer-file-storage-ways
```

- Start a network and create a new networkAdmin card for the business network
```
composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile composer-file-stroage[email protected] --file networkadmin.card
composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile composer-file-storage[email protected] --file networkadmin.card
```

- Import the new networkadmin.card generated
```
composer card import --file networkadmin.card
```

- A card `admin@composer-file-stroage-ways` should be visible with `composer-file-stroage-ways` as network assigned
- A card `admin@composer-file-storage-ways` should be visible with `composer-file-storage-ways` as network assigned
```
composer card list
```

- Activate the card by setting the certificate
```
composer network ping --card admin@composer-file-stroage-ways
composer network ping --card admin@composer-file-storage-ways
```

- To remove everything and start from scratch, follow step 1
Expand All @@ -109,7 +110,7 @@ docker-compose start

https://hyperledger.github.io/composer/reference/composer.network.update.html

`composer network update -a composer-file-stroage[email protected] -c admin@composer-file-stroage-ways`
`composer network update -a composer-file-storage[email protected] -c admin@composer-file-storage-ways`

## 5. Other useful commands

Expand Down
4 changes: 2 additions & 2 deletions modules/v0/assets/assets-crud.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const uploadDrug = (req, res, next) => {
} else {
const businessNetworkConnection = new BusinessNetworkConnection();
let drug;
return businessNetworkConnection.connect('admin@composer-file-stroage-ways')
return businessNetworkConnection.connect('admin@composer-file-storage-ways')
.then(() => {
return businessNetworkConnection.getAssetRegistry(
`${ASSET_NS}.Drug`);
Expand Down Expand Up @@ -62,7 +62,7 @@ const getSpecificDrug = (req, res, next) => {
let assets;
let exists;
return businessNetworkConnection
.connect('admin@composer-file-stroage-ways') // Auth module will add
.connect('admin@composer-file-storage-ways') // Auth module will add
.then(() => {
return businessNetworkConnection.getAssetRegistry(
`${ASSET_NS}.Drug`);
Expand Down
4 changes: 2 additions & 2 deletions modules/v0/users/users-crud.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const addUserInfo = (req, res, next) => {
const businessNetworkConnection = new BusinessNetworkConnection();
let user;

return businessNetworkConnection.connect('admin@composer-file-stroage-ways')
return businessNetworkConnection.connect('admin@composer-file-storage-ways')
.then(() => {
return businessNetworkConnection.getParticipantRegistry(
`${USER_NS}.User`);
Expand Down Expand Up @@ -46,7 +46,7 @@ const getSpecificUser = (req, res, next) => {
let assets;
let exists;
return businessNetworkConnection
.connect('admin@composer-file-stroage-ways') // Auth module will add
.connect('admin@composer-file-storage-ways') // Auth module will add
.then(() => {
return businessNetworkConnection.getParticipantRegistry(
`${USER_NS}.User`);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "composer-file-stroage-ways",
"name": "composer-file-storage-ways",
"version": "0.0.1",
"description": "differnet ways (ipfs, string) of file storage with hyperledger compser",
"scripts": {
Expand Down

0 comments on commit 0216ca2

Please sign in to comment.