REST API server and client for Hyperledger Fabric built with NodeJS SDK.
See usage examples at fabric-starter.
To run test in development mode (from a developer's machine and not within container) Set environment:
export ORG=org1 DOMAIN=example.comStart fabric-starter orderer and peer with ports mapped to the host machine so the SDK clients can access them.
docker-compose -f docker-compose-orderer.yaml -f orderer-ports.yaml up
docker-compose -f docker-compose.yaml -f ports.yaml upTest.
npm testDevelop: run REST server with nodemon to reload on changes.
npm run devServe. Run REST server.
npm startBuild docker image.
docker build -t olegabu/fabric-starter-rest .