This simple script combines truffle with a custom Vue webpack template to generate a boilerplate that can be built on top of to create complex distributed apps on the Ethereum blockchain.
vtw requires that you have truffle and the vue-cli installed.
npm install -g truffle
npm install -g vue-cli
After obtaining the dependencies simply run the following command. This will fetch the vtw
script file and move it into /usr/local/bin
so it can be used globally as a command.
curl -O https://raw.githubusercontent.com/wilfreddenton/vue-truffle-webpack/master/vtw ; chmod +x vtw ; mv vtw /usr/local/bin
It also requires that you use MetaMask for development. MetaMast will inject web3, set with the RCP provider you've configured MetaMast to use, into the browser environment.
mkdir dapp
cd dapp
vtw
- Answer the prompts to setup the Vue app
cd app
npm install
npm run dev