Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

DAZ-Labs/XDC-Master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XinFin Governance DApp

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

This is Governance Dapp for XinFin. 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.XinFin.com/whitepaper/](https://docs.XinFin.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 XDC
cp abis/*json build/contracts/

Note: before deploying to XinFin testnet, make sure you have XDC in the wallet. If not, get free at https://faucet_testnet.XinFin.org

Enable https

npm run dev-https

Run

  • Start mongodb
  • Start XDCMaster
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6