Skip to content

NodeSDK samples to mimic all the functionality available under e2e integration unit tests

Notifications You must be signed in to change notification settings

asararatnakar/fabric_v1_nodesample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fabric V1 alpha based NodeSDK sample

The code is from fabric-sdk-node repository from e2e integration test code.

Steps to run the sample

STEP1: Clone the repo

git clone https://github.com/asararatnakar/fabric_v1_nodesample

STEP2: Install fabric-client fabric-ca-client node modules

cd fabric_v1_nodesample

npm install

STEP3: Launch the network

cd fabric_v1_nodesample/artifacts/

docker-compose up -d

STEP4: execute the applications one after another

cd fabric_v1_nodesample/app

CREATE CHANNEL

node create-channel.js

JOIN CHANNEL

node join-channel.js

INSTALL CHAINCODE

node install-chaincode.js

INSTANTIATE CHAINCODE

node instantiate-chaincode.js

INVOKE

node invoke-transaction.js

QUERY

node query.js

OR

Run the app with shell script
cd fabric_v1_nodesample/

./runApp.sh

About

NodeSDK samples to mimic all the functionality available under e2e integration unit tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published