For all information regarding the Fabric network installation read this link --> https://github.com/far-edge/DistributedLedger/tree/develop/configuration-service-network
Copy your HLF crypto-config dir under the chosen directory (default directory is USER HOME).
Clone this repo https://github.com/far-edge/PilotReshoring.git
Configure file resources/config-fabric-network.json.
Edit the file config-fabric-network.json with your favourite text editor in order to configure the network as in your HLF previous installation. Under you can find a complete example of configured file:
vim config-fabric-network.json
{
"name": "fabric-network",
"type": "hlfv1.1",
"channelName": "ledgerchannel",
"timeout": 5000,
"cryptoconfigdir": "crypto-config path",
"tls": false,
"chaincode": {
"path": "smart-conveyor-chaincode",
"name": "smart-conveyor-chaincode",
"version": "1.0",
"lang": "NODE"
},
"organizations": [
{
"domainName": "org1.example.com",
"mspID": "Org1MSP",
"peers": [
{
"name": "peer0.org1.example.com",
"requestURL": "grpc://localhost:7051",
"eventURL": "grpc://localhost:7053"
}
],
"ca": {
"url": "http://localhost:7054",
"name": "ca.example.com"
},
"orderers": [
{
"name": "orderer.example.com",
"url": "grpc://localhost:7050"
}
],
"users": [
{
"name": "Admin",
"roles": [
"admin"
]
}
]
}
]
}
Open a terminal and launch tsc -w to compile the Typescript code.
Open another terminal node ./dist/server.js.
Clone this repo https://github.com/far-edge/PilotReshoring.git
edit the file resources/config-fabric-network.json as done before.
Open a terminal and launch tsc -w to compile the Typescript code.
Open another terminal node ./dist/server.js.