Skip to content

Simon-Li/fabric-node-rest

Repository files navigation

RESTful API server for Hyperledger Fabric 1.0

This server provides a RESTful interface for applications to transact on Hyperledger Fabric 1.0 network. It uses Node.js SDK API to call peers, orderer and CA servers of Fabric network's members.

REST Server

The server can be instantiated for a Fabric network in which consists of three organizations and one Orderer and one CouchDB server.

The server should be run by each member organization, it manages user authentication, interacts with peers and pass events to the API clients.

Setup

  1. git clone git@github.com:Simon-Li/fabric-node-rest.git
  2. cd fabric-node-rest
  3. ./runApp.sh
  4. ./testAPIs.sh (when the server is running)

Build

  1. docker build -t aipu/fabric-node-rest:latest .
  2. docker push aipu/fabric-node-rest

Util commands

  1. docker run -p 4000:4000 --name fabric-rest --rm aipu/fabric-node-rest:latest
  2. docker inspect peer0.org1.example.com|grep IPAddress

About

Restful API server for Hyperledger Fabric 1.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published