Skip to content

Ethereum Marketplace built with Truffle for interacting with smart contracts and deploying them. Plus, Moralis for interacting with web3 on the react dapp. This project can be cloned and be used as a base to create an nft-marketplace or any DAPP with EVM-compatible blockchain such as Polygon, Avalanche, Binance Smart Chain and other such chains

License

Notifications You must be signed in to change notification settings

Christos16/nft-marketplace

Repository files navigation

ethereum-NFT-Marketplace

This project work on any EVM-compatible blockchain such as Polygon, Avalanche, Binance Smart Chain and other such chains.

Preview

✏ 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

About

Ethereum Marketplace built with Truffle for interacting with smart contracts and deploying them. Plus, Moralis for interacting with web3 on the react dapp. This project can be cloned and be used as a base to create an nft-marketplace or any DAPP with EVM-compatible blockchain such as Polygon, Avalanche, Binance Smart Chain and other such chains

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published