(make sure Metamask is installed, otherwise you can't interact with the dapp)
Check smart contract for this example: http://use-util.cloud.milkomeda.com:4000/address/0x7ae28c580DccA503c7412CE94e844db6f75BE585/transactions- clone the repository
- run npm install
- install Metamask as Chrome extension
- create a wallet in Metamask
under src/contract/ you can find the contract.sol file. This is the contract I use for this example. To use your own contract follow these steps:
- go to the Remix IDE
- paste in the contract.sol file
- deploy the contract on the network you want (e.g. mainnet or ropsten or Milkomeda)
- copy the abi and the contract address
- go to src/contract/abi.js and replace the abi with yours
- go to src/contract/contract.js and replace the contract address with yours
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.