https://github.com/marcelsavegnago/hyperledger-firstnetworksample
My Commodity Trading network sample with Hyperledger Composer and Fabric
https://github.com/marcelsavegnago/hyperledger-firstnetworksample
hyperledger hyperledger-composer hyperledger-fabric
Last synced: 10 months ago
JSON representation
My Commodity Trading network sample with Hyperledger Composer and Fabric
- Host: GitHub
- URL: https://github.com/marcelsavegnago/hyperledger-firstnetworksample
- Owner: marcelsavegnago
- Created: 2017-09-24T06:46:00.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-04T03:00:41.000Z (almost 9 years ago)
- Last Synced: 2025-03-29T02:02:52.377Z (over 1 year ago)
- Topics: hyperledger, hyperledger-composer, hyperledger-fabric
- Language: JavaScript
- Size: 202 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My First Hyperledger Network
A Commodity Trading network
https://hyperledger.github.io/composer/introduction/introduction.html
## Preparando o ambiente
Installing the pre-requisites for Hyperledger Composer on Mac OS X
https://hyperledger.github.io/composer/installing/prereqs-mac.html
Installing and developing with Hyperledger Composer
https://hyperledger.github.io/composer/installing/development-tools.html
### Exportando variável responsável por determinar o modo de autenticação utilizado pela rede.
```
export COMPOSER_PROVIDERS='{
"github": {
"provider": "github",
"module": "passport-github",
"clientID": "97147032757a7a372762",
"clientSecret": "1c1d174d749515721d6d79387d71d4c6d0c4d49c",
"authPath": "/auth/github",
"callbackURL": "/auth/github/callback",
"successRedirect": "/",
"failureRedirect": "/"
}
}'
```
### Instalando dependências
```
cd hyperledger-firstnetworksample
npm install
npm install -g passport-github
```
### Re-generate your Business Network archive (BNA)
```
composer archive create --sourceType dir --sourceName . -a ./dist/my-network.bna
```
### Executando teste unitário
```
npm test
```
### Deploy the Business Network Definition to the runtime Fabric
```
cd ./dist
composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString
```
### Generate the REST APIs for the updated Business Network
```
cd ..
composer-rest-server -p hlfv1 -n my-network -i admin -s adminpw -a true
```
## Author
* **Marcel Savegnago** - *Initial work*
See my github profile (https://github.com/marcelsavegnago)