Get Up and Running Fast
This quickstart guide will have you running Ai Studio locally in under 10 minutes. For a comprehensive production setup, see the Installation Guide.Prerequisites
Before you begin, make sure you have:Node.js 18+
Download from nodejs.org
Firebase Account
Sign up at firebase.google.com
Gemini API Key
Get your key at aistudio.google.com
Git
Install from git-scm.com
New to these services? The free tiers are perfect for getting started and testing Ai Studio.
Setup Steps
Clone and Install
Clone the repository and install dependencies:This will install all required packages including React, Firebase, and the Google Gemini SDK.
Create Firebase Project
Set up your Firebase project:
- Go to the Firebase Console
- Click Create a project
- Enter your project name (e.g., “ai-studio-dev”)
- Enable Google Analytics (optional)
- Click Create project
Get Firebase Configuration
From your Firebase project:
- Click the gear icon → Project settings
- Scroll to Your apps section
- Click Web app icon (
</>) - Register your app with a nickname
- Copy the
firebaseConfigobject
apiKeyauthDomainprojectIdstorageBucketmessagingSenderIdappIdmeasurementId
Enable Firestore Database
Enable Firestore for data storage:
- In Firebase Console, go to Build → Firestore Database
- Click Create database
- Choose Start in test mode (for development)
- Select your region
- Click Enable
Get Gemini API Key
Obtain your Google Gemini API key:
- Visit Google AI Studio
- Sign in with your Google account
- Click Get API key
- Create a new API key or use an existing one
- Copy the key
The free tier includes 15 requests per minute, perfect for development.
Configure Environment Variables
Create your environment configuration:Open
.env.local and fill in your credentials:.env.local
Where do I find each value?
Where do I find each value?
- GEMINI_API_KEY: From Google AI Studio (Step 5)
- VITE_FIREBASE_*: From Firebase Project Settings (Step 3)
- VITE_APP_URL: Your app’s URL (use localhost for development)
Verify Your Setup
Once the server is running, verify everything works:1. Access the Application
Open your browser and navigate tohttp://localhost:3000
You should see the Ai Studio interface with the main dashboard.
2. Test the AI Assistant
3. Test Order Management
Try creating a test order:4. Test Reservation System
Try making a reservation:Provide Details
Follow the prompts:
- Number of guests: 4
- Date: Tomorrow
- Time: 7:00 PM
- Name and phone number
Common Issues
Gemini API Key Error
Gemini API Key Error
Error:
API_KEY not found or Failed to get response from assistantSolution:- Verify
GEMINI_API_KEYis set in.env.local - Restart the dev server:
npm run dev - Check the key is valid in Google AI Studio
Firebase Connection Failed
Firebase Connection Failed
Error:
Firebase: Error (auth/invalid-api-key)Solution:- Double-check all
VITE_FIREBASE_*values in.env.local - Ensure Firestore is enabled in Firebase Console
- Verify your Firebase project is active
Port Already in Use
Port Already in Use
Error: Or kill the process using port 3000:
Port 3000 is already in useSolution:Module Not Found Errors
Module Not Found Errors
Error:
Cannot find module 'X'Solution:Vite Build Errors
Vite Build Errors
Error: TypeScript or build errorsSolution:
- Ensure TypeScript version is
~5.8.2 - Clear Vite cache:
rm -rf node_modules/.vite - Restart dev server
Next Steps
Now that you have Ai Studio running locally, explore these areas:Configure Your Menu
Add your restaurant’s products, categories, and pricing
Set Up Tables
Configure your seating layout and reservation rules
Customize Schedule
Define your business hours and special schedules
Test Order Flows
Understand the complete order lifecycle
Explore AI Assistant
Customize the Slice assistant’s behavior
Deploy to Production
Follow the complete installation guide for deployment
Development Tips
Hot Reload: Changes to React components reload automatically. Changes to
.env.local require a server restart.Useful Commands
Project Structure
Need Help?
Full Documentation
Learn about all features and capabilities
API Reference
Explore the service layer and data models
Report Issues
Found a bug? Let us know!
Contributing
Help improve Ai Studio
