Table of Contents
Decentralized NFT Marketplace powered by the ethereum blockchain that uses IPFS to store data and create ERC721 tokens that can be made available to be bought and sold
- Clone the repo
git clone https://github.com/gumastro/nft_marketplace.git cd nft_marketplace
- Install NPM packages
npm install
- Boot up local development blockchain
npx hardhat node
- Connect development blockchain accounts to Metamask
- Copy private key of the addresses and import to Metamask
- Make sure your Metamask is connected to the right network (same as Hardhat test network)
- RPC URL
http://127.0.0.1:8545
- Chain ID
31337
- RPC URL
- Migrate Smart Contracts
npx hardhat run src/backend/scripts/deploy.js --network localhost
- Run tests
npx hardhat test
- Start NPM packages
npm run start
- Create and trade NFTs!
- Click on Create option
- Select a file to be the NFT image
- Give it a name and a description
- Set the price in ETH
- Click on Create & List NFT!
- Give permission to access your NFT on Metamask pop-up
- Confirm transaction on Metamask pop-up
- Enjoy your newly created NFT!
- Click on Home
- Choose a NFT of your liking
- Click on Buy for XXX ETH!
- Confirm transaction on Metamask pop-up
- Enjoy your NFT!
- You can also check all your listed NFTs (even the sold ones) on My listed items
- Or see all the NFTs you purchased on My purchases
Distributed under the MIT License. See LICENSE.txt
for more information.
Gustavo Tuani Mastrobuono - gumastro@usp.br