nqueuche / lo-core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drizzle Vue Box

This starter box comes with the basics to create a drizzle connected Vue dapp. It leverages drizzle's Vue plugin

Check out this sweet 3 part video series Create a Vue Dapp on Ethereum with the Drizzle Vue plugin by Julien Klepatch: Part I, Part II and Part III

Install

  1. First ensure you've navigated to an empty folder as Truffle will download boxes in the current working directory.

    $ mkdir my-sweet-vue-dapp && cd $_
    
  2. Execute the unbox command and watch truffle orchestrate devops magic.

    $ truffle unbox vue-box
    

Test

  1. Test the box. You'll need a browser and two terminal instances: one for truffle's develop console and one for Vue's dev server.

    a. Truffle terminal.

    • Start the development console
    $ truffle develop
    
    • Migrate the sample contracts
    truffle(develop)> migrate
    
    • wait for the migration to complete before proceeding

    b. Start the Vue dev server, which is located in the vapp folder

    $ cd vapp
    $ npm run serve
    

    c. Browser: You can test with or without metamask.

    • without MetaMask
    • with MetaMask

About

License:MIT License


Languages

Language:Vue 45.0%Language:Solidity 37.9%Language:JavaScript 13.5%Language:HTML 3.5%