• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

bdjukic/react-ethereum-ipfs: This is a starter kit for a demo dApp using React, ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

bdjukic/react-ethereum-ipfs

开源软件地址:

https://github.com/bdjukic/react-ethereum-ipfs

开源编程语言:

JavaScript 83.5%

开源软件介绍:

Installation:

  1. Install Metamask wallet as a browser extension: https://metamask.io/
  2. Install Node.js: https://nodejs.org/en/download/package-manager/
  3. Install React: https://reactjs.org/docs/installation.html#installing-react
  4. Install Material UI: https://www.npmjs.com/package/material-ui
  5. Install local Ethereum test network: https://www.npmjs.com/package/truffle-testrpc
  6. Install IPFS: https://github.com/ipfs/go-ipfs#install

Configure IPFS

  1. Run ipfs init
  2. ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
  3. ipfs config --json Gateway.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
  4. Run ipfs daemon

Running the dApp:

  1. Spin off your Ethereum test network by running testrpc
  2. Switch your Ethereum network in MetaMask to localhost
  3. Take the first private key from the list and use it in MetaMask wallet (make sure you're using private network on localhost)
  4. Deploy the contract to blockchain with Remix (https://remix.ethereum.org)
  5. Update the contract address in /web/App.js
  6. Go to /web/ folder
  7. npm install
  8. npm start

Listing tomatos

alt tag

Adding new tomatos

alt tag




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap