-
🤖 AI Image Generation: Users enter a text prompt, and a backend service uses the Gemini AI API to generate a unique image.
-
☁️ Cloud Image Hosting: Generated images are automatically uploaded to Cloudinary for reliable, fast hosting before being minted.
-
⛓️ On-Chain Minting: Seamlessly mints the generated art as a standard NFT on the Sui Testnet.
-
🛍️ Batch Minting: Users can generate and mint multiple unique NFTs.
Follow these instructions to get a local copy up and running for development and testing.
-
Clone the Repository
git clone https://github.com/ChinmayNakwa/sui-workshop cd sui-workshop -
Install Dependencies This single command will install dependencies for both the root React app and the server.
npm install
-
Configure Environment Variables Create a
.envfile in the root of the project. This file holds all your secret keys and is ignored by Git.touch .env
Now, open the
.envfile and add the following, replacing the placeholder values with your actual keys:# --- Keys for Google AI --- GOOGLE_API_KEY="YOUR_GOOGLE_AI_API_KEY" # --- Keys for Cloudinary --- CLOUDINARY_CLOUD_NAME="YOUR_CLOUDINARY_CLOUD_NAME" CLOUDINARY_API_KEY="YOUR_CLOUDINARY_API_KEY" CLOUDINARY_API_SECRET="YOUR_CLOUDINARY_API_SECRET"
-
Run the Backend Server From the project root directory, run:
node server/server.js
You should see the confirmation message:
✅ AI Agent server listening at http://localhost:8000 -
Run the Frontend Application In a new terminal, also from the project root directory, run:
npm start
This will open the application in your browser at
http://localhost:3000.