yarn install
For development Version:
yarn start
For production Version:
yarn start:production
declare 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 start
covers
- to build
yarn run build
- to run production build:
yarn start:prod
declare env in following command or declare them in .env
file present in ~/root
INFURA='' MNEMONIC='' yarn run cd
required 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.js
voting-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.