This project contains the COMPLETED files for Alchemy's NFT Minter tutorial, in which we teach you how to connect your smart contract to your React dApp project by building an NFT Minter using Metamask and Web3. It is best used as a reference.
To use this minter, you'll need to do the following:
- Run
npm install
to download thenode_modules
folder. - Download the dotenv package in your project directory by running
npm install dotenv --save
in your terminal - Create a
.env
file in the root directory thisnft-minter
by entering the following on your command line:vim .env
and then add your Alchemy API Key and Pinata Key and Secret. Altogether, your.env
file should look like so:
REACT_APP_PINATA_KEY = <pinata-key>
REACT_APP_PINATA_SECRET = <pinata-secret>
REACT_APP_ALCHEMY_KEY = https://eth-ropsten.alchemyapi.io/v2/<alchemy-key>
- Run
npm start
in your terminal to open the minter in your browser at http://localhost:3000/.