This project demonstrates a basic Hardhat use case.
It comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts.
Clone, open in the terminal and run:
npm i
cp .env.sample .env
npx hardhat test
In a terminal, run:
npx hardhat node
In another terminal run:
npx hardhat run scripts/deploy.js --network localhost