Skip to content

Steps to Setup

Shashank Motepalli edited this page Oct 26, 2018 · 1 revision

Steps to run transaction shipping system

Getting ready

  • Start your source and destination networks.
  • Navigate to a location where you want to run transaction shipping system and clone the project: git clone https://github.com/sm86/hyperledger-distributed-transactions.git
  • Open the repository : cd hyperledger-distributed-transactions/
  • Install the required dependencies : npm install
  • Start the docker container for Couch: ./setup.sh
  • Initialize the database: node app
  • verify your initialization by checking if there are 3 databases in http://localhost:5990/_utils/

Note: Make sure port 5990 is not being used. In case you need to change it, update the port in setup.sh and db/couchdb.js

Source

This section is responsible for listening to transactions on the channel, filtering them as per policy and storing them on the transaction queue.

  • Make sure source attributes are correct in config.json
  • For the first time, we will enroll the admin node enrollAdmin.js
  • Now, we will register user for our platform node registerUser.js

Destination

This section is responsible for retrieving from the transaction queue, processing to required format and sending the transaction onto destination.

Clone this wiki locally