Skip to content

Hyperledger Fabric REST server built with node and express.

License

Notifications You must be signed in to change notification settings

feliciss/fabric-server-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Hyperledger Fabric REST server built with node and express.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published