Build an Interior Designer AI App with Claude (FULL COURSE) — Transcript
Full transcript
- 0:00The mobile app that you see on the
- 0:01screen is making around $800,000
- 0:05every single month. And the crazy part
- 0:07is that it does something incredibly
- 0:10simple. You take a picture of your room,
- 0:12choose a design style, and AI completely
- 0:16redesigns it for you. Now, when you see
- 0:18an app like this making that much money,
- 0:21you might think building something
- 0:22similar would be extremely complicated.
- 0:25But you don't actually need to train
- 0:27your own AI models or have a huge
- 0:30development team. You can take an
- 0:32existing AI model, integrate it into a
- 0:35mobile app, and build a real product
- 0:38around it. So I thought, why don't we
- 0:40build our own version of HomeAI using
- 0:43cloud? And that's exactly what we're
- 0:45going to do in this video. We're going
- 0:47to build a fully functional mobile
- 0:49application using React Native and Expo.
- 0:52And I'll show you how to use cloud
- 0:55throughout the entire process. That
- 0:57covers planning the application,
- 0:59generating beautiful designs, building
- 1:02all the screens, setting up our back
- 1:04end, and integrating AI image generation
- 1:07so our application actually works. And
- 1:10on top of the application itself, I'm
- 1:12also going to show you how to build a
- 1:15beautiful landing page and the legal
- 1:17pages like the privacy policy and terms
- 1:20of service, which is something that you
- 1:22will need when you publish your app to
- 1:24the app store. And the best part is you
- 1:27don't need to be an experienced
- 1:28developer to follow along. I'm going to
- 1:30walk you through everything step by
- 1:32step. Once you understand this workflow,
- 1:35you should be able to take pretty much
- 1:37any app idea, turn it into a real mobile
- 1:40app, monetize it, and publish it to the
- 1:43app store. And by the way, this tutorial
- 1:45is coming from someone who has actually
- 1:47done this before. So, I've built and
- 1:50published my own AI powered application
- 1:52to the app store in just 14 days. And
- 1:55only 5 days after launching it, I got my
- 1:58very first paying customer. I even used
- 2:01AI influencers on Tik Tok and Instagram
- 2:04to market it and bring in real paying
- 2:07customers. So, in this video, I want to
- 2:09show you the same workflow that I used,
- 2:12but this time we are applying it to our
- 2:14own version of Home AI. And the goal
- 2:16isn't just to give you another app to
- 2:19copy and paste. I want you to understand
- 2:21how everything works together so you can
- 2:23use the same approach for your own
- 2:25projects. So, here is what we are
- 2:27building. You upload a picture of any
- 2:30room, whether that's bedroom, a kitchen,
- 2:33or a living room. You pick a design
- 2:36style and hit generate. Our application
- 2:39sends that image to an AI model and you
- 2:42get back a completely redesigned version
- 2:44of your room that you can compare with
- 2:46the original. From there, you can
- 2:48upscale it to HD or share it. So, that's
- 2:52the project. And there are a couple of
- 2:54tools that I want to show you throughout
- 2:56this tutorial. We're going to use cloud
- 2:58to generate most of our code. But with
- 3:00AI generated code, it's really easy to
- 3:03end up with thousands of lines without
- 3:05fully understanding what is happening
- 3:07behind the scenes. And we can't just
- 3:09blindly trust everything that AI
- 3:12generates. So I'm going to show you how
- 3:14to use Code Rabbit to automatically
- 3:16review our code, find potential issues,
- 3:19and make improvements as we go. For our
- 3:22back end, we're going to use Neon, which
- 3:24will handle the authentication, managing
- 3:27the users, and storing all of our app
- 3:30data. And since this is an AI image
- 3:32generation app, we will use image kit to
- 3:35upload, store, and optimize all those
- 3:38images. Okay, so as you can tell, we
- 3:40have millions of different things to
- 3:42learn from this tutorial. So with that
- 3:44being said, if you're ready, let's jump
- 3:46into it.
- 3:50All right. So, just before we start
- 3:51coding, let's go ahead and set up the
- 3:53tools that you're going to need to build
- 3:55a mobile application. So, first things
- 3:58first, you must have Node.js installed
- 4:00in your machine. If you don't have it
- 4:02already, go ahead and visit node.js.org,
- 4:06then press this button called download,
- 4:09then leave every option as is, then
- 4:12press this button. Now, in my case, I
- 4:14already have this installed, so I'm not
- 4:16going to install it again. But just be
- 4:18aware that all these options will be
- 4:21selected automatically. And it is smart
- 4:23enough to understand if you're on Mac,
- 4:26Windows, or Linux, or even this option.
- 4:29Um, so you should you shouldn't really
- 4:31change any of these options, but just
- 4:34install the installer itself. Then once
- 4:37you have it installed, just go ahead and
- 4:39set that up. That would be a couple of
- 4:41minutes. Then once you have NodeJS,
- 4:44you're ready to follow along with me.
- 4:47Um, one thing that I want to mention is
- 4:50that I'm using Mac, but if you're on
- 4:53Windows or Linux, that's completely
- 4:55fine. The entire process will be the
- 4:58same. Okay, so that's one thing. I'll
- 5:01just assume that you have NodeJS
- 5:02installed. Now, for the coding
- 5:05environment, I'll be using Visual Studio
- 5:07Code, which you can get it under the
- 5:09code.visisualstudio.com.
- 5:10visualstudio.com.
- 5:12It's completely free. Just press this
- 5:14button and have it installed. You can
- 5:17use anything else that you want. But if
- 5:20you want to have the same environment
- 5:21that I have, you know, you should get
- 5:24this one and I would highly highly
- 5:26recommend. This is how that look. I'm
- 5:28going to get into it in a second. Now,
- 5:30obviously, we're going to be using AI.
- 5:33In my case, I'll be using cloud
- 5:34specifically, but you can use really any
- 5:37other option that you want. Once again,
- 5:40the entire workflow will be the same.
- 5:43So, if you're using Codex, cloud,
- 5:45cursor, you know, it's it's the same
- 5:48process. Okay. Once again, I'll be using
- 5:50cloud. You can go with the $20 plan. In
- 5:53my case, I have the max plan, which is
- 5:56like $100, but you definitely don't need
- 5:58to go that high, especially if you're
- 6:01just testing this out for the first
- 6:03time. Now, you can use the free plan as
- 6:05well, but obviously that's not going to
- 6:07be enough if you would like to build a
- 6:09real project. And I think just paying
- 6:12$20 is one of the best investments that
- 6:15you could ever make. Like in my case, to
- 6:17be honest, I pay $100 to Cloud and
- 6:21another $100 to Codex and I'm using them
- 6:24every single day. Okay, so with that
- 6:26said, you would like to go into VS Code
- 6:29and actually just go ahead and visit
- 6:32your desktop, right? Create an empty
- 6:36folder right here. Then drag and drop it
- 6:39into VS Code. You can call it anything
- 6:41that you wish. In my case, I called this
- 6:44as home AI or home- AI. That's my folder
- 6:48name. I just dragged and dropped it
- 6:50right here. Okay, this will be the UI
- 6:53that you're going to get. Then from the
- 6:55extensions, you can install the cloud
- 6:58extensions. Sorry, the cloud extension.
- 7:00This is what I'm using. If you're using
- 7:02Codex, you can install that one as well.
- 7:07Like it's going to be this one. Install
- 7:09it and authenticate.
- 7:11So like just double press right here.
- 7:14Then you can see the cloud or CEX
- 7:16option.
- 7:18Just press one of them. And here you
- 7:21would like to say like log me in for the
- 7:23first time. This is what you're going to
- 7:25see. Um in my case I'm already logged in
- 7:27so I can just talk with cloud here. I'll
- 7:30just say hey just to show you that this
- 7:32actually works.
- 7:36Okay. So I can get the response back. Um
- 7:39that's the entire setup for the
- 7:41prerequisites and the environment. Now
- 7:44that we have this set it up, we can
- 7:46start planning our project. All right.
- 7:49So this is where we left. We tested out
- 7:51cloud if it is working or not. In my
- 7:53case, it is working and I'm going to
- 7:55assume that it is also working for you.
- 7:57Now we will create a new session and
- 8:00then close this previous one. Then we'll
- 8:02just get started with building our
- 8:04project. Now the number one mistake that
- 8:07beginners make is immediately jumping
- 8:10into clot and then just asking, hey, you
- 8:13know, build me this project for this
- 8:16purpose. But that's the problem. Um, you
- 8:20should first kind of like plan the
- 8:22entire thing, you know, your decisions,
- 8:24your text stack and so on so that AI
- 8:28doesn't really guess any of these
- 8:30features or, you know, the technologies
- 8:33that you would like to use. And there is
- 8:35a really good tool for this that is
- 8:37built into any kind of coding AI agent,
- 8:41which is the mode. So instead of going
- 8:43with the auto mode here, you can tell
- 8:45like we have bunch of different modes.
- 8:47You would like to select the plan mode.
- 8:49This is number one thing that you should
- 8:51do especially if you're just getting
- 8:53started with a project. And this plan
- 8:56mode is actually one of the first steps
- 8:59in our entire workflow. So this is the
- 9:02workflow that I used to build my own
- 9:04mobile application by the way. So this
- 9:07consists of couple of different steps
- 9:09where we first plan and describe our
- 9:11project. This includes things like you
- 9:14know defining the idea, the goals,
- 9:16features, you know screens or pages,
- 9:19user flow, text tag and so on. Now once
- 9:22you have the plan it is it's going to be
- 9:25really easy for you to generate the UI
- 9:28design because you'll just say hey cloud
- 9:30I have all these you know all this plan
- 9:34and pages or screens whatever you'd like
- 9:37to call it just go ahead and get me a UI
- 9:40design and I'm going to show you how you
- 9:42can get some reference images that are
- 9:44looking very nice and modern then kind
- 9:47of like turn it into code and then you
- 9:50know we will break it into features
- 9:52We're going to build one at a time. We
- 9:54will manually check them. Then we'll run
- 9:56an AI code review. Then, you know, if
- 9:59everything is completed,
- 10:02you know, the project is completed. If
- 10:04we have more features, then we're going
- 10:06to run this workflow multiple times
- 10:08until we have no more work left, right?
- 10:13Okay. So, we're going to get into this
- 10:15in detail, I promise. But first let's
- 10:18just get started with the very first
- 10:20step which is planning our project. And
- 10:24now to plan your application I have
- 10:26prepared a really good prompt that I'm
- 10:28using every single day and it is working
- 10:31really really nice. So I'm going to
- 10:33provide this link in the description. Go
- 10:35ahead and visit that if you want to like
- 10:38just pause the video and read the entire
- 10:40thing. I'm going to explain in simple
- 10:42terms but first let's copy the entire
- 10:44thing. Okay. So just copy it. And what
- 10:47this does is basically this is telling
- 10:50AI. I think by the way I deleted
- 10:52something here accidentally. Did I?
- 10:56Not really. Let me just kind of fix
- 10:58this. Okay. So what this says is like
- 11:01telling AI that interview me about this
- 11:04project that I'm about to describe. So
- 11:07it says, "Hey, you know, Claude, just go
- 11:10ahead and ask me bunch of different
- 11:13questions." Like anytime you have a
- 11:15question, just ask me, right? Don't
- 11:17guess anything. This is really important
- 11:20because you don't really want your AI
- 11:22agent to guess stuff, right? So you say,
- 11:25"Instead of guessing, just ask me,
- 11:27right? And then I'm going to answer." So
- 11:30just go ahead and copy. You're going to
- 11:31see what I mean in a second. You would
- 11:34like to copy this. Select the plan mode
- 11:36right
- 11:38and then paste this right here. Now at
- 11:40the end we say begin now by asking me
- 11:44your first batch of questions about the
- 11:47project that I'm about to describe. So
- 11:49here you would like to describe your
- 11:51project. Now what you can do is using a
- 11:54tool like whisper flow so that you can
- 11:57just talk to it instead of typing. So
- 11:59you can just dump everything in your
- 12:01mind into here in couple of seconds or
- 12:04like minutes. Here I'll just say
- 12:07something like, "Hey, I want to build a
- 12:10home AI clone, which is like an app
- 12:13where you take a photo of your room and
- 12:16then AI designs it."
- 12:19Okay, so that's the idea. But here for
- 12:22this tutorial, I have already prepared
- 12:24my prompt. I'm just going to paste it so
- 12:26that you can have it as an example.
- 12:29Okay, so off camera I have just pasted
- 12:31this in and let me just walk you through
- 12:33it. So here I say I want to build a
- 12:36mobile home designer app similar to home
- 12:39AI. The goal is to keep things simple
- 12:42for version one. I don't want to over
- 12:45complicate the project but I want to
- 12:47build something that actually works and
- 12:49looks professional. Now I think this is
- 12:52one of the most important things that
- 12:53you should do for the version one which
- 12:56is the initial release that you are
- 12:58doing. Just don't over complicate the
- 13:00project. Just build something simple and
- 13:03then push it to the users and see if
- 13:06people are actually interested in in
- 13:08this product. Right? If you start making
- 13:11money then you can always um make it
- 13:14more complicated with a better UI and so
- 13:17on. Okay. So here what I do is like
- 13:20explaining the main functionality. I'm
- 13:22not going to read it out loud but you
- 13:24can pause the video and read it. Like
- 13:26this is how I would describe my project,
- 13:28right?
- 13:30And then obviously I give the text tag
- 13:33so that it doesn't really guess any kind
- 13:35of random stuff. So here I say I'll be
- 13:38using Expo and React Native to build the
- 13:40application. If you don't know what that
- 13:42is, by the way, I'm going to walk you
- 13:44through it. Then we use neon for our
- 13:46entire back end you know for
- 13:48authentication database and so on. Then
- 13:51we'll be using image kit for image
- 13:52uploads storage optimization and
- 13:55transformations. Now this is really
- 13:57important because our project will be
- 14:00all about images right and then we have
- 14:03open AI where we can
- 14:06um sorry where we can send the images to
- 14:08open AAI so that AI can generate the
- 14:12designed image. Right. You're going to
- 14:14see how that work. And then here I say
- 14:17for now we are only in the planning
- 14:18phase. Just don't write the code yet.
- 14:21Right. Make sure you are in the plan
- 14:23mode. And I'm going to send this. Also
- 14:26for the effort you can go with high or
- 14:29like extra high. I think I'll just go
- 14:31with high.
- 14:33Uh but yeah, you can always um kind of
- 14:36like increase it, decrease it, or even
- 14:38go with the ultra ultra mode. Now what's
- 14:41going to happen is that
- 14:44um cloud will start asking us a bunch of
- 14:47different questions right and here we go
- 14:50we got the very first batch so we have
- 14:53four different questions that we need to
- 14:55answer. Once we answer them then claude
- 14:58will ask another four or you know three
- 15:00five whatever that is amount of
- 15:03questions and once we have all of them
- 15:05answered then we're going to get a plan.
- 15:08Now, usually what you would like to do,
- 15:10of course, read the question. Most of
- 15:12the time, your answer would be the
- 15:14recommended one, but there are some
- 15:17times where you would like to go with a
- 15:19different option, right? So, if you're
- 15:22building this as your actual project
- 15:24where you would like to publish it to
- 15:26the app store, then I would highly
- 15:28highly recommend you to read all these
- 15:31options rather than randomly selecting
- 15:34the first one. This is a tutorial. Most
- 15:36of the time, I'll just go with the
- 15:38recommended one. So, we don't really
- 15:39waste too much time reading all of this.
- 15:42But,
- 15:44you know, if I if I were you, I would
- 15:46obviously read all of them. And that's
- 15:48what I've done when I was building my
- 15:50own project as well, right? So, here I'm
- 15:52going to select email and password. You
- 15:55can go with Google and Apple as well.
- 15:57Let's actually go with three of them.
- 16:00Um, by the way, if you're building
- 16:02something um with authentication, like
- 16:05if you include Google or Discord,
- 16:07whatever, you have to have Apple as
- 16:10well. Otherwise, App Store will reject
- 16:13your application. This is something that
- 16:15you should keep in mind. Apple says if
- 16:17you if you're going to include any kind
- 16:19of social authenticator like Google, you
- 16:22know, you get you got the point. They
- 16:24say you have to have me as well, right?
- 16:28And then here I'll just say free quota
- 16:30for now or yeah for now let's just go
- 16:33with the free quota. And then it says
- 16:35what is the realistic destination for
- 16:38version one. Let's just say not only a
- 16:40YouTube tutorial but a real public
- 16:43release. Right.
- 16:46Okay. Because I just want to simulate as
- 16:49if we are building a real project rather
- 16:51than a YouTube demo. All right. So after
- 16:54a couple of seconds, I got the other
- 16:57batch, right? Again, I'll just go with
- 16:59the recommended options. I have already
- 17:02read them, by the way. Like these are
- 17:03the ones that I'd like to go with.
- 17:07Let's go ahead. For the styles, like you
- 17:09can go with four or eight. I'll just go
- 17:11with eight. Um
- 17:14I think yeah, I think I like this one.
- 17:16And then for the saving, let's just say
- 17:18autos save to history. Now there are
- 17:20some questions where you can select
- 17:22multiple options, right? Um for now
- 17:24we'll just say autos save it to history.
- 17:29Then we got the third batch. So you got
- 17:31the point from here on out. Like you can
- 17:34always pause the video and read it, but
- 17:36I'll just keep going, right? I'll be
- 17:38pretty fast here. I'll go with five
- 17:41generations per day per account instead
- 17:44of three. Um here for the platforms,
- 17:47let's go with the recommended one. I'll
- 17:50just go with the dark only for now. But
- 17:53anytime you want to change, obviously
- 17:55you can just go and update it in your
- 17:57plan. For now, let's just go with the
- 17:59dark mode only. And then I'm going to
- 18:01select this one for the image URLs. This
- 18:04is for the you know, let's say privacy.
- 18:08And then let's wait for the next batch.
- 18:11And then we got the DB access. I'll be
- 18:14going with the result or rem native went
- 18:17just for the styling. And by the way, if
- 18:20you're not like um let's say if you're
- 18:22not technical at all, these will look a
- 18:26little bit confusing to you. That's
- 18:27completely fine. Like just understand
- 18:30the workflow. I think you should be able
- 18:32to build any kind of project with this
- 18:35workflow. Like you get the plan mode
- 18:38prompt, then you explain your project.
- 18:41All you need to do is just going with
- 18:43the recommended options for the things
- 18:45that you don't actually understand like
- 18:48native went you don't know what that is
- 18:50that's completely fine but if you're
- 18:52already a developer you know what this
- 18:53means but you got the point now for the
- 18:56monitoring u I would usually go with the
- 18:59sentry without thinking even twice here
- 19:03for now I'll just say let's for now say
- 19:06other and I'll just say skip for
- 19:09this project. Let's just say at least
- 19:12for now.
- 19:15Um, by the way, if you don't know what
- 19:17sentry is, basically let's say you got
- 19:20an error in your application, right? One
- 19:23of your users got an error as the owner
- 19:26of the project, you get notified
- 19:28immediately. So, this is what we call
- 19:31the error tracking and monitoring. This
- 19:34is what I use in my actual mobile
- 19:36application which is live on the app
- 19:38store and it is really really useful.
- 19:41But for now I think I'll just keep it
- 19:42simple. Let's say skip skip it for this
- 19:46project. Maybe later in the video I can
- 19:48show you how to set that up. But then
- 19:50here it says um yeah we don't have any
- 19:54hard deadline but you know I built mine
- 19:58in less than two weeks and I was
- 20:00recording the entire thing that's why it
- 20:02took so long. I think if you just log in
- 20:05and build it all day every day you can
- 20:08just go even live in like 10 days. Um
- 20:11for now I'll just say no hard deadline.
- 20:14All right. So once you answered all
- 20:16these questions, what will happen is
- 20:18that cloud will write the entire plan.
- 20:21Here I'm going to shrink the left hand
- 20:22side. You can do it with controlB,
- 20:25right? You can toggle this with control
- 20:27or commandB. Uh but anyways, like we
- 20:31have the entire plan. What I would do is
- 20:33basically reading the entire thing
- 20:36pretty quickly and then just see if
- 20:38there is anything that I don't like. If
- 20:40you're not technical, you're not going
- 20:42to understand this part which is
- 20:43completely fine. You can just trust to
- 20:46AI like nowadays they're really really
- 20:49good. So I don't think that would be a
- 20:51problem. Then here you would just say
- 20:53accept this plan. Now if there is uh if
- 20:56there is anything that you don't really
- 20:58like obviously you can just go ahead and
- 21:00talk with Claude. But in my case I'll
- 21:02say I'm pretty happy with it. So I'm
- 21:04just say yes and use the auto mode.
- 21:11I think um what we can do I'm just going
- 21:14to actually pause this right um I'm
- 21:17going to yeah I was going to say I'm
- 21:19going to pause it but here it actually
- 21:22completed the entire process which is
- 21:24generating the plan I'll just say
- 21:28for now let's go ahead and set up an
- 21:31expo project using the expo command and
- 21:35you know just generate it under the
- 21:38current folder which is home-ai.
- 21:44Okay, so I'm going to run this in a
- 21:46second, but first let's go back into the
- 21:49Chrome and here I'll just search for
- 21:51expo.dev/d
- 21:54docs.
- 21:55Now from the documentation, let me try
- 21:57to zoom in. You're going to see that
- 21:59there is a command where it is going to
- 22:02generate a mobile application for you,
- 22:04right? So you can do it manually like
- 22:07copy it and then go into terminal. You
- 22:10can open this up with command J or
- 22:13control J. But here I'll just say you
- 22:16know set up expo project for me. I don't
- 22:18really need to do it manually.
- 22:22Okay. So I'm going to run this.
- 22:25Like once this is done, you're going to
- 22:27see that you will get a bunch of
- 22:29different files and folders which is
- 22:32setting up a mobile application for you.
- 22:35Now this is going to be a boilerplate
- 22:37which means it is just a template right
- 22:40just a template where you can update it.
- 22:43And actually we are going to delete most
- 22:44of them and build something from
- 22:46scratch. But just know that this is a
- 22:49template. It comes with every kind of
- 22:51tooling and you know any kind of
- 22:54configuration that is needed so that you
- 22:57don't really need to build it all from
- 22:59scratch and just only one code base is
- 23:03enough for you to publish it to both app
- 23:06store and Android. That's the beauty of
- 23:09expo in the first place. Right. And here
- 23:12I'll just go and visit expo.dev.
- 23:16Now, if you don't know already, this is
- 23:18the infrastructure where you can build a
- 23:21mobile app and publish it to the app
- 23:23store or play store. This is what I'm
- 23:26using for my own app as well. It's
- 23:28completely free to get started with. But
- 23:31obviously, if you would like to, you
- 23:33know, build something professional, then
- 23:35you can go with the $19 a month plan.
- 23:38But for this tutorial and for now, like
- 23:42absolutely, you don't need to go with
- 23:43the paid plan. This is only once you
- 23:46want to publish your app to the app
- 23:47store, right? And then you can take a
- 23:49look at the apps that are built with
- 23:51Expo like Replet, Kick, um, Phantom,
- 23:55like some of the best applications out
- 23:58there. Okay, so this is completely
- 24:00production ready. One of the most modern
- 24:03tools out there.
- 24:06Um, so yeah, with that said, let's go
- 24:08ahead and take a look at the codebase.
- 24:12cloud is done and we have our project.
- 24:14Now, we can run this app with our
- 24:17simulator, which is what I'll be doing
- 24:19pretty quickly. But you can also run
- 24:21this with like within your own device.
- 24:25If you have Android, you can run it
- 24:27within that. If you have an iPhone, you
- 24:29know, whatever you can run within your
- 24:31device. You might be asking how. Just go
- 24:34ahead, open up your terminal and then
- 24:36just say MPX Expo. So once you run MPX
- 24:40expo, you're going to get a QR code. Now
- 24:43from your phone, just go ahead and
- 24:45search for Expo right in App Store or
- 24:50sorry either in App Store or Play Store,
- 24:53install the Expo mobile application,
- 24:55right? Once you have installed it, then
- 24:58scan this QR code. This is what I'll be
- 25:01doing. Just give me a second and then
- 25:03I'm going to open up my camera and show
- 25:05you that it actually works. So let me
- 25:08kind of like um scan this from my phone.
- 25:11I'm doing it right now. So while this is
- 25:14getting loaded in my phone, you can also
- 25:16run it in the simulator. Right. First
- 25:19you need to install a simulator. Um if
- 25:22you're in Windows, you should get the
- 25:24Android emulator. Uh but yeah, it is the
- 25:28same idea. Basically, you will press I
- 25:30if you're in Mac, which stands for iOS,
- 25:34right? You might get a question like
- 25:36this. Just press enter. It will install
- 25:39the Xogo application. And then if you're
- 25:42in Android, press A. Okay, which means
- 25:46Android. Let me actually put them side
- 25:49by side.
- 25:53So here you can tell I have bunch of
- 25:55different applications, but here we have
- 25:58the Expo as well.
- 26:00It is going to run this template project
- 26:03within the simulator. And if you scan
- 26:06this QR code, you will get the same app
- 26:08in your actual phone, right? And here we
- 26:11go. Now we have two different tabs. And
- 26:15within this, we just have a an example
- 26:18UI.
- 26:20Now, obviously, we're going to delete
- 26:21everything that we have right here and
- 26:23change it with an app for the home AI,
- 26:27but this is the template that you get
- 26:30from Expo. Now if you scan this QR code
- 26:33in your phone and if it still doesn't
- 26:36open what you can do is stopping this
- 26:38with Ctrl C clear this and then just
- 26:42type MPX expo- dash tunnel.
- 26:49So just wait a little bit and then
- 26:51you're going to get a QR code. Then you
- 26:53can scan this again. This is what I'll
- 26:55be doing
- 26:56and then hopefully this time it should
- 26:58open. So here we go. In my phone, I have
- 27:02the app. It is running. Like right here,
- 27:05it is in the dark mode. And right here
- 27:07in the simulator, it is in the light
- 27:09mode. But let me kind of like change the
- 27:12mode pretty quickly. I can go from dark
- 27:15to light. And it is working properly.
- 27:18Like I can switch the tabs just like
- 27:21right here. Okay. Um, one more thing,
- 27:25just make sure that you have the same
- 27:28Wi-Fi in your mobile and in your laptop.
- 27:32Otherwise, I think you cannot run this
- 27:35application. One more thing here, if you
- 27:37want to reload this, you can just press
- 27:40Ctrl D. You're going to get the dev
- 27:44tools, right? Then you can just press
- 27:46the reload button. And then once again,
- 27:49you can press Ctrl D. Right here you
- 27:52have bunch of different options like
- 27:53something called tools button and it's
- 27:56going to show you this button. Right? So
- 27:58every time you can press this instead of
- 28:00pressing Ctrl D. But yeah, I'm going to
- 28:03leave this for you to explore. And if
- 28:06you want to open this up in your phone,
- 28:08what you need to do is this. Just take
- 28:10your phone right and then kind of like
- 28:13um shake it to the left and right. Um
- 28:16like you're going to get this. What do
- 28:19we call it? the dev tools. Okay, I think
- 28:22that's it for this entire section. At
- 28:25the very end, I'll just ask claude here.
- 28:28I'm going to say, so you have generated
- 28:31a plan. Please go ahead and save this
- 28:34under a file in my codebase. Just call
- 28:37it plan.md.
- 28:41And I'm going to make this all
- 28:42uppercased. Right? So, let's run this.
- 28:46We already had the plan, right? Well, I
- 28:50want to kind of like have it right here
- 28:52so that I can check it anytime that I
- 28:54want. As you can tell, let me maximize
- 28:57this. We have that previous plan. But
- 29:00now, anytime I want to see it, I can
- 29:02just come right here and visit this
- 29:04file. This is one of the things that I
- 29:06do and I would highly highly recommend
- 29:09as well. I'm going to leave this lesson
- 29:11right here. Let's pretty quickly
- 29:13summarize what we have done. We created
- 29:16sorry we just got a prompt that I
- 29:20already prepared. Then we just explained
- 29:22our project. Then depending on what we
- 29:25have explained we got bunch of different
- 29:27questions and once we answered them we
- 29:30got a plan. Now we are not going to
- 29:33guess anything from here on out or we
- 29:36will not AI to guess anything right?
- 29:38We'll just say follow the plan and build
- 29:41the project.
- 29:43Um, this is what we're going to do in
- 29:45the next section. Hopefully, we're going
- 29:47to get started with the UI design. So,
- 29:50I'll see you there.
- 29:52All right. So, now that we have our plan
- 29:55ready, it is time to get started with
- 29:57the UI design. And we are going to
- 29:59generate the UI design based off of the
- 30:02plan that we already have. Now, if you
- 30:05directly go into cloud and you just say,
- 30:07"Hey, built me a beautiful UI design."
- 30:10Unfortunately, you are not going to get
- 30:12something that is looking nice. Cloud
- 30:15will just give you something, you know,
- 30:18something that looks AI generated or you
- 30:21can ask it to Codex as well. You're
- 30:23going to get a similar response. So,
- 30:26there is a solution to fix this which is
- 30:29basically providing a reference. So,
- 30:32here what I'd like to do is creating a
- 30:35design folder, right? And then visiting
- 30:38something called Pinterest. I'm pretty
- 30:40sure you already know what this is. Just
- 30:42go ahead and create an account. It's
- 30:45completely free. Then just search for
- 30:47any kind of mobile app that you'd like
- 30:49to build. You can even just search for
- 30:52mobile app design. Okay, here in my
- 30:55case, I think I just searched for home
- 30:57AI, home design, mobile app. And then
- 31:01here are the results that I got.
- 31:04So here you can just scroll. There are
- 31:06millions of different results that you
- 31:09can take a look at. The one that I liked
- 31:11was this one. So, you can just press
- 31:14copy the image or really select anything
- 31:17that you want and then just go right
- 31:19here. Paste this in. Okay. I'm going to
- 31:21call this as something like app design
- 31:26reference, right?
- 31:28And then I'm going to attach this to my
- 31:31chat. Uh we can create a new session.
- 31:33Let's actually do it. You can just
- 31:36follow up from right here as well, but
- 31:38let's go with a clean slate. So here
- 31:40I'll just attach this. Let's say app
- 31:43design reference.png.
- 31:45And then here I will say now we already
- 31:49have the plan ready. Um now I want you
- 31:52to build the entire UI design for me.
- 31:56And don't build something random.
- 31:58Actually take a look at this design file
- 32:01that I attached. just uh get kind of
- 32:04like inspired by this. Use the same
- 32:07colors or like similar colors uh but
- 32:10like don't copy it 100%. Just get
- 32:13inspired by it and kind of like make
- 32:16sure that it is matches uh it is
- 32:19matching with what we have in our plan
- 32:22file.
- 32:25And here I'm going to attach the plan MD
- 32:28file as well. Now what I'd like to do is
- 32:31generally just building the entire UI
- 32:34design with fake data. Right? Once we
- 32:38have the UI design ready, I test out
- 32:40everything and then you know like if
- 32:43everything is working as expected, I
- 32:45just replace that fake data with the
- 32:48actual data. So I set up uh things like
- 32:50my database, you know, storage, um any
- 32:53kind of service that I need to use.
- 32:57This is what I'll say here. But I'm
- 32:58going to say for now I just want you to
- 33:01use a fake data. We are only building
- 33:03the UI and kind of like simulating as if
- 33:06everything is working um with the actual
- 33:10back end with the actual data as if we
- 33:12are in the real world but in the
- 33:15background actually have fake data once
- 33:17I have the UI design ready. Later I'm
- 33:20going to ask you to implement it with
- 33:22the real technologies.
- 33:25Okay. So this is my entire prompt. I
- 33:28would usually send this but actually I
- 33:31use something called hickfield. I think
- 33:33you already know that but let me just
- 33:35pretty quickly show you this. I'm going
- 33:37to say hick field.
- 33:40This is basically image and video
- 33:42generation tool. in the background they
- 33:44have bunch of different or or actually I
- 33:47would say like every single model that
- 33:49you can ever imagine like uh chat GPT
- 33:52image model Gemini I don't know like
- 33:55cling for video generation literally
- 33:58every single thing um I use their paid
- 34:00plan I think they don't have a free plan
- 34:03I don't think so you don't have to use
- 34:05this absolutely like you can generate
- 34:07the images with the chatbt subscription
- 34:10that you have or like from Gemini which
- 34:13free to get started with, right? You can
- 34:16use Nano Banana Pro like I'll just
- 34:18mention this just in case if you don't
- 34:20know. Just head over to Gemini and then
- 34:23use the Nano Banana Pro, right? Or Nano
- 34:27Banana 2. These models are really good.
- 34:31But what I did is using the Higsfield
- 34:34MCP because I have the subscription in
- 34:37this tool. Um, you can just add it if
- 34:40you wanted to. Then here [snorts] you
- 34:42can say something like if you need to
- 34:44generate any kind of images or videos
- 34:46just use the hickfield MCP. This is what
- 34:49I'll be doing. Like here maybe for the
- 34:52background I want to get this kind of a
- 34:55UI for the authentication screen right
- 34:57or maybe I want to get this background
- 34:59image. Instead of generating them in
- 35:02chat GPT I'll just say hey cloud use the
- 35:05hickfield MCP and generate those images
- 35:08for me. Now this is just much more
- 35:12convenient. Otherwise you can you know
- 35:15generate the same thing from chat GPT as
- 35:18I said but here I'm just going to say I
- 35:22already have the hickfield MCP set it
- 35:25up. So if you need to generate any kind
- 35:27of images or assets uh feel free to use
- 35:32the hickfield MCP.
- 35:36Okay. So, this is something that I use
- 35:37every single day, but it is paid. Um, I
- 35:40pay around I think $60, which is kind of
- 35:43expensive. Uh, not for everyone, right?
- 35:46Uh, but like if you cannot afford it.
- 35:48Once again, you can use the free models.
- 35:50Okay. And I'm going to put it on extra
- 35:53high maybe. Like usually I would put on
- 35:56extra high, but this is a tutorial. I
- 35:58don't really want to wait and waste too
- 36:01much time. I'll just put it on high. But
- 36:04if you're building your own project, I
- 36:06think you should go with extra high
- 36:08because for the UI design, you'd like to
- 36:10get a better result. Okay. And here
- 36:13finally, I'll just say don't use too
- 36:17much credits.
- 36:20And here I'll just say for image
- 36:23generation, use GPT2
- 36:26or GPT 2.5 model.
- 36:30And let's say for quality, for quality,
- 36:34go with 1K, not 4K or 2K.
- 36:39So if I want to generate an image, I'd
- 36:41like to use 1K, not these options
- 36:44because they spend too much credits,
- 36:46right? Okay. So with this, I'm going to
- 36:48go ahead and run that. Now, this will
- 36:51take obviously a couple of minutes,
- 36:53maybe like 20, 30, or 10, I don't know.
- 36:56Uh once this is done, I'll just be right
- 36:58back and then we're going to check the
- 37:00end result. Currently, this is how that
- 37:02look. But everything should be updated
- 37:04in a second or in a couple of minutes.
- 37:07Once it is ready, I'll just be right
- 37:09back. And actually, while Cloud is
- 37:11setting this up, we can also go ahead
- 37:13and set up the tools that we're going to
- 37:15be using later in the video. I'm going
- 37:18to provide the links in the description.
- 37:20They're going to give you free credits
- 37:21and free trials. So you don't really
- 37:23need to pay anything to get started
- 37:25with.
- 37:27So the first tool that we would like to
- 37:29set up is going to be Neon. Um this is
- 37:32the Postgres provider and the entire
- 37:34back end that we're going to be using.
- 37:36So this will provide things like you
- 37:38know authentication or database
- 37:41obviously the user management and you
- 37:44can even set up the AI functions. I'm
- 37:46going to show you how to set that up.
- 37:48just go ahead and get started with it. I
- 37:50already have an account, so I'm going to
- 37:52go ahead and log in.
- 37:55And once again, you don't really need to
- 37:57pay anything. Just go ahead and sign up
- 37:59with the link. Um, then I would say just
- 38:02sign up with your GitHub account. So
- 38:05here, I'll just log in and then we are
- 38:07going to create a project. Once you
- 38:10create the project, you get some
- 38:12environment variables. I'm going to
- 38:14explain what they are, but basically
- 38:16some secret keys so that we can connect
- 38:19to our projects. In [snorts] my case, I
- 38:21already have two different projects. If
- 38:24you don't have any, you can just press
- 38:26this button and let's actually create
- 38:28one from scratch. I'm going to call it
- 38:30as home AI. I will leave everything as
- 38:33default like the region, but you can
- 38:36update it obviously. Then let's just um
- 38:39kind of like enable some of these
- 38:41options for like object storage. We can
- 38:44say something like for the bucket name
- 38:46you can put anything but I'll just say I
- 38:49don't know let's just say uploads.
- 38:51[snorts]
- 38:53Then we can enable the functions AI
- 38:55gateway. Now they have the real time
- 38:57features as well which means you don't
- 39:00really need to reload your app. Anytime
- 39:02something updates, it'll immediately
- 39:05update in the UI. And let's get the
- 39:08authentication option as well. I'm going
- 39:10to create the project
- 39:13and then you're going to get a prompt
- 39:15where you can set this up in your
- 39:17project. Right? So I would say don't
- 39:19close this file or at least copy this
- 39:22prompt and save it somewhere so that
- 39:24once you get to that phase you'll just
- 39:27paste this prompt to clot and this
- 39:31project would be set it up in your
- 39:33codebase. Okay. So either don't close
- 39:36this or copy it and save it to somewhere
- 39:38like in your notes and then we will be
- 39:41using it in a couple of minutes. Um so
- 39:44with that said we can go to the project
- 39:47here. Here you can explore the
- 39:48dashboard. You have like overview, the
- 39:50integrations, monitoring, branches, um
- 39:54settings and so on. Here, let's just say
- 39:56we select the database. Right here, we
- 39:58can see the data that you are storing.
- 40:01And these are the things that I'm going
- 40:03to get into. For now, I don't really
- 40:05want to confuse you, but
- 40:09you know, the tables will be the place
- 40:11where you'll see all the data. Okay? So
- 40:14this will be things like maybe um users
- 40:17or like preferences, the generated um
- 40:22like how many credits users spend, what
- 40:24they have generated and so on, right? Um
- 40:28so yeah, that's neon setup. Super
- 40:30simple. Here we'll just press the
- 40:32connect and we are going to copy this
- 40:34environment variable. This is a secret.
- 40:37Don't share it with anyone else. Um but
- 40:40yeah, I'm going to walk you through it a
- 40:41bit later in the video. The next tool
- 40:44that we'll be using is going to be image
- 40:46kit. Again, I'll provide you the link in
- 40:48description. It's completely free to get
- 40:50started with. This is where we can
- 40:52optimize and deliver images and videos
- 40:55in real time. Like they have the entire
- 40:58platform which makes everything super
- 41:00simple and easy for us. Um, all we need
- 41:03to do is just using their APIs and using
- 41:06their documentation. Now thankfully with
- 41:09AI we don't really need to read 100
- 41:12lines of u you know 100 pages of
- 41:14documentation. We can just copy and
- 41:17paste and they have built a really good
- 41:19documentation. Let's just say we would
- 41:21like to go with React Native. Let me
- 41:24find it where that is. Um like anyways
- 41:27let's just go with React.
- 41:30Let's just say I want to set this up.
- 41:33Like back in the old days, you have to
- 41:35read most of this. But now you can just
- 41:37say copy for LLM and then paste it right
- 41:41here like in a separate session. If you
- 41:44just paste this in, um it is just going
- 41:47to set that up, right? And I'm going to
- 41:49show you a little bit later in the
- 41:50video. Go ahead and create an account. I
- 41:53already have, so I'll just log in. Once
- 41:56you're logged in, you will be in the
- 41:58dashboard where you can see all the
- 42:00SDKs. Here you can press it. you know,
- 42:02if you're building something for NexJS,
- 42:05Vue.js, Astro, really anything, um, you
- 42:09can take a look at their quick starts.
- 42:11Here we are using Expo. I'm going to get
- 42:13into that. Right here, they have React
- 42:15Native and we'll be using them. But
- 42:18other than this, you have the media
- 42:20library. Here you will see all the
- 42:23files, videos, assets that you store.
- 42:26Like in my case, these are coming from
- 42:28my past projects and tuto tutorials. But
- 42:31other than this, you also have some
- 42:34example images and videos that they
- 42:36provide. So here I have different
- 42:38folders and within this I store files.
- 42:44Like here you can tell these are the
- 42:45things that I stored in the past. And
- 42:48we're going to do some more in this
- 42:49video. Other than this, we have the
- 42:52developer options. I'm going to get into
- 42:54this a little bit later in the video. We
- 42:56have the image kit ID, URL, endpoint,
- 42:59you know, public key, private key. We'll
- 43:02be using them.
- 43:04Okay. So, these are the tools um that we
- 43:07will need which is for the database and
- 43:09for the image storage as well as the
- 43:13image optimizations.
- 43:15All right. So, after some time, here we
- 43:16go. The application is ready. I just put
- 43:19them side by side. The entire UI has
- 43:21been generated. As you can tell, we even
- 43:24have this beautiful um kind of like
- 43:26effect where we have before and after.
- 43:30This is like what you attach, right? And
- 43:32then this is the designed end result by
- 43:35AI now. Let's go ahead and try to log in
- 43:38with one of these options. Obviously,
- 43:40this is fake data like it is not
- 43:42actually logging in because we are just
- 43:45building the UI.
- 43:48Um here we have three different tabs. We
- 43:50have the profile, our past designs,
- 43:54right? And then we have the create
- 43:56screen. Now I think overall the colors
- 43:59are looking pretty cool just like what
- 44:02we have right here. Let me maximize it.
- 44:05Um but like the texts are like pretty
- 44:08small. This is one of the follow-ups
- 44:11that I'm going to have. Other than this,
- 44:13I think we can give it a go.
- 44:17I'll just open up the library but I
- 44:20think we need to have a photo so that we
- 44:24can kind of like have an actual result
- 44:28like we can attach one of them but none
- 44:31of them are a
- 44:33you know a room kitchen or that kind of
- 44:36stuff. So it's not going to work for
- 44:38now. Let's skip that. And here I'll just
- 44:40say overall I like the colors and the
- 44:44design but the texts are very very
- 44:47small. I want you to just analyze my
- 44:51design and then
- 44:53you know upscale the text
- 44:58or I'll just say upscale the font size.
- 45:01Let's say
- 45:04other than this I think.
- 45:07Yeah, for now we'll just send this and
- 45:08let's see what we're going to get back.
- 45:11All right, so after a couple of minutes,
- 45:13Claude has gone through every single
- 45:15screen that I had. And here you can tell
- 45:18before and after versions are right
- 45:21here. And I think this looks clean. Now,
- 45:23I don't really like this extra text. So,
- 45:26what I'll be doing is taking a
- 45:28screenshot. And I'm going to paste this
- 45:30in. And then I'll say here where it says
- 45:33snap a photo, pick a style and see your
- 45:37space, I want you to remove that text.
- 45:40Um, also make this headline or you know
- 45:44the heading a bit larger.
- 45:48So I'm going to run this. It should
- 45:50update immediately.
- 45:52All right. So here I have accidentally
- 45:54paused the video, but here we go. It's
- 45:56been updated. the extra text or that
- 45:59description has been removed. Now, the
- 46:02other followup that I'm going to have is
- 46:05these logos, right? So, I'm going to
- 46:07paste this in and let me show you what
- 46:09I'll be doing. Like right here, I'll
- 46:12just search for Google logo. I want to
- 46:15use this kind of a logo, right?
- 46:19So, I can take a screenshot or like copy
- 46:21the image. I'm going to paste this in
- 46:24and I will say I want you to make the
- 46:27Apple and Google logos a little bit
- 46:29larger. Um, also for both of them, use
- 46:33the actual logos. Like for Google, use
- 46:37this image that I attached. Make sure to
- 46:40have a transparent background. And for
- 46:42email, you can use an envelope icon on
- 46:45the left. Make sure the logos are
- 46:49aligned vertically.
- 46:52Okay. So, I'm going to run this. Let's
- 46:54see what we're going to get back. I
- 46:56think after this I can search, sorry, I
- 46:59can ask for the size to be a bit larger
- 47:03because I think the logos are pretty
- 47:06small right now.
- 47:08Um, notice how I'm asking for follow-ups
- 47:11one at a time because I think it is
- 47:14easier to build one thing at a time for
- 47:18agent rather than asking for every
- 47:20single change. Okay, so this is what we
- 47:23got. But I think I don't really like
- 47:25this completely. What I'll be doing, I
- 47:28think I don't need to take a screenshot,
- 47:30but I'll just put it anyways. I'm gonna
- 47:32say put the icons right next to the text
- 47:37where it says continue with Apple,
- 47:39Google or email. Just don't have this
- 47:42much of space. Um, also make the text a
- 47:47little bit larger. Not too much, but
- 47:49just a tiny bit. Just make the headline
- 47:53a little bit larger as well.
- 47:58All right. So, here we go. So, it's been
- 47:59updated and I'm happy with this end
- 48:02result. Um, these follow-ups are always
- 48:05up to you. You can ask for really
- 48:07anything, but here I just tried to show
- 48:10you that you should ask for one thing at
- 48:12a time. And also, you can send
- 48:15screenshots just to give a better
- 48:18reference. Here I will ask for one more
- 48:21thing, which is that this before and
- 48:24after indicator is going infinitely.
- 48:26I'll just say do it at the beginning for
- 48:29like once or twice and then just stop.
- 48:33So like I should be able to do it. I
- 48:35don't really want to have it infinitely
- 48:37going automatically.
- 48:40For this before and after indicator only
- 48:44run it at the beginning for like once or
- 48:46twice um and then leave it for user to
- 48:50play with it. I don't really want this
- 48:53indicator to run infinitely to the right
- 48:56and left.
- 48:59Okay. So let's see if this will be
- 49:01fixed. So I think it has been fixed. Now
- 49:05it rerun the application. Let's see.
- 49:09It run for two times and now it has
- 49:12stopped. Okay. So this is what I'd like
- 49:14to have. Um, from here on out, you can't
- 49:17really ask for any kind of other
- 49:19[snorts] modifications in the
- 49:21application itself. You can take a look
- 49:24at the other tabs. But here, I think I
- 49:27will not waste any time. I just show you
- 49:30the workflow where you can take a
- 49:31screenshot, paste it right here, and
- 49:34then ask for the followup. Um, yeah, I
- 49:37think I will leave the UI design right
- 49:39here. All right. So at this point we
- 49:41have been talking to cloud for a while
- 49:44and as you can see we have already
- 49:46generated a crazy amount of code. We
- 49:49have around 90 file changes and we
- 49:51haven't even started building the actual
- 49:54functionality yet. Now the problem with
- 49:56AI generated code is that it is really
- 49:59easy to generate hundreds or even
- 50:02thousands of lines of code. But how do
- 50:05we actually know if that code is good
- 50:07enough to ship? like is it following the
- 50:10best practices? Are there any bugs or
- 50:13security issues? And if you're working
- 50:16with a team, how do you know whether
- 50:18your teammates would actually approve
- 50:21these changes? And obviously, we don't
- 50:24want to spend hours manually going
- 50:26through every single one of these files.
- 50:29So, this is where Code Rabbit comes in.
- 50:32Code Rebbit is the governance layer for
- 50:34Agentic software, enabling teams of
- 50:37every size to trust the code they ship
- 50:40while moving at Agentic speed. And by
- 50:43the way, I'll leave a link in the
- 50:45description where you can start with a
- 50:4814-day free trial of the advanced plan.
- 50:51Getting started is really simple and it
- 50:53only takes two clicks to connect it to
- 50:56your GitHub repository. And I'm going to
- 50:58show you how to do that. And what we're
- 51:01going to do is using the code rabbit
- 51:04review which can review our pull
- 51:06requests, understand the context of our
- 51:09codebase and point out potential issues
- 51:13before we merge our changes. Now to be
- 51:16able to use it, first go ahead and
- 51:18create an account with the link in
- 51:20description. Then I'll show you how you
- 51:22can create a GitHub repo and then
- 51:24connect it in a second.
- 51:27All right, so let's get started with
- 51:29creating a GitHub repository. For this,
- 51:32I will assume that you have a GitHub
- 51:34account. And once you have and once
- 51:36you're logged in, just press this button
- 51:39and say new repository. Or we can visit
- 51:42github.com/new.
- 51:44Then let's give it a repository name.
- 51:46You can't really give anything. I'll
- 51:48just say home-ai.
- 51:50And then I'll leave everything as is.
- 51:52For now, I'm going to just make it
- 51:54private. But at the time that you are
- 51:56watching it's going to be public. Okay,
- 51:59just before I publish this video I'm
- 52:01going to make this to be public and then
- 52:03I'm going to say create the repository.
- 52:07So this will take couple of seconds and
- 52:09then we're going to be in this UI. I'm
- 52:11going to copy this and then I'll go back
- 52:13into cloud. Now here I'll open up a new
- 52:16session and then I'll say first let me
- 52:20paste this in. I'm going to say I want
- 52:23you to go ahead and push this codebase
- 52:26to this repo that I attached. Now, for
- 52:29all the current changes, which is 83
- 52:32different lines of code or 83 files
- 52:36changed, um don't really push it or
- 52:39commit it now. I want you to just commit
- 52:42the initial commit. Okay? So, just send
- 52:45the initial commit to this repo. for all
- 52:48these changes I will create a pull
- 52:51request. So just leave that to me but
- 52:54send the initial commit.
- 52:58Okay. So probably I could have explained
- 53:00this in shorter format but I think you
- 53:04got the point. What I'm trying to do
- 53:06here is that I will not commit these new
- 53:09changes because I'm going to show you
- 53:11how we can create a pull request and how
- 53:14code rabbit can help us out. Right. Um,
- 53:18for now, let's just send it and see what
- 53:20we're going to get.
- 53:22Hopefully CL will understand it. I'm
- 53:25pretty sure it'll understand, but let's
- 53:27just see.
- 53:34Okay, so let's go back right here. If I
- 53:37reload, I should have the initial
- 53:39commit. Okay, here we go. The latest
- 53:42changes are not here, which is fine. I
- 53:45did this on purpose. Now we will create
- 53:47a pull request and then we're going to
- 53:50see code rabbit in action. Now before we
- 53:53create the pull request you should visit
- 53:55your dashboard and then press the scopes
- 53:58right here. We are going to give access
- 54:00to our repositories so that quadreit can
- 54:03read our commits right the changes that
- 54:06we have um so that it can give a
- 54:10suggestion right or it can have like a
- 54:12code review. Now in my case I have given
- 54:16access to every single uh repo that I
- 54:19have. But if you want to add
- 54:21specifically or just like individually
- 54:23you would add that button. Let me just
- 54:26go back like right here I said give
- 54:28access to all the repositories. But if
- 54:31you want to give specific one then
- 54:33obviously you would press this option
- 54:36but I would recommend
- 54:38that you would select all of them.
- 54:40Right. I just say sync to repositories
- 54:42so that uh you know anytime you create a
- 54:45new project you don't really need to
- 54:47visit this dashboard and then give
- 54:49access manually. Okay, once you have it
- 54:52now we can go ahead and create a pull
- 54:55request. Now for this what I'll be doing
- 54:57is pressing commandshiftp
- 55:00which will open up the command pallet
- 55:03and then I'm going to say um toggle this
- 55:06status bar visibility and you can open
- 55:09this up with command shiftp or control
- 55:13shiftp. Okay.
- 55:15Okay. Then right here I'm going to press
- 55:18this button and then we will create a
- 55:20new branch. Let's give it a name. You
- 55:22can call it anything really. I'll just
- 55:24say UI design because this is what we
- 55:27have done. Um, now we created the branch
- 55:30right here. We would like to go and
- 55:33commit our changes. First, you would
- 55:35like to press this button to stage all
- 55:37the changes. Then you can add a commit
- 55:40message. But let's just generate one
- 55:42with the help of AI.
- 55:47This will take couple of seconds. But
- 55:49once it is ready, we'll just commit.
- 55:51Here we go. and then you'll say publish
- 55:54the branch. So this will basically push
- 55:57this branch to GitHub. Okay, now let's
- 56:00go ahead and take a look at it under the
- 56:02repo. Like 3 seconds ago, we just got
- 56:05the UI design branch. Let's compare and
- 56:09create the pull request. Like here we
- 56:11have almost like 10,000 lines of changes
- 56:15in total. Like we have this amount of
- 56:18additions, this amount of deletions and
- 56:21like it's really impossible to go
- 56:24through it in couple of minutes, right?
- 56:26You have to literally just take couple
- 56:29of hours if not days and read the entire
- 56:32thing, see if everything is done
- 56:34correctly. This is not really for
- 56:35humans, right? We're going to create a
- 56:38pull request where code rabbit can
- 56:40literally go through it in a couple of
- 56:43minutes and then just come up with a uh
- 56:47what what do we call it like a code
- 56:49review right it'll it'll tell us what we
- 56:52are missing or what is uh the security
- 56:56issues that we have if we are not
- 56:58following any best practices and so on.
- 57:01So this will take couple of seconds and
- 57:04it should be ready right here. If you
- 57:07have set it up bit successfully, this is
- 57:10what you're going to see, right? So, it
- 57:11is in the pending state. Um, so yeah,
- 57:15I'll just wait for this to be completed.
- 57:17Once it is done, I'll just be right
- 57:19back. All right. So, after a couple of
- 57:21minutes, the code rabbit is ready. Here
- 57:23we go. We have a quick summary of the
- 57:26changes like what we have added, what we
- 57:28have deleted, and kind of like what we
- 57:30have updated and so on. You can read it
- 57:33if you're interested. But what I'm
- 57:35interested in is the suggestions. So
- 57:38here it is like it's going to tell you
- 57:40if it is a major issue or like a minor
- 57:43fix, right? And then you'll see the
- 57:46explanation like where is this coming
- 57:49from and then the solution. Now
- 57:51thankfully this is just a prompt that
- 57:53you can give it to cloud rather than you
- 57:56know like copying and pasting or like
- 57:58typing the code by hand. This is not a
- 58:00thing anymore. You just copy the prompt
- 58:03and give it to cloud. Obviously, you're
- 58:05going to have bunch of different
- 58:06suggestions. So, you can go ahead and
- 58:09take a look at them individually where
- 58:11you can copy the prompt, go back into
- 58:13cloud. But there is a better option
- 58:16where you can just get all the fixes in
- 58:20one single prompt. Okay?
- 58:23And you can find it at the very top of
- 58:26the suggestions. This is what I'll be
- 58:28doing. I'll just copy this and I'll go
- 58:30into cloud in a second but let's just
- 58:32scroll to the bottom and see if we have
- 58:34any major issues. Looks like we have and
- 58:37anytime you have a major issue it is
- 58:40going to indicate that. Now in this
- 58:42specific poll request we don't have any
- 58:46um like security issues because we only
- 58:48built the UI but later in the video I'm
- 58:51going to show you that it'll actually
- 58:53show us the security issues as well. for
- 58:56now these are the things that are
- 58:58related to functional correctness. I
- 59:01don't know maybe syntax or the way that
- 59:03we have written the functions and so on.
- 59:06Okay.
- 59:08So I'm going to go ahead and visit my
- 59:11cloud instance and then I'm going to
- 59:13paste this in. I don't even need to give
- 59:16any explanation because rabbit has
- 59:19already explained and I'm going to run
- 59:21this. Just make sure that you are still
- 59:23under the same branch. Okay, just follow
- 59:26as I do. And then this will take a
- 59:28couple of minutes or seconds for cloud
- 59:31to complete it. Once it is done, we're
- 59:33going to send this as a new commit. And
- 59:37now while cloud is going over these
- 59:39fixes, we can go back and right here
- 59:42there is explain change, right? And this
- 59:45is coming from code rabbit as you can
- 59:47imagine like this is going to load the
- 59:50entire dashboard where you can have all
- 59:53the changes and everything has been
- 59:55categorized. So instead of seeing all
- 59:57that you know 83 different files it's
- 1:00:01going to put them under specific
- 1:00:03categories and it's going to put it um
- 1:00:06in like organized way so you can see the
- 1:00:08related files in the specific sections.
- 1:00:12I'm going to leave it for you to explore
- 1:00:14but you know you can go over that see
- 1:00:17which file this is how many lines has
- 1:00:19been added deleted or like if it has any
- 1:00:22issues right here if it is major you
- 1:00:25know minor uh how many files touched and
- 1:00:29so on. Now also in the dashboard there
- 1:00:31is this sidebar button that you can
- 1:00:34press. Okay so it is right here and
- 1:00:36right here we have the continue. You can
- 1:00:39press that and you can ask anything
- 1:00:41about this pull request to code rabbit.
- 1:00:44So here I'm going to say something like
- 1:00:47in this poll request do we have anything
- 1:00:50related to chat messaging implemented or
- 1:00:53like video calling?
- 1:00:55So I know that the answer is no. But you
- 1:00:58know let's say you're the team leader
- 1:01:00and you would like to see if they have
- 1:01:02included anything like this. Right? This
- 1:01:04is just an example but you get the
- 1:01:07point. You can literally ask anything
- 1:01:09about this pull request and code rabbit
- 1:01:12will go over it and then it'll say, you
- 1:01:14know, it'll give you the answer. In my
- 1:01:17case, it'll say no. But let's just wait
- 1:01:19and double check.
- 1:01:22Okay, so here you can tell it says this
- 1:01:25pull request has no chat messaging and
- 1:01:28no video calling implemented, which is
- 1:01:31great. So I'm going to go back. You got
- 1:01:33the point. I'll leave it for you to
- 1:01:35explore this. This is really really
- 1:01:37helpful because otherwise with the
- 1:01:39GitHub's UI it would be almost like
- 1:01:42impossible to go over these changes and
- 1:01:45put it in that you know organized UI.
- 1:01:49Now I'll go back into VS Code. Here we
- 1:01:52go. We have all these files that have
- 1:01:54been updated. We will just commit all of
- 1:01:57them. Let's get a commit message.
- 1:02:02I'll say commit and sync this up.
- 1:02:05Now, previously we only had one commit.
- 1:02:08Now it's going to be two. Notice how
- 1:02:11it'll update. Here we go. Now we can
- 1:02:14scroll to the bottom. Code Rabbit will
- 1:02:16try to run another code review on these
- 1:02:19changes. Like it'll be right here in a
- 1:02:22couple of seconds. But I'm not going to
- 1:02:24wait for it because we already run this
- 1:02:27on top of code rabbit, right? So I'm
- 1:02:30going to say merge pull request. Let's
- 1:02:32confirm it.
- 1:02:35It is done successfully. Now we can go
- 1:02:37back and every single time like don't
- 1:02:40forget to switch to the master. Okay, in
- 1:02:44your case that could be main which is
- 1:02:46also fine. Just press that. It is the
- 1:02:48same thing. And then press this kind of
- 1:02:51like reload thing. Um it'll basically
- 1:02:55get the latest changes. Okay, it's going
- 1:02:57to pull the latest changes that we had
- 1:03:00right here with all the fixes and
- 1:03:02everything. Now our project is up to
- 1:03:05date. It is right here as expected.
- 1:03:09Okay. So this is how we build the UI
- 1:03:11design and how we run the code reviews
- 1:03:15with code rabbit. In the upcoming
- 1:03:17sections, I'm going to show you more
- 1:03:19about that. Um but yeah, this is the
- 1:03:21general workflow so far. And let me
- 1:03:24actually go back to our diagrams and I
- 1:03:27want to show you this thing. So we have
- 1:03:30planned our project. We generated the UI
- 1:03:33design based off of that. Then we are
- 1:03:36going to build one feature at a time,
- 1:03:38right? And we're going to selfch check
- 1:03:40the things and I think we already done
- 1:03:42this in a way that you know like I have
- 1:03:45manually press these buttons and see if
- 1:03:47it is working. Obviously this is fake
- 1:03:50but we still kind of like manually
- 1:03:53checked it. And then at the very end we
- 1:03:55have run an AI code review check. If
- 1:03:59this is done, we can save the progress
- 1:04:01and then move on with the next feature.
- 1:04:04Right now, in the section, in the next
- 1:04:06section, we are going to run this again.
- 1:04:08And then in the next section, you get
- 1:04:10the idea. We're going to run it again
- 1:04:12and again until we are done with this
- 1:04:14project. Okay. So, with that, I'm going
- 1:04:17to go ahead and leave this section right
- 1:04:19here. And hopefully, I'll see you in the
- 1:04:21next one. All right. So, now we have our
- 1:04:24entire UI design ready. All we need to
- 1:04:27do is replacing this fake data with the
- 1:04:30actual data and logic and it's going to
- 1:04:33be easier than you think. We will just
- 1:04:36need to kind of like connect our back
- 1:04:39end right and the tools that we would
- 1:04:41need. So here I'll just directly jump
- 1:04:44into cloud and I'm going to say let me
- 1:04:46just first get the plan MD file. I'm
- 1:04:50going to attach it.
- 1:04:52Okay. Now I'll say now in my mobile
- 1:04:56application I'm pretty happy with the UI
- 1:04:59design but everything that I have right
- 1:05:02now is just fake data. Everything is
- 1:05:05hardcoded which is fine. But now it is
- 1:05:08time to replace them with real data and
- 1:05:12real back end with the logic. For this
- 1:05:15you can take a look at my plan MD file.
- 1:05:18Um go ahead and implement as much as you
- 1:05:21can. Um if you need anything that uh if
- 1:05:24you need anything that I need to do like
- 1:05:26visiting a dashboard and getting an
- 1:05:30environment variable, a key or any kind
- 1:05:32of configuration just let me know.
- 1:05:36All right. So this part is really really
- 1:05:38important. You just say if I need to do
- 1:05:41anything just let me know. Right? Don't
- 1:05:43assume that I already done that. So here
- 1:05:46we might need to visit the neon
- 1:05:49dashboard or image kit dashboard to grab
- 1:05:52some environment variables which is like
- 1:05:54a secret right and then here I'll say
- 1:05:58don't um don't make it long just like I
- 1:06:02give me a concise list like step one get
- 1:06:06this step two do this and explain like
- 1:06:10where and how I would get them.
- 1:06:13Okay, so I think that's my entire
- 1:06:15prompt. I'll just go ahead and run it.
- 1:06:18This will take some time obviously
- 1:06:20because it'll need to set up all these
- 1:06:22tools, read the plan MD, and then you
- 1:06:25know come up with the working version of
- 1:06:28our application. But let's just be
- 1:06:30patient and wait. I'll be right back
- 1:06:33once this is done. All right. So after
- 1:06:36some time, cloud is done. And here it
- 1:06:38says you need to go through these steps,
- 1:06:40right? It says I have done everything
- 1:06:43but these are the things that you need
- 1:06:44to do. So the first things first it says
- 1:06:47you need to set up neon and for this you
- 1:06:49can get the database URL right now. If
- 1:06:52you remember uh previously in the video
- 1:06:55I said that we got a prompt that you
- 1:06:58should copy and save because we are
- 1:07:00going to be using it in the future. Now
- 1:07:02this is that time here. I'll just go
- 1:07:05ahead and run this prompt. So I have
- 1:07:07copied it right and now I'm going to
- 1:07:09paste it. As you can tell, this is going
- 1:07:12to set up neon and it is going to
- 1:07:15connect it to this project which is
- 1:07:17homeai that we created. Right? So here
- 1:07:20I'll go ahead and run it. Hopefully you
- 1:07:22have this prompt as well because I've
- 1:07:25told you that you should save it uh
- 1:07:27multiple times. Right?
- 1:07:30Okay. So I'm going to run this.
- 1:07:31Hopefully it is going to kind of like
- 1:07:34handle these options. If not, um, it is
- 1:07:37going to give us a update, but like I'm
- 1:07:41pretty sure it's going to set that up.
- 1:07:44The other thing is that we need to get
- 1:07:46an API key. Now, I'll be using OpenAI.
- 1:07:49Um, but you can use really anything. You
- 1:07:52can use some free options as well, but
- 1:07:56basically we we need this API key
- 1:07:58because
- 1:08:00when our users wants to generate an
- 1:08:03image, right? So they are going to
- 1:08:05provide an empty room image and then
- 1:08:08they're going to get something like
- 1:08:09this, right? So we're going to have
- 1:08:10before and after. To generate the after
- 1:08:13image, we need some AI image models. Um,
- 1:08:16in this case, I'll be using OpenAI. I
- 1:08:19already have like maybe eight or $10
- 1:08:22that I have uploaded, but you can upload
- 1:08:25I think even like $5, right? And it's
- 1:08:28going to last for a very very long time.
- 1:08:31Um, right here, just go under the API
- 1:08:33keys. By the way, you should visit
- 1:08:36platformopenai.com,
- 1:08:38right? And then right here, I'm going to
- 1:08:40create a new secret. Let's just say home
- 1:08:43AI. Yeah, home AI should be enough, but
- 1:08:46I'll just say tutorial as well. I'll
- 1:08:48leave it as default.
- 1:08:51For the expiration date, let's just say
- 1:08:541 month. And then I'm going to say
- 1:08:56create the secret key. I'm going to copy
- 1:08:59it. and then I'll go right here. Let's
- 1:09:02see what cloud it tells us.
- 1:09:10Okay. So, I think
- 1:09:13I'm just looking. Do we have the env
- 1:09:16file? Yeah, we have which is right here.
- 1:09:21But it only includes things that are
- 1:09:24related to neon, right?
- 1:09:27We have EMV example as well. Okay. So we
- 1:09:31have OpenAI API key. So just paste your
- 1:09:34value right here. Right. Copy it and
- 1:09:37then like you should not really have the
- 1:09:39value right here in example file. Okay.
- 1:09:42Just go under the EMV local and paste it
- 1:09:45right here. So once again you should
- 1:09:47have open AAI API key which is equal to
- 1:09:51your value that you just copied from the
- 1:09:54platform openai.com.
- 1:09:56Okay. So just copy this value and then
- 1:09:59put it right here.
- 1:10:01Okay. So with that I think we can take a
- 1:10:04look at the next step. So we can get the
- 1:10:07recent
- 1:10:08um API key. This is where you can send
- 1:10:12emails. So I'm going to get the resend
- 1:10:14API key in a second. But first let's set
- 1:10:17up the image kit. So for this here it
- 1:10:19says how we can get that but I already
- 1:10:21know. So I'll just visit imagekit
- 1:10:23dashboard. Scroll to the bottom. Press
- 1:10:26the developer options and then here we
- 1:10:28have the public key. So I'm going to
- 1:10:30copy it. But first let's go into thev
- 1:10:33example. I'm going to copy all of them
- 1:10:36and then put it under the env.local.
- 1:10:39Now, if you're confused about both of
- 1:10:41these files, basically EML local is
- 1:10:44where you put the actual values. The
- 1:10:47example file tells you which keys you
- 1:10:50should have under the EMV local. Okay.
- 1:10:55Now, we're going to get the public key.
- 1:10:57So, I'm going to copy it, paste it right
- 1:11:00here. Save this file. We're going to get
- 1:11:03the image kit URL endpoint,
- 1:11:07which is right here. paste it. Then we
- 1:11:09need to get the private key. Now,
- 1:11:11anytime you want to get this, it will
- 1:11:14send you a six-digit verification code.
- 1:11:16Let me just go ahead and grab it from my
- 1:11:19email. So, I just got the value. I've
- 1:11:22copied it and paste it. Now, I can get
- 1:11:24the private key. I'm going to go ahead
- 1:11:26and paste it right here as well. And
- 1:11:29then let's see if cloud is done.
- 1:11:33I think it is still building, but let's
- 1:11:35just see if we are missing anything
- 1:11:37else.
- 1:11:38here. I think it says like you should
- 1:11:40get the Google keys as well. I'll just
- 1:11:43say if you can do it like in development
- 1:11:46maybe we would not need to get this but
- 1:11:49other than this we just need to get the
- 1:11:51recent API key. All right. So I put the
- 1:11:54VS code in the simulator side by side.
- 1:11:57So far I haven't really gotten the
- 1:11:59resend API key. It is not mandatory for
- 1:12:02now. Like just know that this is a way
- 1:12:05for you to send emails automatically.
- 1:12:08Let's say one of your users said um I
- 1:12:10forgot my password. You need to send
- 1:12:13them an email where they can verify and
- 1:12:16create a new password. Right? And you
- 1:12:18can send the email thanks to a tool like
- 1:12:21resend. Right? So for now we don't
- 1:12:24really have to add it. But other than
- 1:12:27this um I think eventually you can add a
- 1:12:30tool like this. Right? just before you
- 1:12:32go live. Now here what I have done if I
- 1:12:35scroll to the bottom off camera I said
- 1:12:38for now we don't really want to use the
- 1:12:40AI gateway instead just use my open AI
- 1:12:43API key and then I said um let's use
- 1:12:46image kit um also if I don't really need
- 1:12:49to get the Google API keys I just let's
- 1:12:52not get it right but I think we need to
- 1:12:55get this even in development because
- 1:12:58otherwise we cannot log to login with
- 1:13:01Google
- 1:13:03And for Apple, you can log in, but you
- 1:13:06just need to sign in to your iCloud
- 1:13:09account from right here to your Apple
- 1:13:11account. I'm not going to do it in the
- 1:13:13simulator, but it is working. Um, here
- 1:13:16I'll just try to sign up with email
- 1:13:19here. I'll go ahead and just put my
- 1:13:21name. Let's say John. And then for the
- 1:13:24email, I'm going to put this test email
- 1:13:26that I have. I'm going to get the at
- 1:13:29sign. Put it right here. Oops.
- 1:13:32Let's say gmail.com.
- 1:13:34And for the password, let's just put
- 1:13:36something like
- 1:13:38um I don't know. Let's just put eight
- 1:13:40characters from 1 to 8.
- 1:13:48Let's just see. It says
- 1:13:52so what you can do is basically taking a
- 1:13:55screenshot. This is completely fine if
- 1:13:57you're getting errors like this is real
- 1:13:59world programming. Not everything will
- 1:14:01work magically in the first try. Right?
- 1:14:04So I'm going to scroll to the bottom
- 1:14:06here. I'm going to say this is the error
- 1:14:09that I get when I try to sign up with
- 1:14:11email and password. What is the issue?
- 1:14:14Go ahead and fix it.
- 1:14:18So after 5 minutes, looks like it has
- 1:14:20been fixed. Let's go ahead and test this
- 1:14:22out again. I'll just put this name.
- 1:14:26Let's put the same email.
- 1:14:30Let me get the add sign. For some
- 1:14:32reason, I cannot make it like right
- 1:14:34here. Um, I'm just going to copy it and
- 1:14:37paste it.
- 1:14:47Okay. So, looks like this time it has
- 1:14:50actually worked out. Um here it says
- 1:14:53this is your name that's the email.
- 1:14:55Let's just double check by going to our
- 1:14:58neon dashboard. Um under the overview
- 1:15:02right select your project which is home
- 1:15:04AAI and then right here we are going to
- 1:15:06select the better oath. We should have
- 1:15:09one user.
- 1:15:12Um looks like we don't. Let me just
- 1:15:15refresh. Okay. Let's take a look at the
- 1:15:17database if we have it.
- 1:15:21Um I'll go under the database maybe
- 1:15:23under the tables.
- 1:15:28So under the tables we have account um
- 1:15:31designs we have verification we have
- 1:15:34session and user. Okay. So looks like
- 1:15:36user has been saved right here which is
- 1:15:39fine here. Can tell that's the name that
- 1:15:42I put that's the email if email is
- 1:15:44verified or not. This is not verified. I
- 1:15:47just only signed up. Right. and we are
- 1:15:50logged in. To be able to make this true,
- 1:15:53you should send a like six-digit code to
- 1:15:56the email and then kind of like have
- 1:15:58that process. But I'll just keep it
- 1:16:00simple. Uh but just know that something
- 1:16:02like this existed. Now I am back in VS
- 1:16:06Code and I'm going to say now let's try
- 1:16:08to set up the Google authentication.
- 1:16:11Please let me know the steps that I need
- 1:16:13to go through.
- 1:16:17So here are the steps that we need to go
- 1:16:19through. First go ahead and visit
- 1:16:22console.cloud.google.com.
- 1:16:25This is what you're going to see. And
- 1:16:27then just say select a project. And from
- 1:16:30here just press new project. Right? And
- 1:16:33then let's give it a name. I'm going to
- 1:16:35say home-ai.
- 1:16:37And I'm going to say create.
- 1:16:42Once this has been created, I'm going to
- 1:16:43show you that by the way. Um, here it
- 1:16:46says you need to set up the consent
- 1:16:48screen. So, I'll go right here. Project
- 1:16:51has been created. Let's say select this
- 1:16:53project.
- 1:16:57Home AI has been selected. Now, let's
- 1:16:59say you're right here and you don't know
- 1:17:01how to set up the consent screen, right?
- 1:17:04What I do is usually I just take this
- 1:17:07screenshot of where I am, right? Let me
- 1:17:10just do it once again. I'm going to
- 1:17:12maximize the screen
- 1:17:14and then I just paste it into cloth like
- 1:17:17here I say
- 1:17:19this is what I see. I just created the
- 1:17:22project which is the first step but now
- 1:17:25I don't really know what to do. Can you
- 1:17:27please tell me where to click and how to
- 1:17:30proceed?
- 1:17:32Like this is what I do all the time.
- 1:17:34Like anytime I'm confused,
- 1:17:37let's say I'm using the Google dashboard
- 1:17:39for the first time and I don't know how
- 1:17:41to use it, right? I just ask cloud to
- 1:17:44walk me through it, which is completely
- 1:17:46fine. So, I'm going to run this and then
- 1:17:48I'll get the next steps. All right, so
- 1:17:51here we go. It says you need to just
- 1:17:53press this button, which is going to
- 1:17:55take us to the consent screen, right?
- 1:17:57So, I'm going to press this link and
- 1:18:00then let's see what it says. It says
- 1:18:02press the get started button which is
- 1:18:05this one. I'm going to press and then
- 1:18:08like you get the point. You'll just
- 1:18:11follow these steps, right? I'll just do
- 1:18:13it pretty quickly. So here I'll just put
- 1:18:16the app information.
- 1:18:18Here it says put the restyle as the app
- 1:18:21name, but I'm just going to say home AI
- 1:18:24just like this. And then we need to put
- 1:18:26the user support email.
- 1:18:31I'm going to put my email which is this
- 1:18:34one. Let's say next.
- 1:18:38It says get the external.
- 1:18:43Again, put the email and we can finish.
- 1:18:46Like that's the beauty of taking a
- 1:18:48screenshot. Um
- 1:18:51just make sure to include the URL as
- 1:18:53well. This is what I have done and from
- 1:18:56the URL since I have home AAI it just
- 1:18:59give me the link directly taking me to
- 1:19:02this home AI as my project right so
- 1:19:06that's something to keep in mind and
- 1:19:08then here it says add yourself as a test
- 1:19:11user again it says presses
- 1:19:19and I think we need to just add
- 1:19:21ourselves as the test user
- 1:19:24But do we need to add email?
- 1:19:28Okay. So, we'll just add the email
- 1:19:32address.
- 1:19:36Let's save
- 1:19:40and then we need to create the O client.
- 1:19:47Okay. So, we're going to press the
- 1:19:49create create client. Like I have gone
- 1:19:51through this process so many times but
- 1:19:54it's been very long time so I can't
- 1:19:56really remember it exactly. I believe
- 1:19:58this should be the web application is
- 1:20:01it? Yes. And then let's say home AI
- 1:20:07dev because we are in development.
- 1:20:11And then
- 1:20:14we'll go right here.
- 1:20:18What do we need to add? something
- 1:20:20localhost. I'm going to copy this and
- 1:20:23then paste it.
- 1:20:25Um, here it says
- 1:20:33I think it should end with this. Is it?
- 1:20:38I'm going to copy it again. Let's take a
- 1:20:40screenshot. But what it says actually
- 1:20:43invalid origin must not contain a path
- 1:20:46or end west. Did I put it in the wrong?
- 1:20:50Yeah, I think I put it in the wrong
- 1:20:51place. Um, JavaScript origins should be
- 1:20:54empty. So, I'm going to delete it from
- 1:20:56here, but it should be under the
- 1:20:58redirect URIs. Uh, I'm going to paste it
- 1:21:01once again. Let me copy it.
- 1:21:05Okay, now I think I can say create it.
- 1:21:08Let's see if we need to do anything
- 1:21:10else.
- 1:21:12Yeah, I'm just going to copy it.
- 1:21:17we can get the client secret.
- 1:21:21Let's add it under the
- 1:21:24enmv.local.
- 1:21:25So, first I'm going to paste the key.
- 1:21:29Sorry, I'm going to paste the value and
- 1:21:31then here I'm going to get the keys.
- 1:21:34That was the client ID. Let's cut it.
- 1:21:36Put it right here. Then we're going to
- 1:21:38get the secret.
- 1:21:41Wait, this is client ID. I'm sorry. This
- 1:21:44is client ID. I'm going to just copy it
- 1:21:46and paste it.
- 1:21:49And then this is the secret. I'm going
- 1:21:50to copy it.
- 1:21:52Paste it right here.
- 1:21:55Okay, I think that's the entire thing.
- 1:21:58I'll just say I have done everything and
- 1:22:01added the environment variables under
- 1:22:04the MV.local.
- 1:22:07Let's run it. And then here I'm going to
- 1:22:09say okay. I think there is nothing else
- 1:22:12that we need to do. The authentication
- 1:22:15for Google should work out. So here it
- 1:22:18says now everything should work out.
- 1:22:20Just go ahead and try to log in with
- 1:22:22Google. Let's actually do it. I'm going
- 1:22:25to say continue
- 1:22:30and then I'm going to select this.
- 1:22:35Now in this simulator I have already
- 1:22:37used this account that's why it can't
- 1:22:39remember it. But if you haven't used any
- 1:22:41accounts, then you need to put your
- 1:22:43email and password. Then it should work
- 1:22:45out. But looks like this has been
- 1:22:49failed. I think that's because this was
- 1:22:52not the email address that I put right
- 1:22:54here. Right. Um here I tried to add a
- 1:22:58user, but it is this email which is not
- 1:23:01matching with what I have. So maybe we
- 1:23:04should try to log in with this email,
- 1:23:08right?
- 1:23:10But I'll just double check and I'm going
- 1:23:12to ask it to cloud.
- 1:23:16So I got this error. And is it because
- 1:23:19the audience email address that I give
- 1:23:23is not the same that I tried to log in?
- 1:23:25Could it be because of this?
- 1:23:29So here looks like that's not the issue.
- 1:23:32It says you already have an account with
- 1:23:34that email. Right. So I'm just going to
- 1:23:36go ahead and log in. Then I'm going to
- 1:23:38delete this account. Let me get the at
- 1:23:41sign
- 1:23:43because I have already signed up with
- 1:23:45this account. Right. Um here I'll try to
- 1:23:47log in pretty quickly.
- 1:23:54Let's just say delete the account.
- 1:23:56Hopefully this should work out.
- 1:23:59This is going to delete my account.
- 1:24:01Right. Let's actually test this out. I'm
- 1:24:04going to reload. Hopefully, this account
- 1:24:07should be gone. Okay, now we can go
- 1:24:09ahead and try to log in.
- 1:24:19Okay, it didn't even ask me because that
- 1:24:22was the only email that I have. Now, it
- 1:24:25gets my actual name and surname from my
- 1:24:28Google account, right? Previously, it
- 1:24:30was John. But now if I go like right
- 1:24:33here, if I reload, I have this and it
- 1:24:36says email verified because we are
- 1:24:39logged in with Google.
- 1:24:41Our image is coming from Google as well.
- 1:24:46Okay. So everything is working as
- 1:24:48expected. So you get the idea. In the
- 1:24:50same way, you can go ahead and set up
- 1:24:52any other authentication
- 1:24:55provider that you wish. Now I think
- 1:24:58that's it for the authentication. We
- 1:25:01already tested out. Now maybe it is time
- 1:25:03to test out the actual image generation.
- 1:25:07For this, I'm going to go ahead and get
- 1:25:09some images and put it in my photos.
- 1:25:12Right. So, let's go and show you how we
- 1:25:15can do it. Right here in the Safari, I'm
- 1:25:18going to search for something like empty
- 1:25:21room image.
- 1:25:25And then I'm going to get one of them.
- 1:25:27So, let's just press and say save to
- 1:25:30photos.
- 1:25:32It is right here. Now, we can go back.
- 1:25:35Now, you can take a photo, but this is a
- 1:25:37simulator, so it doesn't have the
- 1:25:39camera. Um, this is not going to work in
- 1:25:42the simulator, but it should work out in
- 1:25:44your phone. For now, I'm going to just
- 1:25:46select a library option. Let's get this
- 1:25:49photo.
- 1:25:50Let's say this is the living room. Um, I
- 1:25:54want to go with a luxury style and let's
- 1:25:58say generate the design. So, we have a
- 1:26:01beautiful loading screen, but looks like
- 1:26:04this has failed. Um,
- 1:26:07like my connection is actually working.
- 1:26:09I'm going to take a screenshot and I'll
- 1:26:12try it once again. If it fails, I'll
- 1:26:15just paste it into cloud. My connection
- 1:26:18is actually working but I don't know why
- 1:26:22I'm getting this error. I also have my
- 1:26:25open AI key. Just go ahead and check
- 1:26:28what is missing.
- 1:26:31By the way, this is the error that I get
- 1:26:33when I try to generate an a design.
- 1:26:38Okay. So, I'm going to send this and
- 1:26:40let's see what would be the solution.
- 1:26:43All right. So, looks like cloud has
- 1:26:45fixed it. I'll go ahead and test this
- 1:26:47out. And if you're interested, you can
- 1:26:49read the solution. I'm just going to go
- 1:26:51ahead and press the library. I can get
- 1:26:54the same photo. Let's say living room
- 1:26:57and then luxury.
- 1:27:00We are in the loading state. Hopefully,
- 1:27:03after a couple of seconds, we should get
- 1:27:05the result. So, here we go. As soon as
- 1:27:08it's been generated, it took me to the
- 1:27:11screen where I can see the before and
- 1:27:13after version. And I think it looks
- 1:27:16absolutely beautiful. Um, notice how it
- 1:27:18is exact same room, right? Like the uh
- 1:27:22the wall, the ceiling, everything is the
- 1:27:25same, but it it has styled it in a
- 1:27:28completely different way. Okay, I really
- 1:27:30like this. It works as expected. Let's
- 1:27:33just do it one more time. I'm going to
- 1:27:36use a different style this time. Let's
- 1:27:38say minimalist.
- 1:27:41Let's see if we're going to get the
- 1:27:43minimalist style. If we get it, that
- 1:27:46means everything has been set it up
- 1:27:48correctly and we are not just getting
- 1:27:50random outputs.
- 1:27:54So, this takes around 10 to 15 seconds
- 1:27:57depending on the image generation model
- 1:28:01as well as the internet connection. But
- 1:28:03let's just see.
- 1:28:05Here we go.
- 1:28:08This is what we got.
- 1:28:10I think it looks pretty clean and it is
- 1:28:12minimalist, right? So I can say try
- 1:28:15another style. I'm not going to try, but
- 1:28:19um notice how this also decremented by
- 1:28:22two. In total, we have five. Um if you
- 1:28:25would like to take it to the next step,
- 1:28:27you would add a pay wall once the user
- 1:28:30hits zero generations left. Um here
- 1:28:33under the my designs, I can see that I
- 1:28:37have only these two. All the other ones
- 1:28:39have been deleted because they were fake
- 1:28:42data. Okay. So I think overall I'm
- 1:28:45pretty happy with how this look and how
- 1:28:48that work. Obviously we can add much
- 1:28:50more uh like much more details and
- 1:28:53features into this. But as I said for
- 1:28:56the version one you would like to keep
- 1:28:58it as simple as possible. That's exactly
- 1:29:01what I have done with my mobile
- 1:29:03application. Now, I mention this all the
- 1:29:05time, but I think it's really important
- 1:29:07to know. Um, basically, you take the
- 1:29:10image of your food and it calculates the
- 1:29:14calories, right? That was the only thing
- 1:29:16that I included at the beginning,
- 1:29:18nothing else. Um, and like I just
- 1:29:21started getting some payments or like
- 1:29:24subscriptions that I'm like, okay,
- 1:29:26people like this app, now I need to
- 1:29:28improve it. And I think that should be
- 1:29:30your approach as well.
- 1:29:33Now, with that said, I would like to
- 1:29:35definitely improve the profile screen
- 1:29:38here. We would like to add more links
- 1:29:40and so on. But for now, I think um I'm
- 1:29:44happy with how this section looks,
- 1:29:47right? Uh I'm going to go ahead and
- 1:29:49commit my changes. First off, I will
- 1:29:51close all these and then I will create a
- 1:29:55new branch because I'd like to send a
- 1:29:57pull request and then just check if we
- 1:30:00have any kind of security issues or like
- 1:30:03any kind of problems. Um, code rabbit
- 1:30:06will tell us for the branch name. I'll
- 1:30:09just say I don't know maybe backend
- 1:30:15implementation.
- 1:30:18Not the best name, but let's just come
- 1:30:20up with something else. I'll just say
- 1:30:23app logic.
- 1:30:26Okay, so the branch has been created.
- 1:30:28I'll go ahead and stage everything.
- 1:30:34And then let's get a commit message.
- 1:30:41Let's commit. Publish the branch. We'll
- 1:30:44go into the source code as usual.
- 1:30:48So, I'm going to say slashhomeai.
- 1:30:52Let's get the pull request. You can take
- 1:30:55a look at the details. We have like
- 1:30:57almost 20,000 lines of changes.
- 1:31:02I'm going to create the pull request and
- 1:31:04then I'll just wait for Code Rabbit to
- 1:31:06give me a review. Once I get that, I'll
- 1:31:10just be right back. All right. So after
- 1:31:12a couple of minutes as usual we got the
- 1:31:14quick summary by code rabbit telling us
- 1:31:17what we have added what we have deleted
- 1:31:20and so on and then the most important
- 1:31:22part are the fixes. Now as usual you can
- 1:31:26take a look at them in detail and get
- 1:31:28the fixes one by one but I have shown
- 1:31:31you that you can get all the fixes in
- 1:31:34one prompt. This is what I'll be doing
- 1:31:36and I'll actually go into cloud right
- 1:31:40here and I'm going to paste it. So I'm
- 1:31:43going to leave this to implement and
- 1:31:46then we can take a look at the
- 1:31:47solutions. Now right here we have some
- 1:31:50major problems, some minor issues. Let's
- 1:31:53just see. We actually have couple of
- 1:31:56different major issues and then we have
- 1:31:59security
- 1:32:00problems as well or I would say issues
- 1:32:03and we can fix them obviously with that
- 1:32:06prompt. Now this is part of the code
- 1:32:08rabbit secure which specifically checks
- 1:32:12for the security issues right so there
- 1:32:15are millions of different types of
- 1:32:17attacks if you're not technical you
- 1:32:19might not ever heard of them but like
- 1:32:22there are things like CSRF attack or XSS
- 1:32:27attack like there are bunch of different
- 1:32:29attacks that I don't even know
- 1:32:32but Code Rabbit is um aware of every
- 1:32:36single one of them and it's going to
- 1:32:38check every single one of them one by
- 1:32:40one so that you know you don't really
- 1:32:42have any of them in your codebase like
- 1:32:45here it tells what is the issue um what
- 1:32:49you need to do before handling it with
- 1:32:51the email right so it says like escape
- 1:32:54user name before inserting it into the
- 1:32:58reset email html obviously this is kind
- 1:33:01of like it could be a vulnerability and
- 1:33:05then here it gives you the suggested fix
- 1:33:08as well as the prompt to fix it. Okay,
- 1:33:11so as usual, you can take a look at the
- 1:33:14explain change as well.
- 1:33:19Let's just wait for this to be loaded.
- 1:33:21You can take a look at all the changes
- 1:33:23like all the issues that you have.
- 1:33:25Again, this has been categorized and
- 1:33:28kind of like organized. You can go ahead
- 1:33:31with the continue and ask any kind of
- 1:33:33issues that you have or like questions
- 1:33:36it would answer.
- 1:33:38But right here, I think I'll go back
- 1:33:40into cloud. Once this is done, I'm going
- 1:33:43to commit them and then hopefully we're
- 1:33:46going to close this pull request. All
- 1:33:49right. So, these are all the changes
- 1:33:50that we got. I'll go ahead and stage
- 1:33:54them,
- 1:33:55get a commit message, and then we're
- 1:33:57going to commit it.
- 1:34:00Let's sync this up.
- 1:34:02And then right here, we should have two
- 1:34:05commits.
- 1:34:07We only had one. This should be two.
- 1:34:09Now, let's scroll to the bottom. And
- 1:34:11then we can just
- 1:34:14um merge the pull request. Okay. So,
- 1:34:17I'll just press this. Let's confirm it.
- 1:34:21Once this is done successfully, just
- 1:34:23don't forget to going back, switching it
- 1:34:26to the master, and then getting the
- 1:34:29latest changes.
- 1:34:32Okay, so with this, I think we are
- 1:34:34completely done with this section as
- 1:34:36well. In the next one, we can kind of
- 1:34:39like improve this app a little bit more
- 1:34:41by updating our profile screen. So, I'll
- 1:34:44see you there. All right. So, as I said,
- 1:34:47now it is time to improve the profile
- 1:34:49screen a little bit more. So, I'm going
- 1:34:51to go ahead and just say now the profile
- 1:34:54screen looks pretty cool, but I want you
- 1:34:56to add more options like instead of only
- 1:34:59having privacy policy right below to it
- 1:35:02also have the terms of services link.
- 1:35:05And other than this, just add couple of
- 1:35:08more um kind of like settings or like
- 1:35:11preferences, the usual things that every
- 1:35:15mobile app would have.
- 1:35:18Okay. So, I'm going to go ahead and run
- 1:35:20this. Let's see what we're going to get
- 1:35:21back. It is really important for you to
- 1:35:24add the privacy policy and terms of
- 1:35:26services. And when users press them, it
- 1:35:30should take them to the to the actual
- 1:35:33page, right? And we're going to build
- 1:35:35that page. But for now, let's just um
- 1:35:38have the test UI like example.com, but
- 1:35:42we're going to have our legal pages. and
- 1:35:45then we're going to link it right here.
- 1:35:47So after a couple of seconds, here we
- 1:35:49go. It's been implemented and as you can
- 1:35:51tell now we have more links on the
- 1:35:54profile screen. So we have things like
- 1:35:56notifications which will take you to the
- 1:35:58actual notifications page. Um you can
- 1:36:01definitely change the implementation but
- 1:36:03I'm happy with it for now. We have the
- 1:36:06support where we can also share the
- 1:36:09style or like restyle which is the name
- 1:36:11of our application. It should be home
- 1:36:13AI, but that's fine. We have the illegal
- 1:36:16pages links and then sign out as well as
- 1:36:19the delete account. Now, you might want
- 1:36:21to delete this feature, but that's
- 1:36:23really risky because if you have
- 1:36:25authentication, then you must have the
- 1:36:28delete account feature, right? If you
- 1:36:30don't have this, Apple will reject your
- 1:36:32application. So, like this is not a
- 1:36:35optional feature. It is a mustave. I was
- 1:36:38very surprised to hear it. But if you
- 1:36:40think about it, it actually makes sense
- 1:36:42because if you store your users data
- 1:36:46anytime, they should be able to request
- 1:36:48for deletion, right?
- 1:36:52Okay. So, I think that's it for the
- 1:36:54profile screen. Now, there is one thing
- 1:36:56that I'd like to mention which is going
- 1:36:57to be under the designs tab, which is
- 1:37:01this one. So right now on this screen we
- 1:37:04load the full-size images just to show
- 1:37:08some small thumbnails which is not
- 1:37:10really optimal right this is slow and it
- 1:37:13burns mobile data but with the help of
- 1:37:16image kit we can fix this with a few URL
- 1:37:19parameters instead of image processing
- 1:37:22code so it's going to be super simple
- 1:37:24like imagine in the in the URL you will
- 1:37:28have your image URL right let's just say
- 1:37:32image.com or something, right? And then
- 1:37:34you would have a parameter like um V or
- 1:37:39W400 which says like width of 400,
- 1:37:43right? Or something like F auto. Like
- 1:37:46you're going to see what I mean. Let's
- 1:37:48just go and visit the image kit
- 1:37:49documentation and you can read the
- 1:37:52entire thing or just take a look at it
- 1:37:54pretty quickly. You don't really need to
- 1:37:56go like all over that. Um I just want to
- 1:37:59show you an example like here you have
- 1:38:01different parameters right
- 1:38:04so here like originally quality is 100
- 1:38:08but it is fine if you just decrement it
- 1:38:10by 20 there is even no like almost no
- 1:38:13change but it's going to save you a lot
- 1:38:14of data um here we have like cube which
- 1:38:17stands for quality notice how you just
- 1:38:20add it in the URL as a parameter now we
- 1:38:23don't really need to read all of this or
- 1:38:25implement it by yourself you can copy
- 1:38:27this entire
- 1:38:28documentation, right? And then right
- 1:38:31here, we're going to paste this in. And
- 1:38:33then at the very end, I'm just going to
- 1:38:35have a prompt that I prepared and you
- 1:38:38can take a look at it. So here, I just
- 1:38:41say add image kit image optimization to
- 1:38:44the app, right? And you can pause the
- 1:38:46video and read it, but this is super
- 1:38:48simple. I just say like go ahead and
- 1:38:50implement it um on this screen. Okay, so
- 1:38:53I'm going to go ahead and run this.
- 1:38:56This will also add like a tiny blurred
- 1:38:59placeholder so each of these cards fades
- 1:39:02in smoothly instead of like popping. Um,
- 1:39:07let's just wait for this to be done.
- 1:39:09Once it is done, I'll just be right
- 1:39:10back. All right, so looks like it is
- 1:39:13done. And here it says, "Now this grid
- 1:39:15loads optimized thumbnails with a tiny
- 1:39:18blurred preview showing until each one
- 1:39:21arrives." So let's go ahead and take a
- 1:39:23look at it. As you can tell, we have
- 1:39:26this beautifully um animated like how do
- 1:39:30we call it beautiful animation right and
- 1:39:32now it might look the same as before but
- 1:39:36we we are saving so much um data okay
- 1:39:40now other than this let's try to add the
- 1:39:42overlays so users want to share their
- 1:39:45redesign right and a plain image doesn't
- 1:39:48really say what it is so let me just
- 1:39:50show you Image kit has overlays so you
- 1:39:54can literally add these types of
- 1:39:55overlays and I'm pretty sure that you
- 1:39:57have seen it in every kind of app or
- 1:40:00like website especially in like
- 1:40:02e-commerce stores they put their own
- 1:40:05name or even in like real estate
- 1:40:07websites so that you know like they have
- 1:40:09their own mark and this is how we can do
- 1:40:12it with image kit like let me show you
- 1:40:14the URL you have the URL endpoint base
- 1:40:17image and then the image layer right
- 1:40:22um I'll just go ahead and kind of like
- 1:40:24take the entire documentation. You can
- 1:40:26take a look at it. Like there are so
- 1:40:28many other examples, but I'll just keep
- 1:40:30it simple. I will paste it right here.
- 1:40:34Um what it says. Let me see.
- 1:40:38I think this is like too long. Um
- 1:40:44I'm going to copy it for LLM.
- 1:40:48Okay. So, I think it doesn't allow me to
- 1:40:50copy and paste. So instead, I'm just
- 1:40:52going to copy the URL. I'm going to
- 1:40:54paste this in and then I'll say this is
- 1:40:57the overlays documentation for image
- 1:41:00kit. Please go over that.
- 1:41:03And then again, I have a prompt that I
- 1:41:06prepared. It is super simple like I'm
- 1:41:08just doing this for the sake of tutorial
- 1:41:10otherwise I would just talk. Uh but this
- 1:41:14is the entire thing. You can pause the
- 1:41:15video and take a look at it. So I'm
- 1:41:18going to run and let's see what we're
- 1:41:19going to get back. So cloud is done with
- 1:41:22it. I just said how do I see this in
- 1:41:24action? It says go under any of these
- 1:41:27designs and then press the share button.
- 1:41:31It says copy the link and then go ahead
- 1:41:33open this up in Safari. Right. I'm going
- 1:41:36to go ahead and paste this in.
- 1:41:40So as you can tell it is the exact same
- 1:41:42image but we have our application logo.
- 1:41:46So this has been added thanks to image
- 1:41:48kit overlay. All right. So, I'll just go
- 1:41:51back to my application.
- 1:41:53One thing that I'll do is upscaling the
- 1:41:56images. This is again thanks to image
- 1:41:59kit. Like I just want to show you these
- 1:42:01features because they're really really
- 1:42:03cool and very very easy to implement.
- 1:42:06Like you can literally just upscale an
- 1:42:08image. So here you can tell um this is
- 1:42:12the like original image and you can
- 1:42:14upscale it, right? It's like much more
- 1:42:16cleaner. I'm going to go ahead and just
- 1:42:19provide you the prompt.
- 1:42:22Okay. So, you can pause the video, take
- 1:42:23a look at it. I'll just go ahead and run
- 1:42:26this.
- 1:42:28So, looks like this has also been
- 1:42:30completed. Let's go ahead and take a
- 1:42:31look at it. In one of these pages, like
- 1:42:34we have the HD option, right? Once you
- 1:42:37press that, it's going to take some time
- 1:42:39until I image kit can prepare it.
- 1:42:42Usually, it shouldn't take this long.
- 1:42:44Let me just go ahead and reload it.
- 1:42:48like it should be faster. Maybe we
- 1:42:51should just reload our application and
- 1:42:53test this out. I'm going to say HD. And
- 1:42:56here we go. Now, I don't know if you can
- 1:42:58see the difference, but on the after
- 1:43:00image, there is a difference.
- 1:43:03Okay. So, with that, I think I'm going
- 1:43:06to leave this lesson right here. Now,
- 1:43:09usually I would create a new branch and
- 1:43:11then send a pull request, but I have
- 1:43:14already shown this multiple times so you
- 1:43:16know how that work. So, I'm just going
- 1:43:18to keep it simple and then basically
- 1:43:21stage and commit everything to the
- 1:43:23master branch. Okay. So, I'm going to
- 1:43:25get the commit message.
- 1:43:30I'll say commit and sync this up. This
- 1:43:33will basically push everything to the
- 1:43:35master branch.
- 1:43:38Okay. So, with that said, I think I'm
- 1:43:40going to leave this lesson right here.
- 1:43:42And in the next one, we're going to get
- 1:43:43started with the legal pages, which are
- 1:43:46privacy policy and terms of service. So,
- 1:43:49I'm going to see you there. All right.
- 1:43:51So, now we have a fully functional
- 1:43:54mobile application, but we are missing
- 1:43:56one of the most important thing, which
- 1:43:58is the legal pages. If you don't have
- 1:44:01the legal pages, your application will
- 1:44:03get rejected by Apple, right? So we'd
- 1:44:06like to build these pages, deploy them
- 1:44:09and put the URL actually right here. So
- 1:44:12when we press one of these links,
- 1:44:14instead of visiting example.com, we
- 1:44:17should visit the actual privacy policy.
- 1:44:20So for this, let's first build a legal
- 1:44:22sorry first let's build a landing page,
- 1:44:25right? And then we're going to attach
- 1:44:27these pages into that. If you don't know
- 1:44:30what I mean, you're just going to see it
- 1:44:31in the next 5 minutes.
- 1:44:33>> [snorts]
- 1:44:33>> So, first
- 1:44:35let's go ahead and just find a design
- 1:44:37that we can use. By the way, these are
- 1:44:40the prompts that I'm going to get into
- 1:44:41in a couple of minutes. Okay. So, for
- 1:44:43now, I visited Pinterest and then I
- 1:44:46searched for something like website
- 1:44:48design and something related to home
- 1:44:51because this is what my application is
- 1:44:53all about. There are millions of
- 1:44:56different designs. The one that I liked
- 1:44:58is this one. So, I'm going to take this
- 1:45:00image, right? I'm going to copy it.
- 1:45:03Let's go under the design. I'm going to
- 1:45:05paste it. And here I will call it
- 1:45:07something like um landing page
- 1:45:11reference.png.
- 1:45:13Let's open up a cloud session. And then
- 1:45:16here I'm going to say
- 1:45:18now we have built the entire mobile
- 1:45:20application. It is time to get started
- 1:45:23with a landing page. For the UI design,
- 1:45:27I want you to get inspired by this
- 1:45:29image. So here I'm just going to pause
- 1:45:32and then attach this file.
- 1:45:39I don't really want you to copy it 100%
- 1:45:42but just get inspired by it.
- 1:45:46Okay. Now before I send this, what I'll
- 1:45:48be doing is this. There is a website
- 1:45:51called the shots.so.
- 1:45:53So you can get these types of beautiful
- 1:45:55mockups, right? You can have like
- 1:45:58variation of three, one, or even two.
- 1:46:01Let's just get started with the
- 1:46:04two option like I think I'm going to go
- 1:46:07with maybe.
- 1:46:10Yeah, I'll go with this one. So, what
- 1:46:12you would like to do, let me just
- 1:46:13actually say start over. This is what
- 1:46:15you're going to see when you visit
- 1:46:17shots.so.
- 1:46:18So, from here, go ahead and select
- 1:46:21iPhone 17 or whatever you would like to
- 1:46:24select. Then for the background, let's
- 1:46:27just go right here.
- 1:46:30Um, okay, I'll just pause here. Go under
- 1:46:34the shadow also. Make it none. Okay, it
- 1:46:36is very important. Just put it as none.
- 1:46:39Then go under the frame transparent
- 1:46:41background. Then you would like to kind
- 1:46:44of like zoom in as much as possible
- 1:46:46because you would like to get rid of
- 1:46:48these extra spaces. Okay, so just go
- 1:46:50ahead and zoom in. Now let's just put
- 1:46:52our authentication screen. I'm going to
- 1:46:55get the option of two, by the way. So,
- 1:46:57I'm going to get this one, right? Let's
- 1:47:00zoom in once again.
- 1:47:03So, you would like to go as much as
- 1:47:05possible until like whatever you want,
- 1:47:07but what I'd like to do is just leave as
- 1:47:10minimal space as possible. Okay,
- 1:47:14just like that. Now, I'm going to get
- 1:47:16the screenshot from my simulator. Let's
- 1:47:19go ahead and get one from right here.
- 1:47:23Wait, I think I've been recording this.
- 1:47:25I'll just say delete.
- 1:47:28If you press this, this will take the
- 1:47:30screenshot. I'm going to copy it to
- 1:47:32clipboard and then paste it right here.
- 1:47:35Here you go. And then let's get one from
- 1:47:38the authentication screen.
- 1:47:42So, let me just put it in the middle.
- 1:47:44Take the screenshot um like this.
- 1:47:48Copy it and then Ctrl +V. Okay, here we
- 1:47:52go. I think it looks pretty clean. Maybe
- 1:47:56I can go with a different layout. Maybe
- 1:47:58like this one. Yeah, I think I'll go
- 1:48:00with this one.
- 1:48:02And then I'll just say export the image.
- 1:48:04Make sure that you put this on none.
- 1:48:06Okay. And then we'll just say export.
- 1:48:10I'm going to copy this image as well and
- 1:48:13just put it in VS Code right here. And
- 1:48:17let's just say
- 1:48:19frame one. We can call it anything, but
- 1:48:21I'll just say frame one. And let's get
- 1:48:24another one.
- 1:48:27Maybe like this one. I'll just zoom in
- 1:48:30again. And let's get one more
- 1:48:32screenshot.
- 1:48:34I'm going to log in.
- 1:48:40Like if you're wondering, by the way, we
- 1:48:42are going to put these
- 1:48:44um we're going to put these screenshots
- 1:48:47to our landing page. And I don't know
- 1:48:49why this has failed. Let's just see it
- 1:48:52once again.
- 1:49:02Okay. So, I think this is just trying to
- 1:49:04sign us up, which is not really fine.
- 1:49:07You could follow up. You already know
- 1:49:09how to fix this. But let me just try to
- 1:49:12just go with this option. But I think I
- 1:49:14cannot log in, right? Um, let me just
- 1:49:17try to login with this account and then
- 1:49:19come back. All right. So, in the
- 1:49:21background, I just talk with cloud
- 1:49:23pretty quickly and it fixed it. Like, as
- 1:49:25you can tell, I'm logged in. You can do
- 1:49:27the same thing or, you know, the same
- 1:49:29thing for any kind of issues really.
- 1:49:31Here, I'm going to take a screenshot
- 1:49:33once again, copy it to the clipboard.
- 1:49:36Let's go back. Um, right here, I'm going
- 1:49:39to paste this in. Here we go. I'm going
- 1:49:42to get this image.
- 1:49:44Let's export it. And then I'll put it
- 1:49:46right here under the design. Let's just
- 1:49:49say this is the frame two.
- 1:49:55Now you can get more of these. Um you
- 1:49:58just get the idea, right? You can get
- 1:50:00either the one, second or third option.
- 1:50:03Right here I'll go ahead and say
- 1:50:07here I have prepared two different
- 1:50:10images. I want you to use them in the
- 1:50:12landing page. And I'm going to attach
- 1:50:15them. Let's say frame one and frame two.
- 1:50:21Okay. So with this, let's just go ahead
- 1:50:23and say one more thing. I want you to
- 1:50:26keep the colors and the theme just like
- 1:50:28in the mobile app. Um it could be in the
- 1:50:32light mode or dark mode, but just make
- 1:50:34sure that it is matching with our our
- 1:50:37application.
- 1:50:40Now just one more thing here. I'm going
- 1:50:41to say create a folder called legal and
- 1:50:45then build everything into that. This
- 1:50:47could be a simple index.html file and
- 1:50:51like some CSS files and then also in the
- 1:50:54footer and yeah in the footer it just
- 1:50:57have the privacy policy and terms of
- 1:51:00services link when we press them take us
- 1:51:03to those pages. For now just put a very
- 1:51:06simple draft content. I'm going to
- 1:51:09update it later at some point.
- 1:51:13Okay, so that's my entire prompt. You
- 1:51:15can take a look at it. I think it is
- 1:51:18looking pretty clean. We explained
- 1:51:19everything. It should create a folder
- 1:51:22called legal and then build that HTML
- 1:51:25file. Once it is done, I'll just be
- 1:51:27right back. All right. So, here we go.
- 1:51:29We got the legal folder. Within this we
- 1:51:32have these images and then we have three
- 1:51:35different files or like four files but
- 1:51:38three of them are HTML and one style.
- 1:51:42You can right click to it and then just
- 1:51:44say open with live server.
- 1:51:48Now if you cannot see this option by the
- 1:51:50way that means you don't have this
- 1:51:51extension called live server right just
- 1:51:55go ahead and install it. It is this one
- 1:51:58right? Just install that and then you
- 1:52:00should be able to get this option just
- 1:52:02like what I do. And then here we go. Now
- 1:52:05we got that frame. I think it looks
- 1:52:08pretty clean. Like we have eight
- 1:52:10different styles, right? Like modern,
- 1:52:13minimalist. You get the idea. We have
- 1:52:16the before after just like in our mobile
- 1:52:18phone.
- 1:52:20We have this beautiful image. Like
- 1:52:22overall I think everything looks pretty
- 1:52:24clean. Even this detail, I liked it. Um
- 1:52:27if you press the privacy policy it'll
- 1:52:30take you to right here then same thing
- 1:52:32for terms of services
- 1:52:35but now as you can imagine the content
- 1:52:38of these files are really important
- 1:52:41right that's why I have prepared these
- 1:52:43prompts so I'm going to copy this one
- 1:52:46and you can find the link in the
- 1:52:47description so we have for terms of
- 1:52:50services and then the privacy policy
- 1:52:53this will basically tell AI to read the
- 1:52:56entire codebase and act like a
- 1:52:59professional kind of like lawyer or
- 1:53:01something. So it would give us a legal
- 1:53:03page that would be accepted by Apple. I
- 1:53:06have already used this in my actual
- 1:53:08mobile phone and it has never it it has
- 1:53:11never got rejected. Sorry. Um it just
- 1:53:14works in the very first try. Okay. So
- 1:53:16I'm going to go ahead and just maybe
- 1:53:19yeah I'll just paste it right here. And
- 1:53:21at the very end I'll say
- 1:53:24um you know just update the terms of
- 1:53:27services file content with with the new
- 1:53:30one.
- 1:53:33Okay. So I'm going to run this once it
- 1:53:35is done. We'll do the same thing for
- 1:53:37this one.
- 1:53:39So I'm going to copy it and then I'll
- 1:53:41even paste it right here. I'll say now
- 1:53:44do the same thing for the privacy policy
- 1:53:47page
- 1:53:49and I'm going to run it once this is
- 1:53:51done. All right. So here we go. It is
- 1:53:53ready for the terms of services page.
- 1:53:56Now as you can imagine there will be
- 1:53:58some placeholder values like the
- 1:54:00effective date, last updated date. Um
- 1:54:04let me just scroll to the bottom. There
- 1:54:06will be also things like company of
- 1:54:07legal name, postal address and support
- 1:54:11email. Now this is very normal as you
- 1:54:14can imagine AI cannot really guess what
- 1:54:16is your legal company name right or the
- 1:54:20postal address. So you should provide
- 1:54:22these values. Other than this, you don't
- 1:54:24really need to update anything else.
- 1:54:26Just go ahead and ask to AI like what
- 1:54:29placeholder values that you would need
- 1:54:31from me and then you will provide and
- 1:54:33then it is going to fill that in. Right?
- 1:54:35So I'm going to do the same thing for
- 1:54:37the privacy policy page. And then once
- 1:54:40we have that page as well, we can go
- 1:54:42ahead and deploy this. Right?
- 1:54:45So, we're going to put this
- 1:54:47into an actual URL rather than running
- 1:54:50it locally in our machine. So, it should
- 1:54:53be live on the internet. All right. So,
- 1:54:56looks like this is also ready. I'll just
- 1:54:58go back.
- 1:55:00Let's scroll to the bottom and see. Here
- 1:55:03we go. It's ready. Again, you have
- 1:55:05couple of different fields that you need
- 1:55:07to fill in, but other than this, I think
- 1:55:09we are ready. Now, here I'd like to have
- 1:55:12a couple of different tiny touches. So,
- 1:55:16here instead of just saying get the app,
- 1:55:18we could have two different buttons or
- 1:55:20like here we can have two different
- 1:55:22buttons saying download for iOS and here
- 1:55:25for Android. Right. I'm going to take a
- 1:55:28screenshot right here. I'm going to say
- 1:55:33so everything looks pretty cool but I
- 1:55:35want you to have both the app store like
- 1:55:39download for iOS and for Android.
- 1:55:42Currently we don't really have it for
- 1:55:44play store. I want you to use that logo
- 1:55:46and put a nice button and kind of like
- 1:55:49included in the UI.
- 1:55:53Okay, so here is the end result. I think
- 1:55:55this looks way more cleaner than what we
- 1:55:58had previously. Now obviously you can
- 1:56:01improve the UI much more than this right
- 1:56:04you can just take more references or
- 1:56:07like just explain what you'd like to
- 1:56:09have with cloud um you can animate some
- 1:56:12of them like literally we could have
- 1:56:14some videos um let's actually do it like
- 1:56:17if you are interested I can show you
- 1:56:19that so here I'm going to say now I want
- 1:56:22you to have some kind of animated video
- 1:56:25or like just animate one of these things
- 1:56:28in the UI Y for this you can use
- 1:56:31Hicksfield MCP.
- 1:56:34So here I'll just pause. Obviously if
- 1:56:36you want to animate an image you'd like
- 1:56:39to use an AI tool. In this case I'll use
- 1:56:42Hickfield. As I said before this is
- 1:56:44paid. You don't have to use it but it's
- 1:56:46really really convenient. That's why I'm
- 1:56:48using it in the first place. I'm going
- 1:56:50to say you can use the Clink 3.0 to zero
- 1:56:54model and let's say
- 1:56:57like maybe 180p quality and I'm [snorts]
- 1:57:01going to say maximum 10 seconds so it
- 1:57:05doesn't spend too much credits. Um okay
- 1:57:08so I'm going to go ahead and run this.
- 1:57:10Let's see what we're going to get back.
- 1:57:12All right. So after some time looks like
- 1:57:14it's been generated and here you can
- 1:57:16tell like I'll just scroll to the top.
- 1:57:18It is using hickfield and it is just
- 1:57:21waiting for the generation. Once it is
- 1:57:23done it just puts it on the UI. So right
- 1:57:26here if I scroll to the bottom as you
- 1:57:29can tell like I have the video it goes
- 1:57:32from the before to the after version.
- 1:57:35Initially I couldn't see it so I just
- 1:57:37said um where is it? I couldn't find it
- 1:57:39but like it says here it is at the
- 1:57:41bottom. Okay. So this is how you can
- 1:57:44generate videos.
- 1:57:47Um I'll be going and trying to deploying
- 1:57:50this to the internet. Now for this there
- 1:57:53are a bunch of different options. I'll
- 1:57:54be using Cloudflare which is completely
- 1:57:57free and it is really really easy to
- 1:57:59deploy. I already have an account. If
- 1:58:02you don't have just go ahead and create
- 1:58:04one then sign up with your like GitHub
- 1:58:07account right here. I'm just going to
- 1:58:09say now I want you to deploy the landing
- 1:58:13page to to Cloudflare. And for this I
- 1:58:16already have the CLI tool. But you know
- 1:58:19if you need anything else just go ahead
- 1:58:21and install it.
- 1:58:24Okay. So CLI tool means just a tool
- 1:58:27where you can deploy stuff from the
- 1:58:30terminal and you can install it as well
- 1:58:32just like what I do. Say if I don't have
- 1:58:35the CLI tool for Cloudflare just go
- 1:58:38ahead and install it. And then here I'm
- 1:58:40going to say once you have deployed the
- 1:58:42app give me the URL also under the
- 1:58:45profile screen link them to the privacy
- 1:58:49policy and terms of services links.
- 1:58:52So I'm going to run this. Once it is
- 1:58:55ready it will actually link them to
- 1:58:58right here and I'm going to show you how
- 1:59:00that work. All right. So looks like it's
- 1:59:02been deployed. I'm going to go ahead and
- 1:59:04press the link right here. It is live.
- 1:59:07Then we have the privacy policy and the
- 1:59:10terms of services. Let's just press one
- 1:59:12of these links here. You can tell it
- 1:59:14actually opens up the deployed page. I'm
- 1:59:17going to do the same thing for the terms
- 1:59:19of service. It is right here. As you can
- 1:59:22tell, we can go back home and it is also
- 1:59:26responsive, which means it also works
- 1:59:28nicely on the mobile.
- 1:59:31All right. So, this is how you build the
- 1:59:33legal pages. Once again, it is really
- 1:59:36really important for you to build them
- 1:59:39because if you don't build the illegal
- 1:59:41pages, your application will get
- 1:59:43rejected because let me tell you like in
- 1:59:46the app store like there is something
- 1:59:49called app store connect right let's
- 1:59:51just search for it app store connect
- 1:59:54this is the dashboard where you can
- 1:59:55deploy your project and when you put
- 1:59:58your application details they ask for
- 2:00:00you to add the privacy policy link right
- 2:00:04and then also also the same link for
- 2:00:06terms of services. So you definitely
- 2:00:09need the these URLs and include them in
- 2:00:13those uh text inputs, right?
- 2:00:17Then one more thing like they ask for
- 2:00:19you to put the support email. I think we
- 2:00:22already have it. It should be at the
- 2:00:25very bottom. You need to create a
- 2:00:27support email. You can add your own as
- 2:00:30well. That's what I have done. I just
- 2:00:32put my actual email right here. It is um
- 2:00:36it is fine. It is getting accepted
- 2:00:38without any issues. So yeah, with that I
- 2:00:41think we are pretty much done with the
- 2:00:43entire application. Like we have gone
- 2:00:45through this entire workflow step by
- 2:00:47step. Let's just pretty quickly remember
- 2:00:49what we have done in the last 2 hours.
- 2:00:52Like we have built a plan, right? We
- 2:00:55described our entire project and based
- 2:00:57off of that plan we generated the UI
- 2:01:00design. For this we have used the you
- 2:01:03know Pinterest to get some beautiful
- 2:01:06designs. Then with that reference we are
- 2:01:08able to get something like this which
- 2:01:11looks pretty clean right and then after
- 2:01:14the design we break it into different
- 2:01:16features like authentication I don't
- 2:01:19know let like let's say the profile
- 2:01:21screen the actual implementation and so
- 2:01:24on and then we build one at a time. Now
- 2:01:27anytime we build something first we
- 2:01:30check it manually then we run an AI code
- 2:01:33review. So for this we have used code
- 2:01:36rabbit
- 2:01:37and then anytime we got a suggestion we
- 2:01:40just fix them. Then we see if there is
- 2:01:42any more features if not we just
- 2:01:45committed that and close the pull
- 2:01:47request. And then if we had more
- 2:01:49features we have gone through this
- 2:01:51multiple times right I think we have run
- 2:01:54this like four or five times in total
- 2:01:57and now we are right here. There is not
- 2:02:00more features to implement. So, we would
- 2:02:02like to just mark this project as
- 2:02:05completed. Obviously, you can add much
- 2:02:07more features on top of this, but I
- 2:02:10think this is a really good starter
- 2:02:13point for you to have. Feel free to use
- 2:02:15the source code in any way that you
- 2:02:18want. It is completely free and I'm
- 2:02:20going to leave it in the description.
- 2:02:22So, with that, I'll go ahead and commit
- 2:02:24these changes as well. you can create a
- 2:02:27new branch and you know go through that
- 2:02:30process but I'll just have it under the
- 2:02:32master.
- 2:02:37Okay. So with that I think I'm going to
- 2:02:39leave this tutorial right here. Thanks
- 2:02:41for watching and hopefully I'll see you
- 2:02:43in the next one.
About this transcript
This page contains the full transcript of Build an Interior Designer AI App with Claude (FULL COURSE) by Codesistency, generated from the public captions YouTube serves with the video. The transcript has 19,922 words across 2,752 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.