Pangan Kita is a food security backed by blockchain, Pangan Kita brings "trust" to food.
Currently this codebase is intended for Ubuntu only.
node.js
npm
docker
docker-compose
- [optional]
screen
DISCLAIMER: Hyperledger Composer is deprecated, therefore please refer to Hyperledger Composer which version it needs for these prerequisites.
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
./prereqs-ubuntu.sh
sudo npm install --unsafe-perm --verbose -g [email protected]
sudo npm install --unsafe-perm --verbose -g [email protected]
sudo npm install --unsafe-perm --verbose -g [email protected]
sudo npm install --unsafe-perm --verbose -g [email protected]
sudo npm install --unsafe-perm --verbose -g yo
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.gzcd ~/fabric-dev-servers
export FABRIC_VERSION=hlfv12
./downloadFabric.sh
./startFabric.sh
./createPeerAdminCard.sh
- Without
screen
composer-playground
- With
screen
(recommended)
screen -dmS playground composer-playground
- Import
foodnet.bna
from this repository as a new Business Network either under theConnection: Web Browser
orMy Business Networks
- Press
Connect Now
to connect into foodnet Business Network - Now you are able to test out our proof of concept
composer network install --card PeerAdmin@hlfv1 -a foodnet.bna
composer network start -c PeerAdmin@hlfv1 -n foodnet -V 0.0.2-deploy.13 -A admin -S admin
composer-rest-server -c admin@foodnet-network -n always -w true