knoll3 / voting-dapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voting Dapp

Building out the frontend for a simple voting smart contract.

Includes

  • React
  • Typescript
  • Web3
  • Material UI

Local Setup

  1. Use Ganache to run a local network
  2. Use Metamask to connect to the port Ganache is running on. GUI default should be 7545, CLI default should be 8545.
  3. Make sure the account being used has some eth in it
  4. Compile the contracts
$ truffle compile
$ truffle migrate
  1. Build the client
$ cd client
$ yarn
  1. Run the client
$ cd client
$ yarn start

About

License:MIT License


Languages

Language:TypeScript 53.7%Language:JavaScript 33.3%Language:Solidity 7.4%Language:HTML 3.5%Language:CSS 2.1%