All Projects → DOkwufulueze → Eth Vue

DOkwufulueze / Eth Vue

Licence: gpl-3.0
Featured in Awesome Vue [https://github.com/vuejs/awesome-vue], a curated list maintained by vuejs of awesome things related to the Vue.js framework, and Awesome List [https://awesomelists.net/150-Vue.js/3863-Open+Source/18749-DOkwufulueze-eth-vue], this Truffle Box provides everything you need to quickly build Ethereum dApps that have authentication features with vue, including configuration for easy deployment to the Ropsten Network. It's also Gravatar-enabled. Connecting to a running Ganache blockchain network from Truffle is also possible -- for fast development and testing purposes. Built on Truffle 5 and Vue 3, eth-vue uses vuex for state management, vuex-persist for local storage of app state, and vue-router for routing. Authentication functionalities are handled by Smart Contracts running on the Ethereum blockchain.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Eth Vue

Angular Truffle Starter Dapp
Angular CLI + Truffle Starter Dapp; write, compile & deploy smart contracts on Ethereum blockchains
Stars: ✭ 174 (+1.75%)
Mutual labels:  blockchain, ethereum, dapp, truffle, ethereum-contract, ethereum-dapp
Disperse
React/Redux dApp (decentralized app) boilerplate using Ethereum's blockchain
Stars: ✭ 36 (-78.95%)
Mutual labels:  blockchain, ethereum, dapp, truffle, ethereum-dapp, boilerplate
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (+124.56%)
Mutual labels:  blockchain, ethereum, web3, truffle, ethereum-contract, ethereum-dapp
Trust Wallet Ios
📱 Trust - Ethereum Wallet and Web3 DApp Browser for iOS
Stars: ✭ 1,228 (+618.13%)
Mutual labels:  blockchain, ethereum, dapp, web3, ethereum-contract, ethereum-dapp
Eth Crypto
Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity
Stars: ✭ 420 (+145.61%)
Mutual labels:  blockchain, ethereum, dapp, web3, truffle
Trace
Supply chain transparency platform proof-of-concept based on the Ethereum blockchain ✍️
Stars: ✭ 52 (-69.59%)
Mutual labels:  blockchain, ethereum, dapp, web3, truffle
Ethlist
The Comprehensive Ethereum Reading List
Stars: ✭ 3,576 (+1991.23%)
Mutual labels:  blockchain, ethereum, ethereum-contract, ethereum-dapp
Augur
Augur - Prediction Market Protocol and Client
Stars: ✭ 294 (+71.93%)
Mutual labels:  ethereum, dapp, ethereum-contract, ethereum-dapp
Eattheblocks
Source code for Eat The Blocks, a screencast for Ethereum Dapp Developers
Stars: ✭ 431 (+152.05%)
Mutual labels:  blockchain, ethereum, web3, truffle
Unstoppable Wallet Android
A secure and decentralized Bitcoin and other cryptocurrency wallet for Android phones. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 165 (-3.51%)
Mutual labels:  blockchain, ethereum, dapp, ethereum-dapp
vue-web3
🐙 Web3 blockchain bindings for Vue.js (inspired by Vuefire and Drizzle)
Stars: ✭ 63 (-63.16%)
Mutual labels:  dapp, ethereum-contract, web3, ethereum-dapp
Typechain
🔌 TypeScript bindings for Ethereum smart contracts
Stars: ✭ 769 (+349.71%)
Mutual labels:  blockchain, ethereum, web3, truffle
Blockchainbooks.github.io
Blockchain Books
Stars: ✭ 139 (-18.71%)
Mutual labels:  blockchain, ethereum, web3, ethereum-dapp
Ethvtx
🌀🛰 ethereum-ready & framework-agnostic redux store configuration
Stars: ✭ 125 (-26.9%)
Mutual labels:  blockchain, ethereum, dapp, web3
Love Ethereum
区块链学习
Stars: ✭ 323 (+88.89%)
Mutual labels:  blockchain, ethereum, dapp, truffle
Eth.social
An Ethereum dApp for posting social events.
Stars: ✭ 17 (-90.06%)
Mutual labels:  ethereum, dapp, web3, truffle
Web Sdk
Portis Web SDK
Stars: ✭ 65 (-61.99%)
Mutual labels:  blockchain, ethereum, dapp, web3
Marketprotocol
Ethereum based derivatives trading protocol creating digital tokens for any asset
Stars: ✭ 78 (-54.39%)
Mutual labels:  blockchain, ethereum, web3, truffle
Golden Wallet React Native
Golden - Best Wallet Ever
Stars: ✭ 201 (+17.54%)
Mutual labels:  blockchain, dapp, web3, ethereum-dapp
Starter Kit
An OpenZeppelin starter kit containing React, OpenZeppelin SDK & OpenZeppelin Contracts.
Stars: ✭ 101 (-40.94%)
Mutual labels:  ethereum, dapp, web3, truffle

Made in Nigeria

eth-vue Truffle Box: With Ganache Blockchain Option, Ropsten Network Configuration, and Gravatar access



eth-vue

This Truffle Box provides everything you need to quickly build Ethereum dApps that have authentication features with Vue 3, including configuration for easy deployment to the Ropsten Network. It's also Gravatar-enabled. Connecting to a running Ganache blockchain network from Truffle is also possible -- for fast development and testing purposes.
Built on Truffle 5, eth-vue uses vuex for state management, vuex-persist for local storage of app state, and vue-router for routing. Authentication functionalities are handled by Smart Contracts running on the Ethereum blockchain.

With deployment configuration for the Ropsten Network, deployment to the remote test network doesn't have to be a pain anymore. It's now as simple as truffle migrate --network ropsten

If you have a running Ganache blockchain network, configuring with eth-vue will connect you immediately to the private blockchain. Visit the Ganache page for installation and startup instructions, install Ganache, and eth-vue will connect accordingly.

Simply unbox and start building your own dApp.

Installation

  • Install Truffle

      yarn global add truffle
    

NOTE: If unboxing DOkwufulueze/eth-vue had failed previously due to absence of node-gyp, simply run yarn global add node-gyp. Or if it failed due to a problem with an existing node-gyp, run node-gyp rebuild. Else ignore this note and move on to the next instruction

  • Enter your development directory [eg. cd into a newly created eth-vue directory] and unbox DOkwufulueze/eth-vue

      truffle unbox DOkwufulueze/eth-vue
    

    Or clone this repository from GitHub and cd into the eth-vue directory:

      git clone https://github.com/DOkwufulueze/eth-vue.git
    

  • Configure your environment
    • Open the truffle.js file. You'll find the following:

      ...
      module.exports = {
        ...
        networks: {
          development: {
            host: "localhost",
            port: 8545, // This is the conventional port. If you're using the Ganache Blockchain, change port value to the Ganache default port 7545. If you're using Truffle develop network, change port value to 9545
            network_id: "*", // Match any network id. You may need to replace * with your network Id
            from: "", // Add your unlocked account within the double quotes
            gas: 4444444
          }
        }
      };
      

      Insert your unlocked account within the double-quotes of the from key

    • Open the src/util/constants.js file. You'll find the following:

      export const NETWORKS = {
        '1': 'Main Net',
        '2': 'Deprecated Morden test network',
        '3': 'Ropsten test network',
        '4': 'Rinkeby test network',
        '42': 'Kovan test network',
        '4447': 'Truffle Develop Network',
        '5777': 'Ganache Blockchain',
        '666': 'Daniel Private Blockchain' // This is a test private blockchain. You can change it to your own private blockchain if you have one.
      };
      
      export const APPROVED_NETWORK_ID = "3"; // Default is Ropsten. Set as you choose
      ...
      

      The default network above is the Ropsten network [APPROVED_NETWORK_ID = '3'], but you can change this, as Ropsten was chosen for testing purpose only.
      If your choice network is on the list of NETWORKS but is not Ropsten, then change the value of APPROVED_NETWORK_ID to the ID of your choice network. For example, if one is to use the private Blockchain above ['666': 'Daniel Private Blockchain'], then APPROVED_NETWORK_ID would be '666'.
      But if your choice network is not on the NETWORKS list, simply add your network using the existing pattern [<networkId>: <networkName>], and change the value of APPROVED_NETWORK_ID to the ID of your choice network.
      If you're using Ganache, please remember to point your Ethereum provider [Metamask, for example] to a Custom RPC running on port 7545.
      For Truffle develop network, point your Ethereum provider [Metamask, for example] to a Custom RPC running on port 9545.


  • Install dependencies if necessary.

    NOTE: If you unboxed this boilerplate from Truffle [truffle unbox DOkwufulueze/eth-vue], then running yarn install is not necessary since unboxing installs dependencies by default. But if you cloned this boilerplate from GitHub [git clone https://github.com/DOkwufulueze/eth-vue.git], please run yarn install as stated below
      yarn install
    

Compilation and Migration

To deploy the contracts, you can either compile and migrate to your custom network as configured in the truffle.js file or you could use the test network and test addresses that truffle 4 provides. Find details for both deployment processes below.

Compile and Migrate to your custom network as configured in truffle.js. [For the Ganache Blockchain, it runs on port 7545 and doesn't conflict with any conventional port. So edit your truffle.js file appropriately before deploying]

  • Compile the Contracts [remember to add the --network ropsten option if you didn't change the APPROVED_NETWORK_ID in src/util/constants.js from the default 3 to another id]

      truffle compile
    

  • Deploy the compiled contracts [remember to add the --network ropsten option if you didn't change the APPROVED_NETWORK_ID in src/util/constants.js from the default 3 to another id]

      truffle migrate
    

Compile and Migrate to the Ropsten test network [this is very straightforward]

  • Compile the Contracts on Ropsten

      truffle compile --network ropsten
    

  • Deploy the compiled Contracts to Ropsten

      truffle migrate --network ropsten
    

Compile and Migrate using the truffle develop environment


The default port for truffle develop is 9545, so it doesn't conflict with any conventional port. Edit truffle.js appropriately.

  • Enter the truffle develop environment

      truffle develop
    

  • Compile the Contracts

      compile
    

  • Deploy the compiled contracts

      migrate
    

Launch the dApp

  • Start the server

      yarn start
    

And that's it, you're DONE!



Please send bug issues you may encounter to Issues



Copyleft

Copyleft 2017 Daniel Okwufulueze

Licence

This dApp is distributed under the GNU GPL-3.0 licence.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].