Skip to content

NFTSTORE is a decentralized marketplace for minting, buying, and selling NFTs.

License

Notifications You must be signed in to change notification settings

priyanshuthakur2002/NFTSTORE

Repository files navigation

NFTSTORE

Overview

This is a decentralized NFT marketplace built using Hardhat and Next.js. The marketplace allows users to mint, buy, and sell NFTs securely on the blockchain.

Project Structure

  • /contracts # Smart contracts
  • /client # Next.js frontend
  • /ignition # Deployment and utility scripts
  • /test # Tests for smart contracts
  • hardhat.config.js

Features

  • Minting NFTs: Users can mint their own NFTs.
  • Buying/Selling NFTs: Users can list NFTs for sale and buy NFTs listed by others.
  • Blockchain Integration: Secure and transparent transactions using Ethereum.

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Hardhat
  • MetaMask or other Ethereum wallet for interacting with the app

Installation

  1. Clone the repository:

    git clone https://github.com/priyanshuthakur2002/NFTSTORE.git
    cd NFTSTORE
    
  2. Install dependencies:

    npm install
    cd client
    npm install
    
  3. Set up environment variables:

    Create a .env file in the root directory based on the .env.example file.
    Fill in the necessary environment variables (e.g., Alchemy API URL, Private Key).
    

Deployment

  1. Compile the contracts:

    npx hardhat compile
    
  2. Deploy the contracts:

    npx hardhat ignition deploy ./ignition/modules/Token.js --network sepolia
    
  3. Run the frontend:

    cd client
    npm run dev

Running Tests

  1. Run smart contract tests:
    npx hardhat test

Usage

  • Open the frontend in your browser at http://localhost:3000.
  • Connect your MetaMask wallet.
  • Mint, buy, and sell NFTs directly from the application.

License

License

MIT License

Releases

No releases published

Packages

No packages published