Skip to content

Create unique NFTs from text descriptions with AI image generation and list them on OpenSea marketplace

Notifications You must be signed in to change notification settings

aaronjan98/Nifty-Minter-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nifty Minter Dapp - Back End

This is the back end to Nifty Minter, a dapp that uses AI to generate images for your NFTs and then goes ahead and mints it on the Goerli testnet.

Resources

Install

npm install

Usage

  1. Run blockchain node with ganache
npm run ganache
  1. Add the network to MetaMask and import the ganache accounts
  • you can change the port and chain ID in the package.json scripts, but by default the RPC URL is http:https://127.0.0.1:9002, the chain ID is 1338, and the currency symbol is ETH.
  1. Deploy NFT contract to local blockchain
  • If the front end and back end repos are adjacent to each other, then the NFT ABI will automatically be written to the front end. Otherwise you'll have to change the file path in common/tokens.js.

    npx hardhat run scripts/deploy.js --network ganache
  1. Then you'll need to copy the outputted NFT address from the previous command and update the NFT address in the front end file src/config.json
  • Optionally, you can view the ganache/hardhat accounts' Ether balances with this command

    npx hardhat run scripts/getBalances.js --network ganache
  1. See the front end for starting the web server

Deployment to public Network

  1. Configure API keys in your .env
PRIVATE_KEYS="{private key for the account your deploying with}"
ALCHEMY_API_KEY="{get key by creating a project with Alchemy}"
ETHERSCAN_API_KEY="{do the same with etherscan}"
  1. Deploy to Goerli or whichever network
npx hardhat run scripts/deploy.js --network goerli
  1. Verify Contract
npx hardhat verify {copy contract address from previous command} '{Name of your dapp}' '{Symbol}' '{Fee cost in wei}' --network goerli

About

Create unique NFTs from text descriptions with AI image generation and list them on OpenSea marketplace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages