I've been developer for over 10 years now. I've been lucky enough to become an Apache committer and PPMC, speak at Google, write a book for Manning Publications, and a few other things. As the job market is not great and people are struggling to find good work, I'm starting to see business opportunities in blockchain, more specifically - I see some great opportunities to help others build their own businesses. I'd like to share some technical things I've learned in the last few weeks.
I’ve been working through understanding the pros and cons of distributed applications (DApps). There are many tools out there for you to choose from to get started in building them. In this article I’m giving you an opinionated approach to building, deploying and interacting with smart contracts locally. No web based tools, only command line.
Prerequisites:
I'm using Node 18.17, however, this should work with a later version of node.
Install node 18.17, if you don't have it already
$ nvm install 18.17
First, create your folder and cd into it
$ mkdir hello-world && cd hello-world
Initialize the project
$ npm init -y
Install Hardhat locally in our project
$ npm install --save-dev hardhat
Sidenote about npx
npx is used to run executables installed locally in your project. It’s recommended to install Hardhat locally in each project so that you can control the version on a project by project basis.
Setting up a Project
$ npx hardhat init
Need to install the following packages:
[email protected]
Ok to proceed? (y)
You should see the option show up. Select “ Create an empty hardhat.config.js”
SOCIAL SHARE CARD GENERATOR