/Greeting-NFT-Airdrop

(ETHOnline 2021) A dapp where users can send a NFT of Greeting Card to someone via email

Primary LanguageJavaScriptMIT LicenseMIT

Greeting NFT Airdrop

Add to Homescreen

A dapp where users can send a NFT of Greeting Card to someone via email

Features

  • User can use a template of the greeting card created by designers.
  • User can enter the email of the person who will claim the NFT of the greeting card.
  • The recipient can click on the link to go to the claim NFT page to mint the NFT of the greeting card for free on Polygon Mainnet and it will contain message as metadata
  • Designers can upload a greeting card which is store on textile/eth-storage

Technologies

  • Next.js
  • Ant Design
  • nodemailer
  • Textile (Used textile/eth-storage to store image)
  • NFTPort (Used the Easy mint with NFT Port API)
  • Polygon (Deploy the contract on Polygon Testnet for cheap gas fee)
  • Covalent (Used Covalent API to display the user 's greeting card NFTs data from their wallet)
  • Pocket Network (Used Pocket-powered RPC endpoint)

Running the dapp on local host

  • Clone or download this repository
  • Run npm i to install the dependencies
  • Install and open up Ganache and click "Quickstart"
  • Run truffle migrate to deploy the contract
  • Create a file called '.env' on the root folder and add the following code
YOUREMAIL=< Your gmail >
YOUREMAILPASSWORD=< Your gmail password >
MNEMONIC=< Your mnemonic >
POKT_NETWORK_KEY=< Your pocket network key >
NEXT_PUBLIC_NFTPORT_APIKEY=< Your NFT PORT API key >
NFTPORT_APIKEY=< Your NFT PORT API key >
COVALENT_APIKEY=< Your Covalent API key >
  • Run npm start to start the dapp