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/lolaji/minting-dapp.git
cd minting-dapp
# install using NPM or Yarn
npm install
# or
yarn
- Create a .env.local file in the root directory, then copy the content of the .env.local.example file into it:
cp .env.local.example .env.local
- Put your smart contract address, like this:
NEXT_PUBLIC_CONTRACT_ADDRESS=0xcc6fC7Fe7db7d367cC96973d2304aAcBD8F974d2
-
Save the file
-
Start the app
npm run dev
- Open your browser and point to http://localhost:3000
-
Make sure you have switch to polygon mainet in your metamask wallet
-
Input commer seperated of addresses in the form
-
Then click mint.