# 智绘链:AI驱动的NFT创作 **Repository Path**: remember-yang/blockchain ## Basic Information - **Project Name**: 智绘链:AI驱动的NFT创作 - **Description**: 区块链+比赛作品 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-09 - **Last Updated**: 2024-09-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AI NFT Generator ## Technology Stack & Tools - Solidity (Writing Smart Contracts & Tests) - Javascript (React & Testing) - [Hardhat](https://hardhat.org/) (Development Framework) - [Ethers.js](https://docs.ethers.io/v5/) (Blockchain Interaction) - [React.js](https://reactjs.org/) (Frontend Framework) - [NFT.Storage](https://nft.storage/) (Connection to IPFS) - [Hugging Face](https://huggingface.co/) (AI Models) ## Requirements For Initial Setup - Install [NodeJS](https://nodejs.org/en/) ## 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](https://huggingface.co/), visit your profile settings, and create a read access token. You'll also need to create an account on [NFT.Storage](https://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`