Skip to content
Hyperledger Fabric REST server built with node and express.
JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Able to setup channel, peer and orderer. Nov 19, 2019
network/config Complete workflow (basic). Nov 14, 2019
service
utils Create CryptoKit. Oct 15, 2019
.gitignore
LICENSE Initial commit Oct 15, 2019
README.md
package.json Complete workflow (basic). Nov 14, 2019

README.md

Fabric Server Node: Hyperledger Fabric server which serves for Fabric Client Flutter

Hyperledger Fabric offline signing server built with Node.js and Express.js.

Note: this is sibling project that only serves as the backend. Uses it at your own risk.

Environment Guide

To run this application server, you need to open serve.js and replace with your own settings.

On the client side, you need some inputs to serve the request, for example:

Setting up Fabric channel ID

Channel ID: <the unique id for the channel>, etc. mychannel

Setting up Fabric peer or orderer

Certificate Path: <peer or orderer msp tlscacerts>, etc. .../crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
Listen Address: <peer or orderer listen address>, etc. grpcs://localhost:7050
Name: <the name of the peer or orderer>, etc. orderer.example.com

We assume that you are using the temporary test environment such as fabric-sdk-node project's gulp run-end-to-end command to prepare the test environment for this project.

Otherwise you need to replace the code for your own environment configuration. The code starting from line 22:

// testing connection

and line 28:

// testing proposal

Quick Start

Install

npm i

After configuring your local environment, we can go to service folder, and run directly. Since the server is constructured for testing currently.

Run with Node

node serve.js

All your needs is to configure Node.js environment.

You can’t perform that action at this time.