Git Product home page Git Product logo

food-security-blockchain's Introduction

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

food-security-blockchain's People

Contributors

rayhanga avatar

Stargazers

Rengganis Nurul Aini avatar

Watchers

James Cloos avatar  avatar Rengganis Nurul Aini avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.