How to build and launch real web apps with Google AI Studio and Firebase
AI tools are finally good enough that you can go from idea to a real, working web app without writing code by hand. Using Google AI Studio together with Firebase, you can generate a full-stack application, wire up a real backend, and deploy it to a custom domain in a single day.
This guide walks through that entire journey using a simple example app called ClientVault: a secure portal where clients can log in and upload files. You can follow the same process for any SaaS, dashboard, or internal tool you want to build.
What you’ll build: a real web app, not just a landing page
ClientVault is a small but fully functional web application. It’s designed as a client file portal for freelancers, agencies, or designers. Each client can log in, upload files (images, videos, documents), and manage them in a private space.
Under the hood, the app is powered by four core pillars that almost every real web app needs:
1. User authentication – users can sign up, sign in, and sign out with persistent accounts.
2. Database – user data, file metadata, and other records are stored in Firestore.
3. File storage – uploaded files live in Firebase Storage, not on your local machine.
4. UI–backend connection – every button and screen talks to the backend so actions actually do something.
Once these pillars are in place, you’re no longer dealing with a static website. You have a real web application that remembers users, stores data, and scales in the cloud.
Why use Google AI Studio for app generation?
Google AI Studio is a free, browser-based tool that lets you describe the app you want in natural language. It then generates a working project for you, including both the front end and the Firebase backend configuration.
Compared to traditional no-code tools, AI Studio is closer to having an AI engineer on call. It can:
• Scaffold your app structure and UI
• Wire up Firebase Authentication, Firestore, and Storage
• Fix bugs and iterate on features through simple prompts
If you want to go deeper into using AI Studio itself, you may also find this guide to using Google AI Studio like a pro helpful as a companion.
The 4-part prompt formula for better AI-generated apps
The quality of what AI Studio generates depends heavily on the quality of your prompt. A simple but powerful structure is to break your prompt into four parts:
1. What it is
Give your app a name and a one–two sentence description of its purpose. For example:
“ClientVault is a web app that lets freelancers give their clients a secure portal to upload, view, and manage project files.”
2. What it needs
List the key pages and features your app should have. Be concrete. For ClientVault, that might include:
• Login and sign-up pages
• A main dashboard after login
• A file upload area with file list, download, and delete actions
• A profile or account settings page
It also helps to add a line like: “Include any additional features or functionality needed to make this app work properly that are not listed here.” This lets AI Studio fill in small but important gaps.
3. How it looks
Describe the design in plain language. You don’t need to be a designer. Mention things like:
• Overall style (clean, minimal, modern, friendly, etc.)
• Color palette (e.g., light background, accent color, dark sidebar)
• Layout preferences (sidebar navigation, top navbar, card-based dashboard)
4. Backend features
This is where you specify what needs to happen behind the scenes. For a real app, you’ll almost always want to mention:
• User authentication (email/password, maybe Google sign-in)
• A database (Firestore) for storing user data and app content
• File storage (Firebase Storage) for uploads
• Security rules to protect user data and files
If you’re not sure exactly what you need, you can still describe your app’s behavior and ask AI Studio to “set up a complete Firebase backend for this app.” Being specific will usually get you a better first version, but AI Studio can infer a lot from context.
Generating your app in Google AI Studio
Once your prompt is ready, paste it into Google AI Studio and hit Build. AI Studio will:
• Ask you to choose a design style from a few options
• Start generating your front end and backend configuration
• Prompt you to “Enable Firebase” once it detects backend needs
When you click Enable Firebase, AI Studio will automatically:
• Create a Firebase project
• Set up Firestore (database)
• Configure Authentication
• Connect your app to that backend
At this point, it’s tempting to immediately click around the UI. Instead, it’s smarter to first verify that your Firebase backend is correctly configured.
Configuring Firebase: auth and storage
Open the Firebase Console at console.firebase.google.com and select the project AI Studio created. This is your control center for everything happening behind the scenes.
Enable email/password authentication
In the left menu, go to Authentication → Sign-in method. AI Studio often enables Google sign-in automatically, but most apps also need email/password auth.
To enable it:
1. Click Add new provider
2. Choose Email/Password
3. Toggle it on and save
Now users can create accounts with their email and password, which is the most common pattern for SaaS-style apps.
Set up Firebase Storage
Next, go to Storage under Databases and Storage. The first time you open it, Firebase will ask you to upgrade to the Blaze plan and create a billing account.
Important details:
• Blaze is pay-as-you-go, not a fixed subscription.
• The free tier is generous: 5 GB of storage, 1 GB/day of downloads, and 50,000 reads/day.
• For learning and small projects, you’re unlikely to pay anything.
Once billing is set up, create a default storage bucket in production mode. This is the cloud folder where all uploaded files will live. You can view and later adjust the storage security rules under the Rules tab.
Syncing backend changes with AI Studio
After you’ve enabled email/password auth and created your storage bucket, go back to AI Studio and tell it what you changed. For example:
“I enabled email and password authentication and set up Firebase Storage with a default bucket in production mode. Make sure the app’s file upload feature is fully connected to Firebase Storage and that the email/password authentication flow works for sign up and sign in.”
This gives AI Studio the context it needs to update the code so your UI and backend stay in sync.
Testing your app and fixing issues with AI Studio
Now it’s time to test your app from the user’s perspective. Use the preview panel in AI Studio and walk through the main flows:
• Create an account (this first account will later become your admin)
• Log in and log out
• Try the core features (uploading files, viewing data, navigating pages)
As you test, keep a simple list of anything that doesn’t work as expected. For example:
• “File uploads don’t show up in the list.”
• “Sign-in form throws an error.”
• “Delete button doesn’t remove the file.”
Then, fix issues one at a time with short, focused prompts, such as:
“File uploads aren’t working. Troubleshoot and fix the upload flow so files are stored in Firebase Storage and appear in the user’s file list.”
AI Studio will inspect the code, apply fixes, and re-run the app. If it reports runtime errors, use the built-in “Fix” option and let it iterate. Retest after each fix until your core flows work:
• Users can sign up, sign in, and sign out
• Data persists after refresh or re-login
• Files can be uploaded, downloaded, and deleted
Once these are solid, your first three pillars (auth, database, storage) are in place and correctly connected to the UI.
Adding an admin dashboard with elevated access
Most real apps need an admin view so the owner can see everything: all users, their data, and overall activity. Regular users should only see their own data, but the admin needs a global overview.
To set this up, you’ll:
1. Choose which account is the admin (usually the first account you created).
2. Tell AI Studio to build an admin dashboard and wire up permissions.
Get your admin user ID from Firebase
In Firebase Console, go to Authentication → Users. Find the user you created first (your own email) and copy the User ID. This ID will be used in security rules to grant admin privileges.
Prompt AI Studio to create the admin panel
Back in AI Studio, send a prompt that:
• Provides your admin user ID
• Asks for an admin-only dashboard view
• Specifies what you want to see there (user list, file counts, ability to inspect user data, etc.)
AI Studio will generate an admin UI and update the backend logic so only the admin user ID can access it.
Update Firestore security rules
In Firebase Console, open Firestore → Rules. You should see a function like isAdmin() that checks your user ID. Confirm that your ID is present. If not, ask AI Studio to “ensure Firestore security rules are updated so my user ID has admin access to all data.”
Next, update Storage rules as well. These are separate from Firestore rules and control who can access uploaded files. Paste in a ruleset that:
• Allows each user to access only their own files
• Grants the admin user ID access to all files
Publish the rules and wait a minute or two for them to propagate.
Verify the admin experience
With rules in place, test the full flow:
1. Log out of your admin account.
2. Create a second, normal user account.
3. Upload a file as that user.
4. Log out and back into your admin account.
5. Open the admin dashboard and confirm you can see:
• Both users in the user list
• The file uploaded by the second user
At this point, your app has:
• User-level privacy for normal accounts
• Full visibility and control for the admin
Saving your project to GitHub
To deploy your app, you first need the code in a GitHub repository. AI Studio has built-in GitHub integration to make this easy.
In AI Studio:
1. Open the settings for your app and connect your GitHub account.
2. Create a new private repository (e.g., “clientvault-web-app”).
3. Click Stage and commit all changes to push the current version of your app to GitHub.
Now your project lives in a standard Git repo, which most modern hosting platforms can deploy from directly.
Deploying with Hostinger and GitHub
To get your app online with a real domain, you’ll need hosting. For AI Studio projects, Hostinger is a straightforward option because it:
• Connects directly to GitHub for automatic deployments
• Supports Node.js and Vite-based apps (which AI Studio uses)
• Includes a free domain for the first year on certain plans
The high-level deployment flow looks like this:
1. Sign up for a Hostinger plan that includes managed Node.js web apps.
2. Claim your free domain (e.g., clientvaulttutorial.com).
3. Choose Node.js web app as your project type during onboarding.
4. Connect Hostinger to your GitHub account and select the repository you created from AI Studio.
5. Set the framework preset to Vite.
Adding environment variables for AI features
If your app uses Gemini or other AI features from Google AI Studio, you’ll need to add an API key as environment variables in Hostinger so those features work in production.
In Hostinger’s deployment settings:
1. Create a Gemini API key in Google AI Studio’s API Keys section.
2. Add environment variables like:
• GEMINI_API_KEY
• GOOGLE_API_KEY
• VITE_GEMINI_API_KEY
3. Paste the same key value into each, if that’s how your app expects it.
Finish the setup and click Deploy. Hostinger will build and deploy your app from the GitHub repo.
Verifying your live app and updating it over time
Once deployment completes, open your domain. You should see the same app you tested in AI Studio, connected to the same Firebase backend. Log in with your admin account and confirm that:
• Your existing users and data are still there
• File uploads, downloads, and deletes work
• The admin dashboard shows accurate stats
From here, your update workflow is simple:
1. Make changes in Google AI Studio (design tweaks, bug fixes, new features).
2. Test them in the preview panel.
3. Commit changes to GitHub from within AI Studio.
4. Hostinger detects the new commit and automatically redeploys your app.
For example, if you want to change the admin panel accent color from red to green, you can:
• Ask AI Studio: “Make the red color in the admin panel green instead.”
• Confirm the change in the preview.
• Commit to GitHub.
• Refresh your live site and see the updated design.
Getting comfortable with Firebase and your hosting dashboard
As your app grows, you’ll spend more time in two places: Firebase Console and your hosting dashboard.
Firebase Console essentials
In Firebase, the main areas you’ll use are:
• Project overview – quick stats and plan details.
• Authentication – manage users and sign-in methods.
• Firestore – inspect and edit your app’s data.
• Storage – view uploaded files and adjust storage rules.
• Rules/Security – control who can read and write which data.
You can also explore more advanced Firebase features later, like analytics, serverless functions, and engagement tools, but for many early-stage apps, auth + Firestore + Storage + rules are enough.
Hostinger’s hPanel
In Hostinger’s hPanel, you can:
• See deployment status and logs
• Manage domains and SSL
• Adjust environment variables
• Use the built-in Kodee AI assistant to find settings or troubleshoot issues
Make sure you also verify your domain ownership via the email Hostinger sends, so your domain remains active.
From prototype to production-ready AI apps
By combining Google AI Studio, Firebase, and a GitHub-connected host like Hostinger, you can go from idea to a live, production-ready web app without traditional coding. The key is understanding and setting up the four pillars:
1. Authentication – secure user accounts
2. Database – persistent, structured data
3. File storage – scalable file handling
4. UI–backend connection – making sure every feature actually talks to the backend
Once you’re comfortable with this flow, you can reuse it for almost any AI-powered product you want to build—chat tools, dashboards, client portals, internal tools, and more. For a broader roadmap to designing AI products end to end, you might also like this 9-step guide to building AI-powered apps.
The tooling is finally at a point where a single person can ship serious web apps in days instead of months. The rest is up to your ideas.
Comments
No comments yet. Be the first to share your thoughts!