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.
- /contracts # Smart contracts
- /client # Next.js frontend
- /ignition # Deployment and utility scripts
- /test # Tests for smart contracts
- hardhat.config.js
- 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.
- Node.js (v14 or higher)
- npm or yarn
- Hardhat
- MetaMask or other Ethereum wallet for interacting with the app
-
Clone the repository:
git clone https://github.com/priyanshuthakur2002/NFTSTORE.git cd NFTSTORE
-
Install dependencies:
npm install cd client npm install
-
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).
-
Compile the contracts:
npx hardhat compile
-
Deploy the contracts:
npx hardhat ignition deploy ./ignition/modules/Token.js --network sepolia
-
Run the frontend:
cd client npm run dev
- Run smart contract tests:
npx hardhat test
- Open the frontend in your browser at http://localhost:3000.
- Connect your MetaMask wallet.
- Mint, buy, and sell NFTs directly from the application.