A dapp where users can send a NFT of Greeting Card to someone via email
- HNS decentralized domain name = https://namer005.hns.siasky.net/
- 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
- (Textile) https://github.com/ysongh/Greeting-NFT-Airdrop/blob/master/pages/uploadtemplate.js#L30
- (NFTPort) https://github.com/ysongh/Greeting-NFT-Airdrop/blob/master/pages/api/mintnft.js#L33
- (Covalent) https://github.com/ysongh/Greeting-NFT-Airdrop/blob/master/pages/api/getusernft/%5Bwalletaddress%5D.js#L8
- (Pocket Network) https://github.com/ysongh/Greeting-NFT-Airdrop/blob/master/truffle-config.js#L22
- 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)
- 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