Topview Logo
  • Create viral videos with
    GPT-4o + Ads library
    Use GPT-4o to edit video empowered by Youtube & Tiktok & Facebook ads library. Turns your links or media assets into viral videos in one click.
    Try it free
    gpt video

    Develop an app with Gemini - Intermediate LAB-1

    blog thumbnail

    Introduction

    Welcome to our channel! In today's lab, we will guide you through the process of developing an app using Google Cloud tools, facilitated by Gemini Cloud. This step-by-step guide will help you navigate the various tasks involved in the lab.

    Getting Started with the Lab

    1. Accessing the Lab:

      • Right-click on the lab link and open it in an incognito window.
      • Follow the prompts by clicking "Next" and copy the password provided, pasting it in the designated area.
      • Confirm your understanding by ticking the checkbox and clicking "Agree and Continue."
    2. Activating Cloud Shell:

      • Once you are in the Google Cloud console, activate the Cloud Shell by clicking on it. This will open a terminal window for you.
      • Click "Continue" to proceed with the terminal setup.
    3. Running Sample Commands:

      • Copy the sample commands provided in the lab instructions and paste them into the terminal. Press "Enter" after each command.
      • After authorizing, you will run several tasks as outlined in the lab, checking your progress after completing each.

    Task One - Configuration Setup

    • Navigate to the navigation menu and minimize the columns to better access the items.
    • Go to "All Products," select "Tools," and then find "Cloud Workstation."
    • Check the status of the cluster management; it should be "Ready." If not, refresh the status.
    • Create a workstation configuration, selecting your desired cluster, and clicking "Create."

    Once the workstation is created, repeat the process to create another one named “my workstation,” ensuring that it is in a running condition.

    Task Two - Cloud Code Sign-in

    • Click on Cloud Code and sign in using your account. Authorize the code provided in the terminal.
    • Enable Google Cloud code by navigating to the file preferences and settings. Input the project ID to configure your cloud code settings.
    • Close the settings after linking your project successfully.

    Task Three - Local Development

    • Create a new Python app using the command pallet feature, selecting a "Cloud Run Application."
    • Follow through the prompts to setup a simple "Hello World" application.

    Task Four - Expanding Functionality

    • Create a new file called inventory.py and input your code for inventory management.
    • Import this file into your app.py and update the code as necessary.
    • Test your application locally using Cloud Run emulator.

    Task Five - Deployment

    • Prepare your application for deployment by running the Cloud Code deploy command. Ensure that the region is set correctly (it should be "us-central1").
    • Click on the provided URL after deployment to access your running application. Test the inventory feature by appending /inventory to the URL.

    Conclusion

    After completing each task and achieving a score of 100 on your assessment, you can confidently wrap up the lab. If you found this guide helpful, please consider subscribing to our channel for more content!


    Keywords

    Gemini, Google Cloud, app development, Cloud Shell, Cloud Workstation, Cloud Code, Python, inventory management, deployment, Cloud Run.


    FAQ

    Q1: What is the purpose of activating Cloud Shell?

    A1: Activating Cloud Shell allows you to run commands and interact with Google Cloud resources directly from your browser.

    Q2: How do I create a workstation configuration?

    A2: To create a workstation configuration, navigate to Cloud Workstation, select your desired cluster, and click on "Create."

    Q3: What should I do if my cluster status is not "Ready"?

    A3: If your cluster status is not "Ready," simply refresh the page until it updates.

    Q4: How do I deploy my app?

    A4: You can deploy your app by using the Cloud Code deploy command in the command pallet, ensuring the correct region is selected.

    Q5: What do I do if I encounter an error during testing?

    A5: If you encounter an error, double-check your project ID and the code you implemented in app.py and inventory.py. Adjust as necessary and try again.

    One more thing

    In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.

    TopView.ai provides two powerful tools to help you make ads video in one click.

    Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.

    Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.

    You may also like