yarn installFor development Version:
yarn startFor production Version:
yarn start:productiondeclare env in following command or declare them in .env file present in ~/root
Use PORT an env variable to run on a custom port
POST=3991 yarn startcovers
- to build
yarn run build- to run production build:
yarn start:proddeclare env in following command or declare them in .env file present in ~/root
INFURA='' MNEMONIC='' yarn run cdrequired env variables
-
INFURA (link of infura Provider)
-
MNEMONIC (12 word phrase)
covers
- For compiling
node compile.js- For deploying ByteCode
INFURA='' MNEMONIC='' node deploy.js- For deploying running tests
jest tests/contract.test.jsvoting-dApp/
.gitignore
README.md
app/
components
containers
css
app.js
index.html
reducers.js
docs
internals
server
Solidity_Contract/
build // -> Build files of Contract
contracts // -> Solidity Contracts
tests // -> Contract's Unit Tests
compile.js // -> Compiling file
deploy.js // -> Deploying file
VotingInstance.js // -> Contracts Instance
web3.js // -> exporting Web3 instance
README.md
package.json
yarn.lock
- Members can Create and vote on tasks.
- Once a task gets 100% of votes then it becomes an approved task.
- If a task does not get 100% votes after everyone has voted, then it becomes an unapproved task.
- Owner can finalize task after ending time of Contract finishes.