In it's own terminal / command line, run:
git clone https://github.com/PatrickAlphaC/hardhat-nft-marketplace-fcc
cd hardhat-nextjs-nft-marketplace-fcc
yarn
After installing dependencies, deploy your contracts to rinkeby:
yarn hardhat deploy --network rinkeby
cd ..
git clone https://github.com/PatrickAlphaC/graph-nft-marketplace-fcc
cd graph-nft-marketplace-fcc
yarn
Follow the instructions of the README of that repo.
Then, make a .env
file and place your temporary query URL into it as NEXT_PUBLIC_SUBGRAPH_URL
.
Make sure that:
- In your
networkMapping.json
you have an entry forNftMarketplace
on the rinkeby network. - You have a
NEXT_PUBLIC_SUBGRAPH_URL
in your.env
file.
yarn dev