Skip to main content

ERC-721 NFTix

Build a Practical NFT Ticketing Service with Solidity and React.

See Egghead.io

  • Backend: Scaffold ETH
  • Frontend: Nextjs

Source Code

Backend: Scaffold ETH

clone scaffold-eth monorepo

https://docs.scaffoldeth.io/scaffold-eth/

Mono repo so multiple terminals required

Start local eth blockchain instance

yarn chain

Start React App

yarn start

To deploy the default contract

yarn deploy

Navigate to localhost:3000/debug

Try setting a purpose, this will fail as the wallet has 0 ether.

Click on Grab funds from the faucet

Then set a purpose this will use gas

Added standard contracts from Zeppelin.

https://github.com/dreamineering/nftix-demo-ui/tree/final

Add base64 helper function

To view the encoded svg prefix url with

data:image/svg+xml;base64,

Create a base64 encoded json object and assigned it to the token URI

Set a Mint Price on Your NFT Smart Contract

Restrict Smart Contract Functions to a Specified Owner

Use Ownerable Zeppelin contract

Deploy a Smart Contract to the Rinkeby Testnet