GithubHelp home page GithubHelp logo

xpagesbeast / jsdkintegrationsample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm-blockchain-archive/jsdkintegrationsample

0.0 1.0 0.0 23.1 MB

Hyperledger Fabric Java SDK integration with IBM Blockchain sample

Go 9.04% Java 90.96%

jsdkintegrationsample's Introduction

This document shows how to integrate the IBM hyperledger Java SDK with IBM bluemix blockchain. To use Bluemix IBM Blockchain Service, follow https://github.com/IBM-Blockchain/marbles/blob/v4.0/docs/use_bluemix_hyperledger.md to create a Blockchain Network in IBM Bluemix, peers (up to 3) and a channel.

Hyperledger Fabric Java SDK Version

Requires Hyperledger Fabric Java SDK 1.1.0-SNAPSHOT

Down load the repository

git clone https://github.com/IBM-Blockchain/JSDKIntegrationSample

Obtain "Service Credential" from bluemix

From your bluemix dashboard Overview, click on "Service Credentials", copy and paste all the information to a file named "bmxServiceCredentials.json". Save this file to the location where you download the repository

serviceCredentials

Modify BMXHyperledgerFabricJSDKIntegrationSample.java

Two places need to be changed: NETWORK_CONFIG_PEERORG_CA: get network ca information from bmxServiceCredentials.json

TEST_CHANNEL: update with your own channel name.

javeSampleCode

Installing

Run command: mvn install

Issue “mvn install” from your download folder, confirm with “BUILD SUCCESS” message

installBuild

Running

Run command: mvn exec:java -Dexec.mainClass="org.cr22rc.BMXHyperledgerFabricJSDKIntegrationSample"

It will generate the cert for user "admin" at the first time run, the credential info will be saved to "bmxBlockChainSampleStore.properties".

installBuild

Upload the certification to bluemix

Copy and paste CERTFICATE from java test case output to bluemix web GUI

memberView addCert

Tip: if the submit button is disabled, just add CR to ------END CERTIFICATE-----

Running it again

We should able to see invoke transaction and query runs are successful.

runTest

Introduction Video

An introduction video is in Videos/bmxJSDKIntro.webm

![demo video]

Video Screen Shots

Screen shots are in screenShots directory

jsdkintegrationsample's People

Contributors

cr22rc avatar georgeanu avatar sandysun2000 avatar

Watchers

 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.