Skip to content

Latest commit

 

History

History
45 lines (41 loc) · 2.64 KB

README.md

File metadata and controls

45 lines (41 loc) · 2.64 KB

Pre-requisites

Available nodes to be setup

  1. Mainchain node
    • mainnet: [20334 - RESTAPI Port, 20336 - RPC Port]
    • testnet: [21334 - RESTAPI Port, 21336 - RPC Port]
  2. DID node
    • mainnet: [20604 - RESTAPI Port, 20606 - RPC Port]
    • testnet: [21604 - RESTAPI Port, 21606 - RPC Port]
  3. Token node
    • mainnet: [20614 - RESTAPI Port, 20616 - RPC Port]
    • testnet: [21614 - RESTAPI Port, 21616 - RPC Port]
  4. Eth node(only on testnet)
    • testnet: [21636 - RPC Port]

How to Run

  • Run a testnet environment with mainchain, did, token and eth nodes ./develap blockchain run -e testnet -n mainchain,did,token,eth
  • Run a testnet environment with mainchain node ./develap blockchain run -e testnet -n mainchain
  • Run a mainnet environment with did node ./develap blockchain run -e mainnet -n did
  • Kill token node on mainnet environment ./develap blockchain kill -e mainnet -n token
  • Kill all the nodes on testnet environment ./develap blockchain kill -e testnet
  • Show all the nodes currently running in mainnet environment ./develap blockchain list -e mainnet

How to build the binary yourself

  • If you're running go version lower than 1.13, you'll need to do the following: export GO111MODULE=on
  • make to build it for your local environment
  • make build-all to build for 3 platforms: linux, darwin and windows

Tools

  • build_dockerimages.sh: This shell script automatically builds all the binaries for main chain, all the sidechains, services, etc and then packages them to be run inside docker images and if the flags "-p" and "-l" are set to "yes", the built docker images are automatically pushed to Cyber Republic Docker Hub. Note that you need permission to push to the CR dockerhub but you can still build the images locally if you so choose