Giter VIP home page Giter VIP logo

blockchainwords's Introduction

blockChainWords

示例

http://words.ldsun.com/

说明

基于以太坊区块链上的永存的留言DAPP

  • 使用solidity开发
  • 基于truffle框架
  • 使用 truffle unbox react 脚手架
  • 部署在以太坊测试网络 Ropoetn Test Network 上(没有部署在主网,不是我看不起诸位,是我没币部署😭 )

使用

  1. 浏览安装 matemask 钱包的扩展程序,创建钱包
  2. 切换至 Ropoetn Test Network 测试网络,没有币的点这里申请eth
  3. 账户中有代币后,输入留言,点击确认后等待写入即可。

本地安装使用

环境: nodejs、truffle

  1. 下载至本地
  2. 执行 npm i 安装依赖
  3. 部署合约,不部署也可以使用(使用我已经部署的合约),不部署合约直接跳至第5步。
  4. 终端当前目录下,truffle compile编译合约,接着部署合约,自行选择部署方式,参考
  5. 合约部署完成后,得到合约地址,修改src/App.js中的合约地址contractAddress
  6. 终端当前目录下npm start启动前端
  7. 浏览器localhost:3000端口即可查看

可能存在的问题

linux下运行项目,如果报错react-magicaphrodite未找到,安装即可:

npm i react-magic aphrodite

其他

欢迎学习solidity智能合约的朋友加入q交流群 236380268 。

blockchainwords's People

Contributors

flute avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.