Contains the ability to run Hyperledger Composer and Fabric, plus a custom built API that connects directly to Fabric via the Composer SDK.
You will need:
- Docker (running)
- Docker-compose
- Node
- composer-cli installed globally (
npm install -g composer-cli@0.13.1) - composer-rest-server installed globally (
npm install -g composer-rest-server@0.13.1)
/hmlr-populate/start.shThis will start up Playground locally alongside a local instance of Hyperledger Fabric. It's basically doing this.
Then it will run the custom API (app.js), which exposes REST endpoints for the front end to hit.
You will need:
- Node
export NODE_ENV=stage
npm install && node app.js(Setting NODE_ENV ensures the stage.json overrides the connection profile name to be the one that is running on bluemix)
This will run the custom API locally, connecting to the Fabric SDK on Bluemix. Note that you will need to have downloaded the connection profile into ~/.composer-connection-profiles beforehand.