A high-fidelity visual design editor with AI-powered design generation using Google Gemini API.
Prerequisites: Node.js
-
Install dependencies:
npm install
-
Set your Gemini API key in
.env:VITE_GEMINI_API_KEY=your_api_key_here -
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser
-
Build the project:
npm run build
-
Create a new Cloudflare Pages project and connect your repository
-
Configure build settings:
- Build command:
npm run build - Build output directory:
dist - Framework preset:
Vite
- Build command:
-
Add environment variable in Cloudflare Pages dashboard:
- Variable name:
VITE_GEMINI_API_KEY - Value: Your Gemini API key
- Variable name:
-
Deploy
The app uses direct REST API calls to Google Gemini, which works perfectly in browser environments and Cloudflare Pages.
