In it's own terminal / command line, run:
git clone https://github.com/chidubesteve/Nextjs-NFT-Marketplace
cd Nextjs-NFT-Marketplace
npm i
After installing dependencies, deploy your contracts to sepolia:
npx hardhat deploy --network sepolia
cd ..
git clone https://github.com/chidubesteve/Nextjs-NFT-Marketplace
cd graph-nft-marketplace-fcc
npm i
Follow the instructions of the README of that repo.
- You can check the repo of the smart contractscode
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 sepolia network. - You have a
NEXT_PUBLIC_SUBGRAPH_URL
in your.env
file.
npm run dev