Skip to content

Vue Truffle Box

This box comes with everything you need to start using smart contracts from a vue app.


  1. Install Truffle globally.

    yarn install -g truffle

  2. Download the box. This also takes care of installing the necessary dependencies.

    truffle unbox standup75/vue-box

  3. Run the development console.

    truffle develop

  4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.


If it's the first you attempt to compile and migrate a smart contract, I learned this here:

  1. Run the local server.

    // Serves the front-end on http://localhost:3000
    yarn serve

  2. 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

  3. To build the application for production, use the build command. A production build will be in the build_webpack folder.

    yarn build