Before running any command, make sure to install dependencies:
$ yarn
Compile the smart contracts with Hardhat:
$ npx hardhat compile
Deploy 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