Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 1.08 KB

README.md

File metadata and controls

17 lines (15 loc) · 1.08 KB

HyperETS

This is the source code of the emission trading system that mentioned in the paper: Design and Implementation on Hyperledger-based Emission Trading System. It constains the network part and the HTTP server part.

How to Use

System Requirements

To setup this system, please make sure your server has the hyperledger fabric environment.

Getting Started

  • Run npm install at the home directory
  • Go to chaincode/emission_trade directory and comment "preinstall" in package.json
  • Run npm install
  • Uncomment "preinsatll"
  • Run tar -cvf node_modules.tar.gz node_modules/
  • Run rm -rf node_modules/
  • Run ./network/start.sh to start the hyperledger fabric network
  • Run node app.js to start the HTTP server listening on port 9021

After these steps, you will start a RESTful HTTP server which provides the emission trading services. You can customize your own applications (Mobile App or Web) using these HTTP interfaces. The details of the interfaces can be found at the app.js.