In this hands-on tutorial, you will build a full-stack web application using Firebase Studio.
You will develop a diary app with an AI proofreading feature as shown below. (Since generative AI is used, the exact output may vary.)

The technology stack is as follows:
Open https://studio.firebase.google.com.
Enter a prompt like the following:
Please develop a diary app.
Add an AI proofreading feature that allows users to proofread their entries before saving.
Authentication and database connection are not needed at first; temporary storage in memory is sufficient.

After a while, the app blueprint will be generated. Customize any parts you'd like, then select "Prototype this App" to start generation.

If you're asked for a Gemini API key, create one from the following site:
https://aistudio.google.com/api-keys

The web application will be created.

Here's how to resolve errors when they occur. You can check error details from the icon in the lower left corner.
If you open the error and see a Fix Error button, selecting it will proceed with fixing that error. 
If the Fix Error button is not displayed, simply copy and paste the error content. 
If errors occur and cannot be fixed, it may be better to restore to a previous working state.
Checkpoints are created for each user message, so you can restore to a specific point by selecting the Restore button. 
If the generated results are not as expected, you can adjust your prompts by adding details or providing specific instructions. Refer to the official documentation Refining prompts to improve response quality for guidance on making revision requests.
Let's try requesting some simple customizations. Here are some examples:
Send the prompt below.
Change the main color to a soft green.


Send the prompt below.
Change as follows:
- Improve with AI → AI 添削
- Save Entry → 保存


Send the following prompt to add authentication and database functionality:
Please add authentication and database connection with the following specifications:
- Authentication: Firebase Authentication
- Email and password authentication
- Features:
- Sign up
- Login
- Logout
- Database: Firestore
- Diary storage path: users/:userId/posts/:postId
Note: The Firebase Studio official documentation states: "Tip: The app prototyping agent can add Cloud Firestore and Firebase Authentication to your app during the iteration phase, rather than in the initial app blueprint." Therefore, we add authentication and database connection at this point rather than in the initial prompt.
Sign up and post a diary entry to verify the functionality. Let's confirm that it's actually connected to Firebase Authentication and Firestore. First, select the orange-framed area in the image below to navigate to the Firebase Project.

In the Authentication menu, you can see that the signed-up user information has been added.

In the Firestore menu, you can confirm that the posted diary content has been saved.

Deploying to a Firebase environment allows other users to use your app.
Press the Publish button.

Link to Google Cloud Platform billing information. This is a required procedure to use Firebase App Hosting, but it can be used within the free tier up to a certain scale.

Once deployment is successful, you can access the app from the generated URL.

This concludes the hands-on tutorial. If you have extra time, try customizing further. Here are some customization examples:
For those who want to understand Firebase Studio more deeply, you can find more detailed information from the following links: