Skip to content

mattgirdler/transaction_backend

 
 

Repository files navigation

Transaction Backend

Contains the ability to run Hyperledger Composer and Fabric, plus a custom built API that connects directly to Fabric via the Composer SDK.

Running

Everything running locally

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.sh

This 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.

Custom API local, Composer and Fabric on Bluemix

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.5%
  • Shell 6.5%