Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

PatrickAlphaC/nextjs-nft-marketplace-thegraph-fcc

Repository files navigation

Important update!

!Update! As of May 31, 2024. We are no longer supporting this repo/tutorial. You can still follow the course, but it's a little stale. Please visit Cyfrin Updraft and stay tuned for a new full-stack course slated for 2024!

NextJS NFT Marketplace with TheGraph

This repo has been updated for Sepolia over Goerli.

1. Git clone the contracts repo

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

2. Deploy to sepolia

After installing dependencies, deploy your contracts to sepolia:

yarn hardhat deploy --network sepolia

3. Deploy your subgraph

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.

4. Start your UI

Make sure that:

  • In your networkMapping.json you have an entry for NftMarketplace on the sepolia network.
  • You have a NEXT_PUBLIC_SUBGRAPH_URL in your .env file.
yarn dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 10

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy