data-marketplace-chaincode

command module
v0.0.0-...-3a465d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

README

Data Marketplace Chaincode

This repository contains a Hyperledger Fabric chaincode that represents a smart contract to support the data marketplace operations and concepts. The project is written in Go. To run this component correctly, you should be familiar with the Data marketplace components because there is a particular dependency between the components. You should also have a running Fabric network, we followed this tutorial to deploy Fabric on kubernetes but we used our chaincode instead of the one provided in the tutorial.

Build prerequisites

  • Install golang.
  • Install git.
  • Configure go. GOPATH environment variable must be set correctly before starting the build process.
Download and work with the code
mkdir -p $HOME/workspace
export GOPATH=$HOME/workspace
mkdir -p $GOPATH/src/github.com/lgsvl
cd $GOPATH/src/github.com/lgsvl
git clone git@github.com:lgsvl/data-marketplace-chaincode.git
cd data-marketplace-chaincode
Kubernetes Deployment

After deploying the chaincode, you can connect to any organization and start invoking the chaincode. To make things easier, we implemented a REST interface that you can deploy within your kubernetes cluster. The code for this REST interface is in Data marketplace Chaincode REST.

Running the Unit Tests

Run the tests:

./scripts/run_glide_up
./scripts/run_units.sh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL