Skip to content

Devhunter416/nft-auction-marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT Auction Dapp with Nextjs, Solidity, and Hardhat

Creating an NFT

Description

In this dapp the users can upload their digital assets to mint a NFT,then they will be able to start an auction.

The dapp has 5 tabs: Home, Mint ,Collection,Auction,Profile.

In Home you can connect your wallet with Metamask.

In Mint you can create your NFT.

In Collection you can visualize all the nft created.

In Auction you can visualize the auctions created , place a bid and complete the auction.

In Profile you can visualize your NFTs and you will be able to start an auction.

Technology

Backend:

  • Hardhat
  • Solidity
  • Open Zeppelin

Frontend:

  • Metamask
  • Pinata
  • Next.js
  • Tailwind CSS
  • Daisy UI
  • Wagmi

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

Running the demo

To run the demo follow these steps:

  • Clone the project with the code below.

    # Make sure you have the above prerequisites installed already!
    git clone https://github.com/JohelCastilloV/nft-auction-marketplace.git
    

Backend

  1. Setup the backend

    cd backend # Navigate to the backend folder.
    npm install # Install all the dependencies
    npm run node # runing stand-alone hardhat network

    You wil see a list of accounts with its private keys, import some accounts in your metamask wallet, more infomation here.

  2. Deploy the contracts in local in a new terminal

    npm run deploy:localhost # deploy the contract in the hardhat network

Frontend

  1. Head to pinata and create an api key ( select option admin for testing purpose).

  2. Create .env.development file in the root of the frontend directory and enter the following details.

    NEXT_PUBLIC_PINATA_DOMAIN=https://gateway.pinata.cloud
    PINATA_API_KEY={API_KEY}
    PINATA_SECRET_API_KEY={SECTE_API_KEY}
  3. Open a new terminal and run the following commands.

    cd frontend # Navigate to the frontend folder.
    npm install # Install all the dependencies
    npm run dev # run the development server:
  4. Open http://localhost:3000 with your browser to see the result.

Questions about running the demo? Open an issue. I am here to help ✌️

Useful links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published