To run this project locally, follow these steps.
- Clone the project locally, change into the directory, and install the dependencies:
git clone https://github.com/brtr/pixel-nft.git
cd pixel-nft
# install using NPM or Yarn
npm install
# or
yarn
- Compile contract
npx hardhat compile
- Deploy contract
npx hardhat run scripts/deploy.js
- Mint NFT
npx hardhat run scripts/mint.js
To deploy to Polygon test or main networks, update the configurations located in .env to use a private key and, optionally, deploy to a private RPC like Infura or Alchemy.