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.
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.
git clone git@github.com:Simon-Li/fabric-node-rest.git
cd fabric-node-rest
./runApp.sh
./testAPIs.sh
(when the server is running)
docker build -t aipu/fabric-node-rest:latest .
docker push aipu/fabric-node-rest
docker run -p 4000:4000 --name fabric-rest --rm aipu/fabric-node-rest:latest
docker inspect peer0.org1.example.com|grep IPAddress