Setup an Ethereum Development Environment with Hardhat

In this first lesson we create a simple Vue application and install Hardhat for running an Ethereum node on your local development box.

Here's how to do it.  First open up your terminal of choice and cd into a directory where you keep your projects (for me this is the Dev directory in my home user directory).   Now install the Vue cli by running the following command:

npm install -g @vue/cli

Next create a Vue app by running the following command from your terminal:

vue create vue-dapp

Accept the defaults at each prompt then CD into the vue-dapp directory that was just created.

Next run the following command to install Hardhat into your project:

npm install --save-dev hardhat

Lastly, run the following command to create a Hardhat project inside of your Vue application:

npx hardhat

Accept all of the defaults and now you have a Web 2.0 project that will also include a web3 project that is capable of integrating with the Ethereum blockchain.
© 2022 Nimble Labs, LLC. All rights reserved.