Skip to content

rupayaproject/governance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,878 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rupaya Governance DApp

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

This is Governance Dapp for Rupaya. 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.rupaya.io/whitepaper/](https://docs.rupaya.io/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 rupaya testnet, make sure you have RUPX in the wallet. If not, get free at https://faucet.rupaya.io

Enable https

npm run dev-https

Run

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

Governance provides a master professional level UI that brings governance power back to the users. Governance allows users to vote for masternodes and apply to become a candidate

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Vue 54.9%
  • JavaScript 34.0%
  • CSS 10.6%
  • Other 0.5%