Before running any command, make sure to install dependencies:
$ yarnCompile the smart contracts with Hardhat:
$ npx hardhat compileDeploy the contracts to Hardhat Network:
$ npx hardhat run scripts/deploy-gallery.script.js Deploy the contracts to a specific network, such as the Rinkeby testnet:
$ npx hardhat run scripts/deploy-gallery.script.js --network rinkeby
You can mint NFTs by running
$ npx hardhat run scripts/mint-nft.script.js --network rinkeby