• Stars
    star
    852
  • Rank 53,494 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 3 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ethereum-boilerplate-NFT-Marketplace

This Project is a fork of Ethereum Boilerplate and demostrates how you can build your own NFT Marketplace. This project of course work on any EVM-compatible blockchain such as Polygon, Avalanche, Binance Smart Chain and other such chains.

Preview

⭐️ Star us

If this boilerplate helps you build Ethereum dapps faster - please star this project, every star makes us very happy!

πŸš€ Quick Start

πŸ“„ Clone or fork ethereum-nft-marketplace-boilerplate:

git clone https://github.com/ethereum-boilerplate/ethereum-nft-marketplace-boilerplate.git

πŸ’Ώ Install all dependencies:

cd ethereum-nft-marketplace-boilerplate
yarn install 

✏ Rename .env.example to .env in the main folder and provide your appId and serverUrl from Moralis (How to start Moralis Server) Example:

REACT_APP_MORALIS_APPLICATION_ID = xxxxxxxxxxxx
REACT_APP_MORALIS_SERVER_URL = https://xxxxxx.grandmoralis.com:2053/server

πŸ”Ž Locate the MoralisDappProvider in src/providers/MoralisDappProvider/MoralisDappProvider.js and paste the deployed marketplace smart contract address and ABI

const [contractABI, setContractABI] = useState();
const [marketAddress, setMarketAddress] = useState();

πŸ”ƒ Sync the MarketItemCreated event /src/contracts/marketplaceBoilerplate.sol contract with your Moralis Server, making the tableName MarketItems

event MarketItemCreated (
  uint indexed itemId,
  address indexed nftContract,
  uint256 indexed tokenId,
  address seller,
  address owner,
  uint256 price,
  bool sold
);

πŸš΄β€β™‚οΈ Run your App:

yarn start