Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lgsvl/data-marketplace-chaincode
Hyperledger chain code for the data marketplace.
https://github.com/lgsvl/data-marketplace-chaincode
Last synced: about 2 months ago
JSON representation
Hyperledger chain code for the data marketplace.
- Host: GitHub
- URL: https://github.com/lgsvl/data-marketplace-chaincode
- Owner: lgsvl
- License: apache-2.0
- Created: 2019-03-07T15:11:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T18:34:03.000Z (over 5 years ago)
- Last Synced: 2023-07-27T22:18:54.384Z (over 1 year ago)
- Language: Go
- Size: 35.6 MB
- Stars: 2
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://golang.org/).
To run this component correctly, you should be familiar with the [Data marketplace](https://github.com/lgsvl/data-marketplace) components because there is a particular dependency between the components.
You should also have a running Fabric network, we followed this [tutorial](https://github.com/IBM/blockchain-network-on-kubernetes#4-deploy-hyperledger-fabric-network-into-kubernetes-cluster) to deploy Fabric on kubernetes but we used our chaincode instead of the one provided in the tutorial.# Build prerequisites
* Install [golang](https://golang.org/).
* Install [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
* Configure go. GOPATH environment variable must be set correctly before starting the build process.### Download and work with the code
```bash
mkdir -p $HOME/workspace
export GOPATH=$HOME/workspace
mkdir -p $GOPATH/src/github.com/lgsvl
cd $GOPATH/src/github.com/lgsvl
git clone [email protected]: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](https://github.com/lgsvl/data-marketplace-chaincode-rest).# Running the Unit Tests
Run the tests:
```bash
./scripts/run_glide_up
./scripts/run_units.sh
```