Skip to content

KryptoBirdz is a NFT Marketplace where you can mint and sell the NFT.

Notifications You must be signed in to change notification settings

jitendragangwar123/KryptoBirdz-NFT-Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nft-marketplace-starter-kit

Please run npm install on the terminal to download the appropriate packages already defined to the package.json file. Make sure you are in the source file.

**Please ensure you have downloaded the following additionally **

  1. Ganache :- It’s a personal Blockchain.
git clone https://github.com/truffle suits/ganache.git
cd ganache
npm install //to run the ganache blockchain
ganache-cli // to start the ganache blockchain
  1. Truffle (global installation) :- It’s a developing and testing tool.
truffle init   // create the truffle.config file
truffle compile //create a json file for all the contracts
truffle migrate  // to deploy the contracts 
truffle migrate --reset // to reset and deploy again the contracts
truffle console //start the truffle console
KryptoB = awit KryptoBirdz.deployed() // deploy the amart contract and store it in the variable
KryptoB.name() //return the name of the token
KryptoB.symbol() //return the symbol of the token
KryptoB.mint('https...1') //Minting  the NFT
KryptoB.balanceOf("0xc127CAb0B5321C4aC1C6220f3eCF26787B9Bcf0e") //how many       tokens does the owner have?
KryptoB.ownerOf(1) //who is the owner of NFT
Krypto.totalSupply() //return to total count of tokens
KryptoB.tokenOfOwnerByIndex('0xc127cab0b5321c4ac1c6220f3ecf26787b9bcf0e',1)
KryptoB.tokenByIndex(1) //return count of tokens by using index
  1. To verify the smart contract on Etherscan :-
truffle run verify contractName@deployedAddress --network goerli
  1. Metamask.io (hooked up on the browser)

To run the development server on a local host scripts: npm run start

For truffle tests and console please consult the official Truffle documentation for updates.