Opulent NFTs is a full-stack platform that enables users to generate unique AI-powered NFT artwork, mint them on the blockchain, and manage their NFT collections. The project combines a modern React frontend, an Express backend with AI image generation and IPFS integration, and Ethereum smart contracts.
- AI-Powered NFT Generation: Create unique digital art using advanced AI models (Stable Diffusion via Replicate).
- Mint on Blockchain: Mint your generated art as NFTs on the Ethereum Sepolia testnet.
- IPFS Storage: Store images and metadata securely on IPFS via Pinata.
- Wallet Integration: Connect and manage your wallet with MetaMask.
- Personal NFT Gallery: View and manage your minted NFTs.
- Modern UI: Responsive, animated interface built with React, TailwindCSS, and Framer Motion.
Note: Only the frontend is currently deployed and available. The backend is suspended, so features requiring backend/API access may not function.
Live Frontend: [https://ai-nft-generator-one.vercel.app/]
AI-NFT-Generator/
│
├── frontend/ # React + Vite app (TypeScript, TailwindCSS)
├── backend/ # Express API server (Node.js)
├── contracts/ # Solidity smart contracts (Hardhat)
└── README.md
- Node.js (v18+ recommended)
- npm
- MetaMask browser extension
- Alchemy or Infura account for Sepolia RPC
- Pinata account for IPFS
- Replicate account for AI image generation
git clone https://github.com/JoshJoseph1234/AI-NFT-Generator.git
cd AI-NFT-Generatorcd contracts
npm install
cp .env.example .env
# Fill in PRIVATE_KEY, ALCHEMY_API_KEY, ETHERSCAN_API_KEY in .env
npx hardhat compile
npx hardhat run scripts/deploy.js --network sepoliacd ../backend
npm install
cp .env.example .env
# Fill in REPLICATE_API_TOKEN, PINATA_API_KEY, PINATA_SECRET_KEY, CONTRACT_ADDRESS, PRIVATE_KEY, SEPOLIA_RPC_URL
npm run devcd ../frontend
npm install
cp .env.example .env
# Fill in VITE_CONTRACT_ADDRESS, VITE_ALCHEMY_API_KEY, VITE_REPLICATE_API_TOKEN
npm run dev- Open http://localhost:5173 in your browser.
- Connect your MetaMask wallet (Sepolia testnet).
- Enter a prompt to generate AI art.
- Mint the generated image as an NFT.
- View your NFT collection.
Each package (frontend, backend, contracts) uses its own .env file. See .env.example in each folder for required variables.
-
Frontend
npm run dev– Start React appnpm run build– Build for productionnpm run test– Run frontend tests
-
Backend
npm run dev– Start Express server with nodemonnpm start– Start Express server
-
Contracts
npx hardhat compile– Compile contractsnpx hardhat test– Run contract testsnpx hardhat run scripts/deploy.js --network sepolia– Deploy to Sepolia
- Frontend: React, TypeScript, Vite, TailwindCSS, Framer Motion, ethers.js
- Backend: Node.js, Express, Replicate API, Pinata SDK, dotenv
- Smart Contracts: Solidity, Hardhat, OpenZeppelin
- Storage: IPFS (via Pinata)
- Blockchain: Ethereum Sepolia Testnet
- Replicate for AI image generation
- Pinata for IPFS storage
- OpenZeppelin for secure smart contract libraries
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
For support or questions, open an issue or contact JoshJoseph1234