This is a sample React app that uses Reach to generate, deploy, and interact with a smart contract on Ethereum.
Prerequisites:
- Install and run the Ganache app on localhost:8545
- configure it so the first user has a lot of ETH
- Install the MetaMask extension on both Chrome and Firefox.
- Install nvm and use it to install & use node 12.18.3 or higher
To see the demo in action:
npm install # this may take 5-15 mins to install
npm run start # this may take a minute to compile
Open http://localhost:3000 in both Firefox and Chrome; run the app as Alice on one, and Bob on the other.
If you modify src/index.rsh
, you must run the compile-rsh
script so that React will pick up the changes:
npm run compile-rsh