Home

Awesome

Web application for Hyperledger Fabric decentralized application

Starter application built with Aurelia to connect to REST API servers and transact on Hyperledger Fabric blockchain network created with Fabric Starter.

Install and build

Install prerequisites: Node.js. This example is for Ubuntu 18:

sudo apt install nodejs npm

Install Aurelia CLI

npm install aurelia-cli -g

Build

npm install && au build

Create and start the network

Follow instructions on Fabric Starter to create a network of member organizations who will run their REST API servers which will serve this web app.

Serve by the API servers

Build to be served by fabric-starter-rest, assume it's cloned into ../fabric-starter-rest.

au build --env stage \
&& cp index.html ../fabric-starter/webapp/ \
&& cp -r scripts ../fabric-starter/webapp/ \
&& mkdir -p ../fabric-starter/webapp/src && cp -r src/locales ../fabric-starter/webapp/src

Development

Run in development

au run --watch

Your web application served by au run in development at http://localhost:9000 will connect to the API server of org a http://localhost:3000.