Skip to content

An Ethereum based NFT marketplace i developed for art published by my fellow peers @InSat

Notifications You must be signed in to change notification settings

medazizammari/ethereum-NFT

Repository files navigation

NFT-Market

NFT Marketplace built on top of Ethereum to permit my fellow engineering students @INSAT publish and sell their art

Demo

This demo demonstrates how:

  • User1 mints an NFT
  • User1 pays the listing fee to have his NFT listed on the marketplace
  • User1 can see his created NFTs
  • User2 can see available NFTs
  • User2 buys an NFTs and make sure ownership is transfered
  • User1 and User2 can both see available NFTs and owned NFTs

Video Demo

Stack used

Run locally

  1. install dependencies
npm install
  1. copy your private key to a .secret file : this is needed for when to deploy your smart contract on other network than localhost.
echo "<your_private_key>" > .secret

PS : obviously this not the best way to do this bcause your private key will be saved in the shell history, but we just test locally.

  1. run a local ethereum node with hardhat
npx hardat node
  1. run tests (will also compile smart contracts)
npx hardhat test
  1. create a new config.js file to hold the smart contracts addresses when you deploy
cp config.example.js config.js
  1. deploy to local node
npx hardhat run scripts/deploy.js --network localhost
  1. run the next js server
npm run dev

Known Issues

  1. When creating the first transaction on the blockchain
Nonce too high. Expected nonce to be 0 but got 2. Note that transactions can't be queued when automining.

solution: this happens because of old history saved in the accocunt from previous tests => open advanced options in Metamask and reset the account.

About

An Ethereum based NFT marketplace i developed for art published by my fellow peers @InSat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published