react-ethereum-ipfs
react-ethereum-ipfs copied to clipboard
This is a starter kit for a demo dApp using React, Ethereum and IPFS
Installation:
- Install Metamask wallet as a browser extension: https://metamask.io/
- Install Node.js: https://nodejs.org/en/download/package-manager/
- Install React: https://reactjs.org/docs/installation.html#installing-react
- Install Material UI: https://www.npmjs.com/package/material-ui
- Install local Ethereum test network: https://www.npmjs.com/package/truffle-testrpc
- Install IPFS: https://github.com/ipfs/go-ipfs#install
Configure IPFS
- Run
ipfs init ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'ipfs config --json Gateway.HTTPHeaders.Access-Control-Allow-Origin '["*"]'- Run
ipfs daemon
Running the dApp:
- Spin off your Ethereum test network by running
testrpc - Switch your Ethereum network in MetaMask to localhost
- Take the first private key from the list and use it in MetaMask wallet (make sure you're using private network on localhost)
- Deploy the contract to blockchain with Remix (https://remix.ethereum.org)
- Update the contract address in
/web/App.js - Go to
/web/folder npm installnpm start
Listing tomatos

Adding new tomatos
