Created
July 7, 2018 02:06
-
-
Save akehoyayoi/7e1c360f4f11328a41d1e4bd3e22dbde to your computer and use it in GitHub Desktop.
Hyperledger Fabricのブロックの内容を見る ref: https://qiita.com/akehoyayoi/items/d0654880382850f7cd2b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"network-config": { | |
"org1": { | |
"name": "peerOrg1", | |
"mspid": "Org1MSP", | |
"peer1": { | |
"requests": "grpc://127.0.0.1:7051", | |
"events": "grpc://127.0.0.1:7053", | |
"server-hostname": "peer0.org1.example.com", | |
"tls_cacerts": "<fabric-samples-PATH>/basic-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt" | |
}, | |
"admin": { | |
"key": "<fabric-samples-PATH>/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore", | |
"cert": "<fabric-samples-PATH>/basic-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts" | |
} | |
} | |
}, | |
"channel": "mychannel", | |
"orderers": [ | |
{ | |
"mspid": "OrdererMSP", | |
"server-hostname": "orderer.example.com", | |
"requests": "grpc://127.0.0.1:7050", | |
"tls_cacerts": "<fabric-samples-PATH>/basic-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt" | |
} | |
], | |
"keyValueStore": "/tmp/fabric-client-kvs", | |
"configtxgenToolPath": "<fabric-samples-PATH>/bin", | |
"SYNC_START_DATE_FORMAT": "YYYY/MM/DD", | |
"syncStartDate": "2018/01/01", | |
"eventWaitTime": "30000", | |
"license": "Apache-2.0", | |
"version": "1.1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install postgresql # postgresqlのインストール | |
brew services start postgresql # 起動 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psql -d postgres | |
postgres=# \i app/persistance/postgreSQL/db/explorerpg.sql | |
postgres=# \i app/persistance/postgreSQL/db/updatepg.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blockchain-explorer:$ npm install | |
blockchain-explorer:$ cd app/test | |
blockchain-explorer:$ npm install | |
blockchain-explorer:$ npm run test | |
blockchain-explorer:$ cd ../../client/ | |
blockchain-explorer:$ npm install | |
blockchain-explorer:$ npm test ---u --coverage | |
blockchain-explorer:$ npm run build | |
blockchain-explorer:$ cd .. | |
blockchain-explorer:$ ./start.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment