Vibe code a whole website

Google Cloud · Beginner ·🧠 Large Language Models ·5mo ago

Key Takeaways

Gemini CLI generates code for a web app using AI, demonstrating a Kanban-style customer tracker

Full Transcript

All right, Christian. So far, we've made this default page using Gemini to jazz it up. But we want to make a web app that actually does something. Right >> now, we'll start making that website I showed in the first video, my customers. [music] When you and I recorded this screencast, I hadn't actually built anything yet. All I had was an idea. But with [music] Gemini, a well- definfined vision can take you a long way. So, here was my roughly sketched [music] vision for the web app. >> Right. I recognize the con on board >> and I wanted the ability to move them between columns. I also knew I wanted the app to show more details on a customer when their card [music] is clicked. Something like this. Finally, the keystone functionality we'll eventually add [music] is the ability to create an invoice. Well, what are we waiting for? Let's turn vision into reality. Should we jump back to the Google Cloud Console? >> Yep. I'll go to CloudShell and then click the open editor button. >> Okay. So last time we created everything in the my customers folder using Firebase. Then we used Gemini to create new code in the index.html [music] file, >> right? And here's what that page looks like. >> It's great that Gemini was able to make that, but [music] it doesn't really do anything. It's all form and no function >> exactly. So let's change that. Jumping back to CloudShell, [music] the tilda means that I'm in my home folder. I'll use the change directory command to go to the my customers folder. If I do the ls or [music] list command, I can view its contents. >> Okay, I remember these commands from last time. [music] I have a feeling you're about to do something cool. >> I'll let you be the judge, but yeah, I think it's pretty cool. Because we're in CloudShell, [music] I can just type Gemini and voila, we're running Gemini CLI. >> Okay, visually it's interesting, but what's the difference between using Gemini in the command line and going to the web app, gemini.google.com? Let's ask Gemini. Hi Gemini, please tell me about yourself. What are your capabilities? [music] How are you different from the Gemini web app? It says it's a CLI agent, so it's not just a chatbot. It can read and write files, run shell commands, [music] and interact with our development environment. Very cool. So we don't have to constantly go between CloudShell and the Gemini web app. This agent can do stuff for us directly in our project, [music] almost like our own personal software engineer. Exactly. And the key to getting the most out of it is using effective guidance in our prompt. This is the prompt that I created, which should get us going. >> Wow, that is one heck of a prompt. It is pretty long. We'll dig into it in the self-guided lessons, and by [music] the end of this course, you'll know how to make your own prompt like this. But simply put, I told the Gemini web app what I wanted to build and crucially, who it was for, and it helped me create this prompt. Shall we give it a try? >> Sure. So, we'll copy this whole prompt and paste it into the Gemini field in CloudShell. >> Yep. It's as [music] easy as that. Once I paste it in, and it does its thing for a bit, it asks for permission [music] to edit our index.html file. I'll press one to allow once. >> And it's also asking permission to create new files. >> Yes. And it asks me several more times. I'll continue to say allow once. I could press two for allow always, but I like to keep tabs on what it's doing. When it finishes, we have to do one thing manually before we [music] can test or deploy our web app. >> I guess that's only fair since Gemini just churned out hundreds of lines of code for us. So, it's saying we have to configure Firebase a bit more. >> Yep. So, again, we'll explain this in detail in the lessons and labs, but basically, Gemini created a file that links our application to the Firebase toolkit. We just need to fill in some placeholder code so it actually works. I'll go to firebase.google.com to get the replacement code I need. >> And you're blurring out the API key because they're generally [music] private and shouldn't be broadly shared. >> Yeah, you shouldn't share API keys online. So now that the [music] correct info is present, I'll deploy the application. Okay, so do we type that in the Gemini field? Well, to keep it clean, I'm going to open a new terminal [music] tab again. Whenever that tilda appears alone, we know we're in the home folder. So, I'll change directories to the my [music] customer folder and type Firebase deploy. Moment of truth. Let's click the link. And [music] look at that. We've got a website. All right. Just like your sketch. We've got three columns, an add customer button. So, what are we waiting for? Let's add some customers. Let's save that for the [music] next video because there will be some problems that need fixing. Of course there will be. Stay tuned.

Original Description

Stop copy-pasting code from a chatbot and start using an AI agent. We introduce the Gemini CLI, a tool that lives inside your terminal and writes code directly into your files. Watch how one well-crafted "mega-prompt" transforms a basic page into a complex Kanban-style customer tracker instantly. Check out the full course for interactive demos and labs → https://goo.gle/3ZuHX9g
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google Cloud · Google Cloud · 0 of 60

← Previous Next →
1 Top 3 ways organizations are adjusting their cloud strategies to prepare for economic uncertainty
Top 3 ways organizations are adjusting their cloud strategies to prepare for economic uncertainty
Google Cloud
2 Google Cloud Retail Search and Browse Console deep dive
Google Cloud Retail Search and Browse Console deep dive
Google Cloud
3 Google Cloud Backup and DR - How to mount, clone or restore a VMware VM
Google Cloud Backup and DR - How to mount, clone or restore a VMware VM
Google Cloud
4 Google Cloud Backup and DR - VMware vSphere Backup Overview
Google Cloud Backup and DR - VMware vSphere Backup Overview
Google Cloud
5 Google Cloud Backup and DR - Creating backup Plans for VMware VM backups
Google Cloud Backup and DR - Creating backup Plans for VMware VM backups
Google Cloud
6 Google Cloud Backup and DR - Compute Engine Instance Backups and Sole Tenant Nodes
Google Cloud Backup and DR - Compute Engine Instance Backups and Sole Tenant Nodes
Google Cloud
7 Google Cloud Backup and DR - Managing Service Accounts
Google Cloud Backup and DR - Managing Service Accounts
Google Cloud
8 Let’s solve for what’s next
Let’s solve for what’s next
Google Cloud
9 Google Cloud Executive Briefing Center | Cloud Space | Silicon Valley
Google Cloud Executive Briefing Center | Cloud Space | Silicon Valley
Google Cloud
10 Tinyclues with Google Cloud offers CRM Intelligence to maximize conversions
Tinyclues with Google Cloud offers CRM Intelligence to maximize conversions
Google Cloud
11 Aible partners with Google Cloud helping customers build predictive models within minutes
Aible partners with Google Cloud helping customers build predictive models within minutes
Google Cloud
12 TELUS streamlines big data ingestion with help from Google Cloud and Accenture
TELUS streamlines big data ingestion with help from Google Cloud and Accenture
Google Cloud
13 Getting started with Apigee API Management
Getting started with Apigee API Management
Google Cloud
14 Google Cloud Retail Search
Google Cloud Retail Search
Google Cloud
15 Building your first API proxy with Apigee
Building your first API proxy with Apigee
Google Cloud
16 Brands and agencies develop dynamic video ads with Connected-Stories NEXT and Google Cloud
Brands and agencies develop dynamic video ads with Connected-Stories NEXT and Google Cloud
Google Cloud
17 Redefining the transportation industry
Redefining the transportation industry
Google Cloud
18 Google Cloud Project Katalyst
Google Cloud Project Katalyst
Google Cloud
19 Israel's Family Court: Creating more compelling experiences for its citizens
Israel's Family Court: Creating more compelling experiences for its citizens
Google Cloud
20 Tausight partners with Google Cloud to help healthcare industry protect PHI activity & take action
Tausight partners with Google Cloud to help healthcare industry protect PHI activity & take action
Google Cloud
21 Google Cloud Retail Browse
Google Cloud Retail Browse
Google Cloud
22 Verifying API keys and debugging your API proxy flow
Verifying API keys and debugging your API proxy flow
Google Cloud
23 Getting started with Apigee API Management
Getting started with Apigee API Management
Google Cloud
24 Adding policies to your APIs
Adding policies to your APIs
Google Cloud
25 Google Cloud Backup and DR - Configuring Google Cloud VMware Engine to work with Backup and DR
Google Cloud Backup and DR - Configuring Google Cloud VMware Engine to work with Backup and DR
Google Cloud
26 Topaz Subsea Cable
Topaz Subsea Cable
Google Cloud
27 Episode 29: Building a culture of data literacy with Latin America’s biggest ecommerce platform
Episode 29: Building a culture of data literacy with Latin America’s biggest ecommerce platform
Google Cloud
28 Weshalb Datananalysten die Sparringspartner von Produktmanagern sein sollten
Weshalb Datananalysten die Sparringspartner von Produktmanagern sein sollten
Google Cloud
29 Warum und wie METRO eine Machine Learning-Pipeline implementiert hat
Warum und wie METRO eine Machine Learning-Pipeline implementiert hat
Google Cloud
30 Wie nutzt METRO Data Science, um geschäftliche Herausforderungen zu meistern?
Wie nutzt METRO Data Science, um geschäftliche Herausforderungen zu meistern?
Google Cloud
31 Google Cloud in Qatar. Let's get solving.
Google Cloud in Qatar. Let's get solving.
Google Cloud
32 Google Cloud for Qatar
Google Cloud for Qatar
Google Cloud
33 Doha has a new Google Cloud region
Doha has a new Google Cloud region
Google Cloud
34 The new Google Cloud region in Qatar
The new Google Cloud region in Qatar
Google Cloud
35 Build, tune, and deploy foundation models with Vertex AI
Build, tune, and deploy foundation models with Vertex AI
Google Cloud
36 Generative AI on Google Cloud
Generative AI on Google Cloud
Google Cloud
37 Who will be coming to Google Cloud Day Tel Aviv? #Shorts
Who will be coming to Google Cloud Day Tel Aviv? #Shorts
Google Cloud
38 Protect your organization at the edge
Protect your organization at the edge
Google Cloud
39 Google Cloud Backup and DR Alert Notifications setup
Google Cloud Backup and DR Alert Notifications setup
Google Cloud
40 Build, tune, and deploy foundation models with Generative AI Support in Vertex AI
Build, tune, and deploy foundation models with Generative AI Support in Vertex AI
Google Cloud
41 Where the Internet Lives: Data center on the prairie
Where the Internet Lives: Data center on the prairie
Google Cloud
42 Which developer program are you joining?
Which developer program are you joining?
Google Cloud
43 Lufthansa Group baut intelligente Systeme zur Vereinfachung des Flugbetriebs
Lufthansa Group baut intelligente Systeme zur Vereinfachung des Flugbetriebs
Google Cloud
44 How ASML revived Moore's Law and remade chipmaking
How ASML revived Moore's Law and remade chipmaking
Google Cloud
45 CMO of Unity celebrates Women's History Month
CMO of Unity celebrates Women's History Month
Google Cloud
46 Vint Cerf on Google Cloud Digital Leader
Vint Cerf on Google Cloud Digital Leader
Google Cloud
47 Mobile World Congress 2023
Mobile World Congress 2023
Google Cloud
48 Topaz - Canada
Topaz - Canada
Google Cloud
49 Google Data Cloud & AI Summit 2023: Reveal opportunities to transform your business
Google Data Cloud & AI Summit 2023: Reveal opportunities to transform your business
Google Cloud
50 Building a conversational bot with Google Cloud Gen App Builder
Building a conversational bot with Google Cloud Gen App Builder
Google Cloud
51 Elisa Polystar and Google Cloud partner to bring the power of analytics and automation to CSPs
Elisa Polystar and Google Cloud partner to bring the power of analytics and automation to CSPs
Google Cloud
52 Network modernization - how can CSPs start now?
Network modernization - how can CSPs start now?
Google Cloud
53 How Semios uses imported and remote models for inference with BigQuery ML
How Semios uses imported and remote models for inference with BigQuery ML
Google Cloud
54 Deliver your AI solutions up to 100 times faster with Google Cloud partner, Snorkel AI
Deliver your AI solutions up to 100 times faster with Google Cloud partner, Snorkel AI
Google Cloud
55 Capture consumer perspectives for CPG using NLP and analytics with Harmonya and Google Cloud
Capture consumer perspectives for CPG using NLP and analytics with Harmonya and Google Cloud
Google Cloud
56 Delivering Cloud-Native Network Transformation
Delivering Cloud-Native Network Transformation
Google Cloud
57 Proactively detect & investigate anomalies & data quality issues in BigQuery with Telmai
Proactively detect & investigate anomalies & data quality issues in BigQuery with Telmai
Google Cloud
58 Introducing AlloyDB Omni
Introducing AlloyDB Omni
Google Cloud
59 Episode 30: How Auto Trader transitioned to the cloud to analyze tricky customer data
Episode 30: How Auto Trader transitioned to the cloud to analyze tricky customer data
Google Cloud
60 MongoDB Atlas on Google Cloud
MongoDB Atlas on Google Cloud
Google Cloud

Related Reads

📰
Building Smarter AI: How LLM Chatbots Become More Accurate with RAG (Retrieval-Augmented…
Learn how RAG enhances LLM chatbot accuracy by leveraging external knowledge sources, such as personal documents, to improve response relevance
Medium · LLM
📰
Como IA, Pesquisa Operacional e LLMs estão transformando a tomada de decisão nas empresas
Learn how AI, Operational Research, and LLMs are transforming decision-making in businesses with a complete Decision Intelligence pipeline
Medium · AI
📰
Why ChatGPT Doesn’t “Know” Anything (And Why It’s Still So Smart)
Discover how ChatGPT's intelligence comes from complex algorithms and large datasets, not traditional knowledge
Medium · AI
📰
Teaching a 0.6B LLM to Rank: Score-Weighted BPR Fine-Tuning from Blended Relevance Signals
Learn to fine-tune a 0.6B LLM for search ranking using score-weighted BPR and blended relevance signals
Medium · Machine Learning
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →