Skip to content

Latest commit

 

History

History
71 lines (61 loc) · 2.48 KB

README.md

File metadata and controls

71 lines (61 loc) · 2.48 KB

TomoChain Governance DApp

GitHub version Build Status devDependencies Status JavaScript Style Guide: Good Parts Coverage Status Join the chat at https://gitter.im/tomochain/tomomaster

This is Governance Dapp for TomoChain. Full-Node can apply to become a candidate for masternode. Coin Holder can vote for candidates to become masternodes. See the detail from technical Whitepaper: https://docs.tomochain.com/whitepaper/](https://docs.tomochain.com/whitepaper/)

Requirements

Config

cp config/default.json config/local.json
  • Update local.json file to support your environment
    • Update mnemonic
    • Update mongodb configuration:
      • For docker: "db": { "uri": "mongodb://mongodb:27017/governance" },
      • For localhost: "db": { "uri": "mongodb://localhost:27017/governance" },

Install

npm install
truffle deploy --reset --network tomo # only use this command if you want to connect to a private network
cp abis/*json build/contracts/

Note: before deploying to tomochain testnet, make sure you have VIC in the wallet. If not, get free at https://faucet.tomochain.com

Enable https

npm run dev-https

Run

  • Start mongodb
  • Start TomoMaster
npm run dev

The site will run at http://localhost:3000

Test

npm run test

Or run command

truffle test

Test a special file

npm run test path_to_file/file.js

Or run command

truffle test path_to_file/file.js