Santhosh Reddy
Santhosh Reddy


Santhosh Reddy

Nftify - An NFT Minting Dapp

Nftify - An NFT Minting Dapp

Santhosh Reddy's photo
Santhosh Reddy
Β·Mar 10, 2022Β·

2 min read

Play this article

Table of contents

  • Intro... πŸ™‹β€β™‚οΈ
  • Tech Stack... πŸ§‘β€πŸ’»
  • ERC721 Contract... πŸ“‹
  • Final Thoughts... πŸ™‚

πŸ‘‹ Hello world! This is Santhosh Reddy, a 17 year old developer and a curious web3 learner. I keep building projects on blockchain like Dapps and smart contracts which reflects the real world use cases.

Intro... πŸ™‹β€β™‚οΈ

Back again with a new web3 project, NFTify - A simple NFT minting dapp. I completed working with IPFS data storage, commerce related smart contracts in UMart & Web3Drive as well as DAO like smart contracts in Smart City Government & Car Insurance Company, but never had an experience in working with ERC721 and ERC20 contracts which are very important in web3 development.

So, I decided to complete two projects on ERC20 and ERC721. In a span of two days I completed building an NFT minter - NFTify and deployed on netlift.

Visit : NFTify

Code : Github Repo

Tech Stack... πŸ§‘β€πŸ’»

  1. ReactJS (fronted UI)

  2. Web3JS (interact with smart contract)

  3. Solidity (create the erc721 smart contract)

ERC721 Contract... πŸ“‹

I created the erc721 contract using OpenZeppelin and deployed to the Rinkeby Testnet through Remix IDE.

Here is the code of the contracts.

// SPDX-License-Identifier: MIT
pragma solidity ^ 0.8.0;

import "";
import "";
import ""; 

contract NFTify is ERC721URIStorage {

  using Counters for Counters.Counter;
  Counters.Counter private tokenIds; 

  constructor() ERC721("NFTify", "NFY") { }

  function mintNFT(string memory tokenURI) public returns (uint) { 

    uint256 newItemId = tokenIds.current();

    _mint(msg.sender, newItemId);
    _setTokenURI(newItemId, tokenURI);

    return newItemId;


  function currentID() public view returns (uint) {
    return tokenIds.current();


Here I imported counters.sol to safely increment the value of the tokenIds, ERC721.sol to mint the NFT and ERC721URIStorage.sol to store the url of the metadata of the NFT in the contract's storage.

Final Thoughts... πŸ™‚

Reached the end... Finally, I completed my 1st target project and should start working on a ERC20 project.

Taking a leave for now... πŸ‘‹ Bye!

Share this