Skip to content

Rayhanga/food-security-blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Pangan Kita

Pangan Kita is a food security backed by blockchain, Pangan Kita brings "trust" to food.

Currently this codebase is intended for Ubuntu only.

Prerequisites

  • 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.

Install Hyperledger Composer Prerequisites

curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh

chmod u+x prereqs-ubuntu.sh

./prereqs-ubuntu.sh

Install some Hyperledger Composer CLI Tools

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

Deployment

1. Install HyperledgerFabric V.1.2.

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

2. Generate a PeerAdmin Card

./startFabric.sh

./createPeerAdminCard.sh

3. Start The Hyperledger Composer Playground

  • Without screen
composer-playground
  • With screen (recommended)
screen -dmS playground composer-playground

4. Import foodnet.bna as a new Business Network

  • Import foodnet.bna from this repository as a new Business Network either under the Connection: Web Browser or My Business Networks
  • Press Connect Now to connect into foodnet Business Network
  • Now you are able to test out our proof of concept

5. [Optional] Deploy as a REST API Server

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published