Blockchain network for animal tracking between farms. Based on the Hyperledger Composer example animal tracking network
For detailed instructions on the pre-requisites visit Hyperledger Composer development tools
npm install -g composer-cli
npm install -g composer-rest-server
npm install -g generator-hyperledger-composer
npm install -g composer-playground
Download and extract:
mkdir ~/fabric-dev-servers && cd ~/fabric-dev-servers
curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz
tar -xvf fabric-dev-servers.tar.gz
Install the local runtime:
cd ~/fabric-dev-servers
./downloadFabric.sh
cd ~/fabric-dev-servers
./startFabric.sh
./createPeerAdminCard.sh
~/fabric-dev-servers/startFabric.sh
~/fabric-dev-servers/stopFabric.sh
Install the business network:
composer network install --card PeerAdmin@hlfv1 --archiveFile animaltracking-network@0.0.1.bna
Start business network:
composer network start --networkName animaltracking-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card
Import the network administrator identity as a usable business network card:
composer card import --file networkadmin.card
composer-rest-server -c admin@animaltracking-network -n never -w true
The REST server will then be running at localhost:3000
For the first time running the app after cloning the repository:
npm install
cd animaltracking-network-app
npm start
The app will then be running at localhost:4200