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.com
Start 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 up
Test.
npm test
Develop: run REST server with nodemon
to reload on changes.
npm run dev
Serve. Run REST server.
npm start
Build docker image.
docker build -t olegabu/fabric-starter-rest .