File size: 1,141 Bytes
647f750
fdb7099
647f750
a667b81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
647f750
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
app : website //UJgx3'LrV)##G??
---
<div align="center">
<img width="1200" height="475" alt="GHBanner" src="https://ai.google.dev/static/site-assets/images/share-ais-513315318.png" />
</div>

# Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/b18648e1-f7e5-49af-8c1a-a41fa7ba6ce2

## Run Locally

**Prerequisites:**  Node.js


1. Install dependencies:
   `npm install`
2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key
3. Run the app:
   `npm run dev`

# 1. Install the official Firebase CLI globally:
`npm install -g firebase-tools`

# 2. Log in with your premium Google account containing your project:
`firebase login`

# 3. Initialize Firebase inside the directory:
`firebase init`
# Choose: Hosting, Firestore, Rules
# What do you want to use as your public directory? -> Enter "dist"
# Configure as a single-page app (rewrite all urls to /index.html)? -> Enter "Yes"

# 4. Compile the React assets into production assets:
`npm run build`

# 5. Push the build directory live to Firebase:
`firebase deploy`