Skip to content

An Ethereum Smart contract dApp integrated with ReactJS in Front-End. This app fully maintains and organisation's Voting System on ETH Blockchain.

License

Notifications You must be signed in to change notification settings

hassantauqeer/voting-dApp

Repository files navigation

ERC20 Dapp

Installation

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

open http://localhost:3000

Smart Contract Installation

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

Project Structure

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

Smart Contract

  • 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.

Voting Dapp

About

An Ethereum Smart contract dApp integrated with ReactJS in Front-End. This app fully maintains and organisation's Voting System on ETH Blockchain.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published