- All the create react app features
- Prettier configured
- Commit hooks for Linting and Prettier
- Example based on web3-react
- Connect to Metamask
- Read and write a value in a Smart Contract
notice: This repo assume you are using Solidity Starter Kit
- Rebuild the smart contract state
- Keep the smart contract state updated using the events
- Add UI Components
- yarn
- Mac:
brew install yarn
- Win: https://yarnpkg.com/lang/en/docs/install/#windows-tab
- Mac:
- NVM (Node Version Manager)
- Mac & Linux:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
[more info|https://github.com/nvm-sh/nvm] - Win: https://github.com/coreybutler/nvm-windows
- Mac & Linux:
- AVN (Automatic Switch to the Node version of the project)
- Mac & Linux: setup instructions
- Win: setup instructions (never tested)
yarn install
- Download and install Solidity Starter Kit
- In the Solidity Starter Kit
yarn build
the Example.sol and copy the ABI file fromsolidity-starter-kit/build/contract/Example.json
insrc/abi
yarn ganache:start && yarn deploy
- In this project
yarn start