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