Learn how to download, configure, and deploy your AI Studio application to your Ecenica web hosting in just a few minutes. This step-by-step guide walks you through extracting your app from Google AI Studio, setting up your Gemini API key, building the production files, and uploading everything to your web server.
What You’ll Need:
- A Google AI Studio account and app
- A Gemini API key
- Node.js installed on your computer
- Ecenica web hosting plan with file upload access
- Basic familiarity with Terminal/Command Prompt
Deploying Your AI Studio App
Download and Setup
- Visit https://aistudio.google.com/ and click Download app
- Save the .zip file to your computer
- Extract the zip file contents
Configure the Application
- Open Terminal (Mac) or Command Prompt (Windows)
- Navigate to the extracted directory using
cd path/to/your/app - Install dependencies by running:
npm install - Open the
.env.localfile in a text editor - Add your Gemini API key:
GEMINI_API_KEY=your_api_key_here - Save and close the file
Build and Deploy
- Build the application:
npm run build
- Create a zip file of the dist directory (not the entire project)
- Log into your Ecenica web hosting control panel
- Upload the dist.zip file to your
public_htmlfolder (or appropriate domain directory) - Extract the zip file in place
- Your app should now be accessible at your domain