Skip to content

olestole/NFT-Marketplace

Repository files navigation

NFT Marketplace

A marketplace for NFTs. The contracts are deployed to the Mumbai Testnet.

Screenshot of dApp

Getting Started

Prerequisites

  • Run a browser with a MetaMask-wallet
    • You need a wallet to connect to a Web3 application (dApp)
  • Set up MetaMask to use the Mumbai test network

Installation

$ npm i

To run the project locally: Create a .env.local-file and add the following keys:

NB: Don't use your primary MetaMask wallet when testing locally. Create a new test wallet

  • PROJECTID=< INFURA PROJECT ID >_
  • METAMASKPRIVATE_KEY=< METAMASK TEST-WALLET PRIVATE KEY >_

Usage

Run the project locally with the following commands:

$ npx hardhat node
$ npx scripts/deploy.js --network localhost
$ npm run dev

By running the node locally you'll be provided with multiple test-accounts with funds that can be used to test the dApp. Import the account to MetaMask and use the imported account to interact with the dApp.

Assuming you have a MetaMask wallet in your browser, you should be able to interact with the dApp.