Install node packages, run
npm install
Before compiling the contract, create a
.env
file and add youralchemy http url
andprivate key
. Then run
npx hardhat compile
To deploy the contract, run
npx hardhat run scripts/deploy.js --network <network-name>
To run test
npx hardhat test