This box comes with everything you need to start using smart contracts from a vue app.
-
Install Truffle globally.
yarn install -g truffle
-
Download the box. This also takes care of installing the necessary dependencies.
truffle unbox standup75/vue-box
-
Run the development console.
truffle develop
-
Compile and migrate the smart contracts. Note inside the development console we don't preface commands with
truffle
.compile migrate
If it's the first you attempt to compile and migrate a smart contract, I learned this here: https://medium.com/@mvmurthy/full-stack-hello-world-voting-ethereum-dapp-tutorial-part-2-30b3d335aa1f
-
Run the local server.
// Serves the front-end on http://localhost:3000 yarn serve
-
Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.
truffle test
-
To build the application for production, use the build command. A production build will be in the build_webpack folder.
yarn build