vue开发dapp_基于Vue的Solidity Dapp开发框架

本文介绍了如何使用truffle-vue,一个基于Vue的Solidity Dapp开发框架。内容涵盖从安装到开发外壳的步骤,以及如何利用gulp进行项目管理。
摘要由CSDN通过智能技术生成

vue开发dapp

松露味 (truffle-vue)

This box is a Vue based solidity Dapp development framework.

此框是基于Vue的Solidity Dapp开发框架。

入门 (Getting Started)

安装 (Install)

First

第一

$ (sudo) npm install -g ethereumjs-testrpc

Second

第二

$ (sudo) npm install -g truffle

Third

第三

$ truffle unbox huarxia/truffle-vue

or

要么

$ https://github.com/huarxia/truffle-vue.git
$ cd truffle-vue

Fourth

第四

$ npm install

Fifth new shell window

第五个新的外壳窗口

$ testrpc

Sixth on current window

当前窗口第六

$ truffle compile
$ truffle migration
$ npm run dev

开发外壳 (develop shell)

compile

编译

$ truffle compile

migration

移民

$ truffle migration

用一口 (use gulp)

Global install gulp

全局安装

$ (sudo) npm install gulp -g

If it is the first use of direct operation gulp

如果是第一次直接使用gulp

$ gulp

If it was used second times

如果第二次使用

$ gulp start

包括哪些命令? (Which commands are included?)

gulp // First compile migrate and run
gulp start // First run
gulp clean // delete build
gulp compile // Compile smart contract and delete build first
gulp migrate // Deploy smart contracts to localgulp reset // Redeploy smart contract to local and restart service
gulp migrate-deploy // Deploying smart contracts to ropsten using infura
gulp deploy // Deploying smart contracts to ropsten using infura and run dev

翻译自: https://vuejsexamples.com/a-vue-based-solidity-dapp-development-framework/

vue开发dapp

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值