Skip to content

GeniusMintAI is a dAPP that allows users to mint NFTs by providing a description that Stable Diffusion v2 converts into an image. The NFTs are minted on the Sepolia testnetand stored on IPFS using NFT.Storage.

Notifications You must be signed in to change notification settings

ThomasHeim11/GeniusMintAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeniusMintAI

ai-nft

About

GeniusMintAI is a decentralized application that allows users to mint NFTs by providing a description that Stable Diffusion v2 converts into an image. The NFTs are minted on the Sepolia testnet and stored on IPFS using NFT.Storage. The smart contract is deployed to the sepolia testnet.

Technology Stack & Tools

Requirements For Initial Setup

Setting Up

1. Clone/Download the Repository

2. Install Dependencies:

$ npm install

3. Setup .env file:

Before running any scripts, you'll want to create a .env file with the following values (see .env.example):

  • REACT_APP_HUGGING_FACE_API_KEY=""
  • REACT_APP_NFT_STORAGE_API_KEY=""

You'll need to create an account on Hugging Face, visit your profile settings, and create a read access token.

You'll also need to create an account on NFT.Storage, and create a new API key.

4. Run tests

$ npx hardhat test

5. Start Hardhat node

$ npx hardhat node

6. Run deployment script

In a separate terminal execute: $ npx hardhat run ./scripts/deploy.js --network localhost

7. Start frontend

$ npm run start

Deployment to a testnet or mainnet

  1. Setup environment variables

You'll want to set your SEPOLIA_RPC_URL and PRIVATE_KEY as environment variables. You can add them to a .env file, similar to what you see in .env.example.

  • PRIVATE_KEY: The private key of your account (like from metamask). NOTE: FOR DEVELOPMENT, PLEASE USE A KEY THAT DOESN'T HAVE ANY REAL FUNDS ASSOCIATED WITH IT.
  • SEPOLIA_RPC_URL: This is url of the goerli testnet node you're working with. You can get setup with one for free from Alchemy

Optionally, add your ETHERSCAN_API_KEY if you want to verify your contract on Etherscan.

  1. Get testnet ETH

Head over to faucets.chain.link and get some tesnet ETH. You should see the ETH show up in your metamask.

  1. Deploy

npx hardhat run scripts/deploy.js --network sepolia

Thank you!

If you appreciated this, feel free to follow !

Thomas HeimLinkedin

About

GeniusMintAI is a dAPP that allows users to mint NFTs by providing a description that Stable Diffusion v2 converts into an image. The NFTs are minted on the Sepolia testnetand stored on IPFS using NFT.Storage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published