LogoLogo
  • Gather Fundamentals
    • INTRODUCTION TO GATHER
    • GTH
    • TOKEN STANDARDS
      • CREATE YOUR FIRST GRC-20 TOKEN
      • CREATE YOUR FIRST GRC-721 TOKEN
    • NETWORKS
    • CONSENSUS
      • PROOF-OF-WORK (POW) & GTHASH
    • BLOCK EXPLORER
    • BRIDGE
    • MULTI-SEND
  • GATHER DEVELOPEMENT STACK
    • WALLET SETUPS
      • GATHER WEB WALLET
      • METAMASK MAINNET CONFIGURATION
      • METAMASK TESTNET CONFIGURATION
    • SMART CONTRACTS & DAPPs
      • DEPLOYING YOUR FIRST SMART CONTRACT
      • HARDHAT CONFIGURATION AND DEPLOYMENT
      • TRUFFLE CONFIGURATION AND DEPLOYMENT
      • BUILDING AN ESCROW SMART CONTRACT
      • BUILDING AN E-COMMERCE SHOPPING SMART CONTRACT
      • DEPLOYING NFT MARKETPLACE DAPP
      • DEPLOYING DE-FI BANK DAPP
      • DEPLOYING DECENTRALIZED TWITTER
    • TESTNET FAUCET
    • COVALENT
    • THIRDWEB
    • VERIFY SMART CONTRACTS
      • VERIFY CONTRACTS ON SOURCIFY VIA REMIX IDE
      • VERIFY CONTRACTS USING HARDHAT
Powered by GitBook
On this page
  • Prerequisites:
  • STEP - 1:
  • STEP - 2:
  • STEP - 3:
  • STEP - 4:
  • STEP - 5:
  • STEP - 6:
  • VIDEO
  1. GATHER DEVELOPEMENT STACK
  2. SMART CONTRACTS & DAPPs

DEPLOYING NFT MARKETPLACE DAPP

This is a guide for deploying an NFT Marketplace dapp on the gather network testnet.

Prerequisites:

  1. Metamask or any web3 wallet configured with Gather testnet.

  2. Testnet GTHs.

  3. Install NodeJS, should work with any node version below 16.5.0.

  4. Install Hardhat.

STEP - 1:

Clone/Download the repository on your local machine.

git clone https://github.com/GatherNetwork/NFT-Marketplace.git

STEP - 2:

Install dependencies.

cd nft_marketplace
npm install

STEP - 3:

Create a .env file in the root directory. Copy the content from existing .env.example into .env file.

Update your Gather network account private key in the .env file.

STEP - 4:

Migrate Smart Contracts to Gather testnet. At this step, we are deploying our smart contract on the Gather testnet. You can also deploy your contract on other Ethereum-based test networks, but for that network, configurations need to be changed.

npx hardhat run src/backend/scripts/deploy.js --network gather_testnet

STEP - 5:

As the smart contracts are deployed on the Gather testnet, now we can start our dapp frontend and interact with the deployed smart contract.

npm run start

STEP - 6:

Now you can connect your MetaMask wallet account with dapp. Click on the Connect Wallet button on the top right. Once you connect your MetaMask account you can see your account address in place of Connect Wallet button and then start using the marketplace.

Your dapp is successfully launched. In the home section you can see NFTs available on the marketplace to buy, currently no NFTs are listed. You can create an NFT in the create section. You can check your listed NFTs and your purchases as well.

VIDEO

PreviousBUILDING AN E-COMMERCE SHOPPING SMART CONTRACTNextDEPLOYING DE-FI BANK DAPP

Last updated 3 years ago