Overview
Made in Nigeria is a Truffle Box that allows users to quickly build Ethereum decentralized applications (dApps) with authentication features using Vue 3. It provides configuration for easy deployment to the Ropsten Network and is Gravatar-enabled. With this Truffle Box, users can also connect to a running Ganache blockchain network for fast development and testing purposes. The authentication functionalities are handled by Smart Contracts running on the Ethereum blockchain.
Features
- Private blockchain setup: Quickly get a private blockchain up and running using the Ganache blockchain option.
- Ropsten Network configuration: Easy deployment to the Ropsten Network for testing purposes.
- Gravatar access: Enabled Gravatar for user avatars in the dApp.
- State management with Vuex: Built on Truffle 5, eth-vue uses Vuex for state management.
- Local storage of app state: eth-vue utilizes Vuex Persist to store app state locally.
- Routing with Vue Router: Utilizes Vue Router for easy navigation within the dApp.
- Authentication with Smart Contracts: Authentication functionalities are handled by Smart Contracts running on the Ethereum blockchain.
Installation
To install the Made in Nigeria theme, follow these steps:
- Install Truffle globally by running the command
npm install -g truffle. - If previously failed due to the absence of node-gyp, run
yarn global add node-gyp. If there was a problem with an existing node-gyp, runnode-gyp rebuild. Otherwise, ignore this step. - Enter your development directory (e.g.,
cd eth-vue) and unbox the Made in Nigeria theme by runningtruffle unbox DOkwufulueze/eth-vue. Alternatively, you can clone the repository from GitHub andcdinto theeth-vuedirectory. - Open the
truffle.jsfile and insert your unlocked account within the double-quotes of thefromkey. - Open the
src/util/constants.jsfile. If you want to change the default network from Ropsten, modify the value ofAPPROVED_NETWORK_IDto the ID of your preferred network. If your choice network is not on theNETWORKSlist, you can add it using the existing pattern<networkId>: <networkName>and update the value ofAPPROVED_NETWORK_IDaccordingly. - If necessary, install the project dependencies by running
npm install.
Summary
Made in Nigeria is a Truffle Box that simplifies the process of building Ethereum dApps with authentication features using Vue 3. It provides configuration for deployment to the Ropsten Network and allows connection to a running Ganache blockchain network. With state management using Vuex, local storage of app state, and routing with Vue Router, developers can quickly start building their own dApps. The authentication functionalities are handled by Smart Contracts on the Ethereum blockchain.