TomoMaster provides a master professional level UI that brings governance power back to the users. Tomomaster allows users to vote for masternodes and apply to become a candidate
Clone or download
thanhson1085 Merge pull request #369 from thanhson1085/master
fix truffle deploy nonce to low in tomochain
Latest commit 8c682c1 Dec 12, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
abis support network id 90 88 Sep 13, 2018
apis fix issue when vote by wallet Dec 6, 2018
app Merge pull request #368 from pqv199x/prevent-autofill Dec 12, 2018
config Update mainnet.json Dec 12, 2018
contracts fix some smart contract issue after auditing Dec 3, 2018
helpers add config log Dec 2, 2018
middlewares Update error.js Dec 4, 2018
migrations optimize security for TomoRandomize Oct 18, 2018
models fix issue when vote by wallet Dec 6, 2018
sslcert Tomomaster: enable https on local with "npm run dev-https" Dec 5, 2018
test optimize security for TomoRandomize Oct 18, 2018
validators add URL regex to validate Network URL in setting form Jul 18, 2018
.dockerignore refactor dockerfile Jun 5, 2018
.eslintignore add update name of candidate via cmd Aug 19, 2018
.eslintrc.json add vuejs eslint, webpack eslint loader Apr 27, 2018
.gitignore add pem files to gitignore Oct 4, 2018
.travis.yml update desktop applications Dec 3, 2018
Dockerfile chore(docker): remove env variables from dockerfile Aug 8, 2018
LICENSE Create LICENSE Jun 28, 2018
README.md Tomomaster: enable https on local with "npm run dev-https" Dec 5, 2018
abis.js fix lint abis.js Aug 6, 2018
clean.sh bash script for deploy, nginx config May 22, 2018
cmd.js fix warning update in cmd Oct 16, 2018
crawl.js update nodeId as coinbase Dec 6, 2018
elect.js update desktop applications Dec 3, 2018
entrypoint.sh Add CD/CI pipeline (#96) Jul 4, 2018
index.html update Tomomaster -> TomoMaster Oct 12, 2018
index.js issue parallel save Aug 28, 2018
nodemon.json add server size for some apis, provide better ux May 4, 2018
package-lock.json fix truffle deploy nonce to low in tomochain Dec 12, 2018
package.json lint fix Dec 12, 2018
travis.pem.enc add deployment process to travis Oct 4, 2018
truffle-config.js add eslint Apr 27, 2018
truffle.js lint fix Dec 12, 2018
webpack.config.js fix slow webpack on development Jul 24, 2018

README.md

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
cp abis/*json build/contracts/

Note: before deploying to tomochain testnet, make sure you have TOMO 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