-
Download And Install the following tools
-
Open Git Bash
-
Clone the git repository using
git clone https://github.com/Devankit2022/simple-storage-ethers.git
-
Open Terminal
-
Install yarn
-
Install required dependencies using
yarn init
-
Run
yarn compile
to compile the solidity code -
Connect to the local blockchain node using
ganache
andethers.js
following this documentation- You can also connect to node as a service provider or remote blockchain node using Alchemy
-
Run
node deploy.js
to deploy the contract -
contractFactory.deploy()
returns aPromise
, which is when resolved, you get acontract object
, using this, you can interact with the contract