Build your own Mobile App with Codex GPT-6 Astra - Full iOS and Android Course — Transcript
Full transcript
- 0:00Learn to build and publish a real
- 0:01Instagramst style mobile app from
- 0:04scratch using codecs and GPT6 Astra.
- 0:08Brock will guide you through the
- 0:09complete development life cycle,
- 0:11covering everything from generating UI
- 0:13designs and setting up a backend to App
- 0:17Store deployment. You'll master not just
- 0:20the code, but the exact AI prompting
- 0:22workflows needed to turn an idea into a
- 0:26finished product. Welcome to the
- 0:28complete Codex tutorial on how to build
- 0:30a real mobile application using AI. In
- 0:34this course, I'm going to show you the
- 0:35exact workflow that I used to go from an
- 0:38idea all the way to a working mobile
- 0:41application. And just for some context,
- 0:43recently I have used this exact same
- 0:46workflow to build my own mobile
- 0:48application and publish it to the app
- 0:50store. So everything I'm going to show
- 0:52you in this video actually works. Just
- 0:54before we jump into coding, let me show
- 0:56you the project that we're going to
- 0:58build in this tutorial. So this is a
- 1:00social media application just like
- 1:02Instagram. If you want to use it, first
- 1:04you need to be authenticated. And here
- 1:07in our case, we have two different
- 1:08options. I'll go ahead and log in with
- 1:11my Google account.
- 1:13So once you're authenticated, you'll be
- 1:15redirected to the home screen. And here
- 1:18we have four different tabs which are
- 1:20home, messages, explore, and profile.
- 1:24And notice how we have the iOS liquid
- 1:26glass effect. And I'm going to show you
- 1:28how to build it without writing too much
- 1:31code. And now in the home screen, you
- 1:33can see the posts of the user that you
- 1:36already follow. And here you can also
- 1:38post stories. So let's go ahead and
- 1:40select something from our library. If
- 1:43you wanted to, you can also get it from
- 1:44your camera. But here I'll just select
- 1:47something from the library. So I'll go
- 1:49ahead and maybe post this image.
- 1:53Let's publish.
- 1:55This is going to upload it in the
- 1:56background. And once it is done, we will
- 1:59be able to view it. So here,
- 2:02here we go. So the stories works just
- 2:06like in Instagram. If you want to pause
- 2:08it, you can tap and hold it. And if you
- 2:10want to go to the next one, you would
- 2:12just press. And you can delete your
- 2:14stories if you are the owner. Now you
- 2:16can also posts,
- 2:19right? So you can create posts. Let's go
- 2:21ahead and publish something. I'll select
- 2:24this image and we can add a caption.
- 2:26Let's just say this weekend trip
- 2:31and let's post it. So here we go. It's
- 2:33posted and we can see it immediately in
- 2:35the home screen. You can like it and you
- 2:38can even add comments. So, let's go
- 2:40ahead and just say something like, I
- 2:42don't know, something test
- 2:45and post it. Now, it's going to be right
- 2:47here. You can like the comments. You can
- 2:49sort them. Here we have couple of
- 2:51different options and you can even
- 2:53bookmark the posts. So, that's it for
- 2:55the home screen. We also have realtime
- 2:58messages. So, here you can tell we have
- 3:00couple of different past chats, but they
- 3:02are all fake data that I created for the
- 3:05sake of this demo. Here I'm going to put
- 3:07the actual footage from the tutorial
- 3:10where I actually test this out from my
- 3:12phone. So I literally sent a message in
- 3:15real time and everything works in both
- 3:18of these accounts. And other than
- 3:21messages, we have the explore screen
- 3:23where you can see random posts from
- 3:25other people with a really good UI
- 3:27design. You can like them and if you
- 3:29press them, that's going to take you to
- 3:31the actual post. And from here you'll be
- 3:34able to see the other accounts and
- 3:36follow them or even unfollow them if you
- 3:39already follow. Here you can search for
- 3:42people, posts or even topics. Then
- 3:45eventually we have the profile screen
- 3:48where you can see your posts, even
- 3:50videos, bookmarks, and the tag posts. So
- 3:54you can also edit your profile here.
- 3:56Let's just say for the bio I'll put
- 3:59something like I don't know let's put
- 4:02YouTuber and then I'll save. As soon as
- 4:04I save here you can tell the profile has
- 4:07been updated. On top of this you can
- 4:09also change the profile image and we
- 4:11have the settings screen. Now here we
- 4:14have bunch of different buttons and
- 4:16links but the most important ones are
- 4:18the privacy policy and terms of
- 4:21services. Here you can tell we actually
- 4:23link it with a real real URL and we link
- 4:27it right here. Now this is something
- 4:29that you must implement. If you don't
- 4:31implement it, Apple will reject your
- 4:33application and I'm going to teach you
- 4:35how to do it later in the course. Then
- 4:37we also have the delete account option.
- 4:40Again, this is one of those things that
- 4:42if you don't implement your application
- 4:45will get rejected. And we even have a
- 4:47feedback button where users can
- 4:50literally send us some feedback like
- 4:53here they can put their name. I already
- 4:55filled this in but you know you can just
- 4:57put John your email and then if you want
- 5:00to have a feature request or I don't
- 5:03know any kind of bugs here you can tell
- 5:05you know please fix the edit profile
- 5:09feature it doesn't work and then you can
- 5:11send the feedback and I'm going to show
- 5:13you how you can collect those feedbacks
- 5:16later in the video. Now on top of the
- 5:18mobile application we're going to build
- 5:20a landing page with a really nice
- 5:22looking UI design. Here you can tell we
- 5:24have some demo images and I'm going to
- 5:26show you how to create them and use them
- 5:29for your future projects. And at the
- 5:32very bottom we have the privacy policy
- 5:35and terms of services links. Again,
- 5:37these are the things that you don't
- 5:39really want to skip. So that's the
- 5:41entire project that we're going to build
- 5:43in this video. Now, this is not one of
- 5:45those random vibe coding tutorials where
- 5:47we just open Codex and say, "Build me an
- 5:50application and hope everything somehow
- 5:52works." Instead, I'm going to show you
- 5:54the entire process step by step. We are
- 5:56going to start with an idea. Then we
- 5:58will plan the application properly,
- 6:00figure out all the features that we
- 6:02would need, generate a complete UI
- 6:04design, and then use Quadex to actually
- 6:07implement everything. By the end of this
- 6:09tutorial, you should have a clear
- 6:11understanding of all the tools that you
- 6:13would need to build a modern application
- 6:16using AI. You will also know what to do
- 6:18when you get stuck. Because one of the
- 6:20biggest problems when you're coding with
- 6:22AI is not necessarily the coding itself.
- 6:25It is knowing what to ask. So throughout
- 6:28this course, I'll show you how I deal
- 6:30with it, how I give Codex more context,
- 6:33and how I get it actually help me solve
- 6:35the problem. I will also share the
- 6:37prompts that I personally use. This
- 6:39includes the prompts that I use for
- 6:42planning an application, generating the
- 6:44UI design, implementing the screens, and
- 6:47even creating things like privacy policy
- 6:50and terms of services. And these things
- 6:53are actually important if you want to
- 6:55publish your app. Depending on what your
- 6:57application does and what kind of user
- 6:59data that you're collecting, Apple can
- 7:02require things like a privacy policy,
- 7:04terms of service, delete account
- 7:06feature, and other information. If you
- 7:09miss something that is required for your
- 7:11application, you can easily get rejected
- 7:13during the app store review. These are
- 7:15usually the things you would learn the
- 7:17hard way after building your first
- 7:19application, but I'll try to cover all
- 7:21of them in this tutorial so you know
- 7:23what to look out for before you submit
- 7:25your application. It is also important
- 7:27to mention that when people submit their
- 7:30application to the app store for the
- 7:32first couple of times they get rejected
- 7:34which is normal but in my case I never
- 7:36got rejected by Apple. My app literally
- 7:39got accepted in the first submission
- 7:41because this workflow covers everything.
- 7:44So you don't really miss any important
- 7:45detail. And just one more thing that all
- 7:48the tools that we're going to use in
- 7:50this course are completely free to get
- 7:52started with. So you don't need a credit
- 7:54card to follow along. and the complete
- 7:56source code for the application will
- 7:58also be available for free. I will leave
- 8:01the link in the description. My goal
- 8:03with this course is helping you to
- 8:05understand the entire workflow so that
- 8:07after finishing this video, you can take
- 8:09your own idea and actually know how to
- 8:12turn it into a real mobile application
- 8:15using Codex. So, we're going to go from
- 8:17idea to planning to UI design and
- 8:20finally getting the app ready to
- 8:22publish. Now with all that being said,
- 8:24let's not waste any time and get started
- 8:27with the course. Now just before we get
- 8:30started, I quickly want to mention that
- 8:32we have a school community and within
- 8:34the school community I have basically
- 8:36documented the entire journey of
- 8:39building my own application and
- 8:41publishing it to app store. Here you can
- 8:44tell everything took exactly 14 days
- 8:47because the day zero is kind of like
- 8:49crash course. So everything took around
- 8:5214 days to submit it to the app store
- 8:55and then we start with marketing and new
- 8:59classes will be coming every single day.
- 9:01So this is a community for those of you
- 9:03that are interested to see the entire
- 9:05process like having payments, you know,
- 9:08we have monthly, yearly plans, maybe
- 9:11even some weekly plans. Then how do you
- 9:14get through the entire submission
- 9:16process or something like how to
- 9:18implement push notifications? And this
- 9:21is not just a course, but it's a live
- 9:23community. Here you can tell everyone is
- 9:25sharing their own process like
- 9:27motivating each other, so on and so
- 9:29forth. And actually, one of our students
- 9:32has already published their app on the
- 9:34app store. And just for the record, this
- 9:36is his app and he built it with me
- 9:39within our community in exactly 14 days.
- 9:42And just to give you some insights, like
- 9:44when you press one of these classes, we
- 9:47have specific videos for that day. And
- 9:50you can always come back and double
- 9:52check these lessons if you're
- 9:53interested. So, if you want to join, I'm
- 9:55going to leave the link in description.
- 9:57And hopefully I'll see you inside.
- 10:00All right. So, as usual, we are going to
- 10:02start from absolute scratch. First off,
- 10:05in my case, I'm using VS Code as my code
- 10:07editor, but you can really use anything
- 10:10that you want. That could be cursor, I
- 10:12don't know, it could be windsurf, really
- 10:15anything that you wish, but I would
- 10:16recommend you to use VS code so that we
- 10:19have the exact same environment. Now,
- 10:22for this, you can visit
- 10:23codevvisisualstudio.com
- 10:25and then press this button. Now, in my
- 10:28case, I'm using Mac, but if you're on
- 10:29Windows, you're going to see a related
- 10:31button, and you can just install it for
- 10:34Windows as well. And once again, um, in
- 10:37this tutorial, I'm using Mac, but if
- 10:39you're using Windows, everything will be
- 10:41almost exactly the same, so you can
- 10:44follow along without any issues. The
- 10:46other thing that you must have is
- 10:48NodeJS. If you don't have it already,
- 10:51just visit node.js.org, or press the
- 10:54download button. Leave everything as it
- 10:56is. Like by default, it's going to
- 10:58select your environment, you know, your
- 11:00operating system, and then install it.
- 11:04Okay. So, I'll just assume that you have
- 11:06both of them. Then head over to your
- 11:09desktop, create an empty folder. In my
- 11:12case, I call this as Codex Gram, which
- 11:15is like Instagram, but I put Codex. You
- 11:18can call this anything that you wish.
- 11:19And then just open it up in VS Code. So
- 11:22basically just drag and drop it right
- 11:24here. It's going to open this up. Okay.
- 11:27So once you have it now we can start
- 11:29building a mobile application. Now what
- 11:32I'll be doing is first creating a boiler
- 11:36plate. And for this we'll be using Expo.
- 11:39So if you don't know already, let's go
- 11:41ahead and visit expo.dev. This is
- 11:44literally the best way to start a mobile
- 11:46application as of 2026. Literally, they
- 11:50have everything that you would need from
- 11:52building the app to publishing it to App
- 11:54Store and Play Store. This is what I
- 11:57used to build and publish my app to App
- 12:00Store, you know, just to let you know.
- 12:02And this is completely free to get
- 12:04started with. But if you're serious
- 12:06about publishing your app to the App
- 12:08Store, then probably you would like to
- 12:10go with at least $20 per month plan. Uh
- 12:14but yeah, for now, you don't really need
- 12:16to pay anything at all. Now with this um
- 12:19we'll go ahead and visit expo.dev/doccks
- 12:24which is the documentation and we need
- 12:26to copy this command. Now technically we
- 12:28can just ask cloud or codex to run this
- 12:32for us but here I'd like to run it
- 12:34manually to show you what we're going to
- 12:36get and like it's going to be a bit
- 12:38easier to do it by ourselves. So paste
- 12:42this in to your terminal and put dot at
- 12:45the end which means create an expo
- 12:48application under the current folder.
- 12:50Right? This is what that means. So it's
- 12:53going to create everything right here.
- 12:56First we're going to get a question. At
- 12:59the time that I'm recording this video
- 13:01it is seck 57. But if you're watching it
- 13:04in the future this will be incremented.
- 13:06That's not a problem at all. Just go
- 13:07ahead and press enter. And this will get
- 13:11couple of different files and folders
- 13:13which is basically a simple mobile
- 13:16application. And we can run it in a
- 13:18simulator just in a second once this is
- 13:22completed. Now I am on Mac. My simulator
- 13:24is going to be an iOS simulator. But if
- 13:27you're on Windows, you can install an
- 13:30Android um simulator. Right. So here
- 13:33I'll go ahead and run my simulator.
- 13:38And by the way, with the latest
- 13:39features, like as of now that I'm
- 13:41recording the video with Expo, you can
- 13:45be on Windows but still build it for
- 13:48iOS. Like you can literally run an iOS
- 13:51simulator on Windows. Just check their
- 13:54documentation. Um, you'll be able to see
- 13:57it. It is pretty new, so I'm not going
- 13:59to get into it, but just know that
- 14:01something like that existed. Okay, so
- 14:03here I have my simulator. I have some
- 14:06previous projects that I created in the
- 14:08past, but we are going to go ahead and
- 14:10start from scratch. So here it says you
- 14:13can start this app by running these
- 14:15commands for Android, iOS, and even for
- 14:18web.
- 14:19Here I'll go ahead and just say MPX expo
- 14:22or MPXO start. This will give us a QR
- 14:25code as well as a open terminal where if
- 14:29you press I, it is going to open this
- 14:32app in your simulator. So let me
- 14:34actually put them side by side.
- 14:42Okay. So it looks like something has
- 14:43failed. I'll press I once again.
- 14:50It is trying to open this. I don't know
- 14:53why I'm getting an error. Usually it
- 14:55should open it immediately. But now
- 14:57that's not a problem at all. I'll just
- 14:59go ahead and you know ask cloud or codex
- 15:03to explain what is happening here. And
- 15:05speaking of cloud and codex, if you
- 15:08would like to use cloud, you need to
- 15:11install this extension within the VS
- 15:13code. So cloud code for VS code and make
- 15:16sure you get the verified one. And then
- 15:19if you would like to use Codex, this is
- 15:21what I'll be doing in this tutorial even
- 15:23though I have subscription for both of
- 15:24them. Codex has a recent model called
- 15:28GPD6 Astra and I'd like to use it in
- 15:32this tutorial. So go ahead and get Codex
- 15:34if you have subscription or cloud or
- 15:37really anything that you wanted to have.
- 15:39And by the way, one thing that I want to
- 15:41mention is that the goal of this
- 15:43tutorial is not getting the exact same
- 15:45end result. So the goal here is
- 15:48understanding the workflow to build
- 15:50mobile apps by yourself. So, it's fine
- 15:53if at the end of this video you have a
- 15:56different app than what I have. I mean,
- 15:58the functionalities will probably be the
- 16:00same, but UI design could be different.
- 16:03Code could be a bit different, and
- 16:05that's because AI doesn't really give
- 16:07the exact same end result every single
- 16:10time. Okay? So, that's one thing to keep
- 16:12in mind. It's completely fine if you
- 16:14don't have the exact same end result
- 16:16that I have right here. And other than
- 16:19this, like I see a lot of people get
- 16:21kind of like depressed because of AI
- 16:23where it can almost build anything now.
- 16:26But I've been always like I've always
- 16:29been on this side where I'm just trying
- 16:31to find the opportunity where you know
- 16:34it helps me to build an app pretty
- 16:36quickly so that I can focus on marketing
- 16:38and you know focus on different things.
- 16:41Now since AI can build anything which is
- 16:44not really true at the moment um even
- 16:47though I think it's going to be at some
- 16:49point but at the moment it's not really
- 16:51true. It cannot build anything. It can
- 16:53build something to start with but as the
- 16:56projects get larger and larger it kind
- 16:58of sucks. So I think it's still
- 17:00important to know the fundamentals of
- 17:03programming but if you wanted to build a
- 17:05simple project I don't know an MVP I
- 17:08think AI can help. And with this
- 17:11tutorial, hopefully you will learn how
- 17:13to build an MVP.
- 17:15Okay, so with that said, I would
- 17:17definitely recommend you to get a $20 a
- 17:21month plan in one of these, either
- 17:23Cloud, Codex, or Cursor. I think for
- 17:27now, my favorite could be Codex. Even
- 17:30though I've been using Cloud for a very
- 17:32long time with the latest model they
- 17:34have, which is GPT6, I think you can go
- 17:37with Codex just to test this out. And I
- 17:40think Codex is cheaper than cloud or
- 17:43cursor. Okay, so with that said, now
- 17:45let's jump back into VS Code. Go ahead
- 17:49and get this extension. And I think I
- 17:51need to restart the extension.
- 17:54And you'll just press twice to this
- 17:58empty area. From here, you can get Cloud
- 18:00or Codeex. Let's say you're using Cloud.
- 18:03This is the interface that you will
- 18:05have. Now we can talk with cloud and you
- 18:08can you know update the model. Let me
- 18:11actually maximize this like you can
- 18:13update the mode and initially we'll use
- 18:15the plan mode. I'm going to get into
- 18:17that and you can update the model you
- 18:19know you can add the effort etc. And we
- 18:23have similar thing for codex. This is
- 18:25what I'll be using. So just go ahead and
- 18:28press add. Now here you can again change
- 18:31the model. The latest one at the time
- 18:33that I'm recording this video is this
- 18:35one. And you can update the effort as
- 18:38well.
- 18:40So here I'll just give the full axis so
- 18:42that I don't really get um
- 18:48so one thing I want to mention is that
- 18:50here the extra high and even like ultra
- 18:55you go is better but it's going to be
- 18:57taking much more time than it should. So
- 19:00here, usually I would go with medium or
- 19:03high. If I'm building something a
- 19:06feature that is not really that
- 19:08important, but if I'm trying to build
- 19:10something that should work exactly as I
- 19:12want, then I would probably go with
- 19:14extra high or even ultra. But just know
- 19:17that it will take much more time if you
- 19:19go with one of these. So in this
- 19:21tutorial, I think to start with, I'll go
- 19:23with medium. And here for the
- 19:26permissions, I'll just give the full
- 19:27access so that it doesn't really ask me
- 19:29questions all the time. So here I
- 19:32basically say, hey Codex, whatever you
- 19:34would like to do, just do it. Don't ask
- 19:36me.
- 19:38U just be careful with it. But usually
- 19:41you'll just give the full access
- 19:42anyways. Okay. Now to start with, first
- 19:46thing I'll be doing is opening up my
- 19:49terminal with Ctrl J. And I think now
- 19:52application is running. We had an error,
- 19:55but it just fixed by itself. Here you
- 19:58can tell if you press R, it's going to
- 20:01reload the app. And we have this default
- 20:04project coming from Expo. Now, of
- 20:06course, we're going to delete
- 20:08everything. And let's actually do it.
- 20:10You would like to open up your terminal.
- 20:12So, kill this with Ctrl C. Clear this
- 20:15up. And there's a command that we can
- 20:17run. So, it's going to be mpm run reset-
- 20:21project. This is going to basically take
- 20:23all these folders and files that we
- 20:26don't really need and it's going to
- 20:27delete them. So now we have some
- 20:29components that we don't really need,
- 20:31some constants, hooks, so on and so
- 20:34forth. So just go ahead and run this.
- 20:36Then press enter once again. Here you
- 20:38can tell everything has been deleted and
- 20:41it has put it under an example folder
- 20:43which I don't really need. So I'm going
- 20:45to delete that one as well. Now let's
- 20:47run this app with MPX Expo.
- 20:51This is what we had initially. Right?
- 20:53Now, if you press R, it's going to
- 20:55reload it. And notice how we have much
- 20:58more simpler application. Right? This is
- 21:01literally just one screen with a simple
- 21:04text. Okay. Now, with this in mind,
- 21:07let's go ahead and plan a project. And
- 21:10in this tutorial, I'd like to use sorry,
- 21:13I'd like to build a social media
- 21:15application kind of like Instagram, but
- 21:18of course much more simpler than that.
- 21:21All right, so I have accidentally paused
- 21:22the video, but I was just saying that we
- 21:24would like to build an Instagram clone
- 21:27that is much more simpler, right? So
- 21:30we'll have maybe things like posting
- 21:32photos, commenting, having a profile
- 21:35screen, things like that. Um, and here's
- 21:38the workflow that we're going to be
- 21:40using. This is what I used to build my
- 21:42own mobile application as well. And I'll
- 21:45try to break it down as we go through
- 21:47this course. So, the very first thing
- 21:49that you need to do is planning your
- 21:52project. This is a step that a lot of
- 21:54beginners just skip. They immediately
- 21:56jump into coding because they're like
- 21:59really excited. But it almost always
- 22:02fails because if you don't plan
- 22:04everything then at some point AI will
- 22:07start guessing even like at the start.
- 22:10So what you'd like to do is kind of like
- 22:12giving the AI the context what kind of
- 22:15project that you would like to have you
- 22:17know like define your idea goals
- 22:19features pages user flow and text tag so
- 22:23that it doesn't really guess all these
- 22:25tools and features and for this I have a
- 22:29really really good prompt that is
- 22:31working every single time so I'm going
- 22:33to leave this in the description just go
- 22:36ahead and copy this entire thing and you
- 22:38can pause the video and read it.
- 22:40Basically, I'll try to simplify it. We
- 22:43ask AI to interview us about every
- 22:46single thing about this project so that
- 22:49it doesn't really guess anything and we
- 22:51are on the same page.
- 22:53Okay. So, once again, you can read this
- 22:55entire thing if you're interested, but
- 22:58I'm just going to copy this and go into
- 23:00cloud, sorry, into VS Code and into
- 23:03Codex. Here, you would like to select
- 23:05the mode. Let me find it. It should be
- 23:09plan mode. And to select plan mode, you
- 23:12need to press this plus. And then go
- 23:14ahead press the plan mode. Now paste the
- 23:17prompt first. And then here we say we
- 23:20are about to describe you the project.
- 23:23And here now I'll just go ahead and
- 23:25explain everything. Once I have it, I'll
- 23:27just be right back. So here I have
- 23:29paused the video and try to explain it
- 23:31to Codex. And here is my entire prompt.
- 23:34So here I said I want to build a simple
- 23:37Instagram style social media application
- 23:40using clerk for authentication and
- 23:42convex for the backend and database. I'm
- 23:45going to get into both of these
- 23:46technologies but basically this is the
- 23:48text tag to get started with. And then
- 23:51here I said users should be able to sign
- 23:54up and log in with Google or Apple. They
- 23:57should be able to create images or
- 24:00videos as posts, follow and unfollow,
- 24:03you know, like and comment. You can read
- 24:05the rest. And there's also sending
- 24:08direct messages, right? And they can
- 24:10also view and edit their profile. And
- 24:13here I say the app should have four main
- 24:16tabs which are going to be home,
- 24:18messages, explore, and profile. Now
- 24:21talking about tabs, let's go ahead and
- 24:24take a look at the native tabs in Expo.
- 24:27I'll just say native tabs and visit it
- 24:30in the expo documentation. Just scroll
- 24:32to the bottom. So these are the tabs.
- 24:34This is what I mean by tabs. And native
- 24:37tabs are giving this iOS liquid glass
- 24:41effect. Okay? So you don't really need
- 24:43to restyle it or generate it from
- 24:46scratch. There is a component called
- 24:48native tabs and it's going to give you
- 24:51all these features out of the box. If
- 24:55you're interested, you can take a look
- 24:56at the entire documentation. But this is
- 24:59something that we would like to use in
- 25:02here. Let's actually also say
- 25:06something like we will use native tabs
- 25:11and also for styling let's say
- 25:16we want to use something like native
- 25:19wind. So native wind is basically
- 25:21tailwind CSS but for react native okay
- 25:25for mobile application. Okay so you got
- 25:28the point. First off, you're going to
- 25:30get the plan prompt from right here,
- 25:33right? And then you would like to
- 25:35describe your project.
- 25:38Um, this is exactly what I have done. Of
- 25:40course, this should be a lot more
- 25:42detailed if you can, but for this demo
- 25:44purposes, I think that's fine. And here
- 25:47we'll go ahead and run this. This will
- 25:50ask a couple of different questions in
- 25:53like couple of different batches. First,
- 25:55we're going to get maybe like four
- 25:57questions. We'll answer all of them and
- 25:59then we're going to get another batch of
- 26:01four and then another one until AI has
- 26:05every single thing the entire context
- 26:08once we have it plan will be ready then
- 26:10we can actually start building the
- 26:13project
- 26:15and instead of building immediately what
- 26:18I'd like to do is generating the UI
- 26:20design depending on that plan that we
- 26:23generated and I'm going to get into that
- 26:26again I'll give you some prompts to
- 26:28generate the UI design. Okay, so I am
- 26:31back in VS Code. Here we got the very
- 26:34first batch of questions. We have three
- 26:36different questions. Here it says, who
- 26:38is V14 and what counts as a successful
- 26:42first release. Now, most of the time you
- 26:45would like to go with the recommended
- 26:47answer, but there will be some places
- 26:49where you'd like to actually choose a
- 26:52different like different answers than
- 26:54recommended and even sometimes add your
- 26:57own description. But in this case, I'll
- 27:00just say this should be just a working
- 27:02demo and I'll go with the recommended
- 27:04option. Then here it says like should we
- 27:08build it for both iOS and Android? Here
- 27:10I only want to have it for iOS first.
- 27:13So, I'm going to say, you know, like
- 27:15just go ahead and select this option. If
- 27:17you wanted to, you can select this one
- 27:19as well, but this is the one that I'll
- 27:21have. And then let's say public to
- 27:25members. Yes, everyone should be able to
- 27:27use it as long as they are signed in.
- 27:31Okay, so now AI will keep these answers
- 27:34in memory and then it's going to ask us
- 27:36another batch of questions. So, I think
- 27:39I'll just go through and answer every
- 27:41single one of them. Once it is done,
- 27:43I'll just be right back. And instead of
- 27:45answering them off camera here, I'll
- 27:47just do it right here so that you can
- 27:49see the type of questions that I'm
- 27:51getting. For image creations, let's just
- 27:54say single upload only so that we can
- 27:57keep it simple. So, here it says what
- 28:00users should see once they sign up. will
- 28:02say they have to choose a username and
- 28:05then here I'll just say home header
- 28:07button
- 28:11what comment and deletion behavior do
- 28:13you want for the demo let's just have
- 28:16flat comments and own deletion you can
- 28:18go a lot more complex but for the
- 28:21initial version that's not really what
- 28:23you would like to do so here again you
- 28:26can read the question this will be my
- 28:28answer
- 28:30and then it says what media limits are
- 28:32accept acceptable for this demo. Let's
- 28:33just say images up to 10 megabytes and
- 28:36video up to 30 seconds and 50 mgabytes.
- 28:41We don't really want to allow too large
- 28:43images and videos at the start.
- 28:50Um here it says can v1 exclude push
- 28:53notifications. Yeah, absolutely. We
- 28:55don't really want to have payments push
- 28:56notifications for initial version. I'll
- 29:00just say yes. trusted demo. We don't
- 29:02really want to build something really
- 29:04complex from the start. And this is what
- 29:06I have done with my own mobile app as
- 29:09well. Like instead of building every
- 29:11single feature from the start, I
- 29:14basically um started with the simple
- 29:17version which is V1 right. Just an MVP.
- 29:20So I said at least users should be able
- 29:23to take a photo and calculate their
- 29:26calories with AI. Once I had it, then I
- 29:30added bunch of more features, right? You
- 29:33don't really want to build everything
- 29:34from the start. From my experience, this
- 29:36has been working really nice. And this
- 29:39is what I would recommend. I would say
- 29:42um here we'll just say we'd like to
- 29:44build our own custom native screen
- 29:47instead of using the cleric UI because
- 29:49I'd like to show you how to generate
- 29:51something from the UI design that we're
- 29:54going to get from AI. Okay. So I'll go
- 29:57with this option
- 29:59and we would like to use convex
- 30:01throughout the project. Let's say online
- 30:04first and there should be retries as
- 30:06well. So here I have another question
- 30:09about the theme. Instead of answering
- 30:11any of these like I'll just put my own
- 30:13kind of like description or I'll just
- 30:15try to explain something like for now
- 30:19only light mode and I'm going to say for
- 30:22colors I'll provide a design reference
- 30:28later at some point
- 30:31because we don't really want it to use
- 30:33some you know like a color palette like
- 30:36blue it says but I don't really want to
- 30:38have it later at some point. I'll
- 30:40provide a pre-made design. So, I'll just
- 30:43say use that one.
- 30:49So, let's say it should be tap to play I
- 30:53think. Yeah, it is recommended. I'll
- 30:54just go with this one.
- 30:57Now, there is something called
- 30:58development build. And let me try to
- 31:00explain pretty quickly before I answer
- 31:03this. So, here you can tell we are
- 31:05running our application, right? But it
- 31:08is within the expo go. So this is the
- 31:11tool that expo provides you but this is
- 31:14for testing purposes right. This is for
- 31:17learning purposes. When you're building
- 31:19an actual application then you would
- 31:22like to create a development build
- 31:24because within this you cannot really
- 31:26have every single feature or some native
- 31:29modules doesn't really run within the
- 31:32expo. Okay. So once again in simple
- 31:35terms this is for testing purposes for
- 31:38learning demos. If you want to build a
- 31:40real project then you'd like to use
- 31:42something called development build. And
- 31:45basically what this does in simple terms
- 31:47is that it's going to take your
- 31:49application right and instead of running
- 31:51it within the expo go it will create
- 31:54this kind of a standalone application.
- 31:56Okay. And we're going to see it. I know
- 31:59that this sounds confusing for the first
- 32:01time for beginners, but I think that's
- 32:04completely fine. We'll see how that
- 32:06work. So, you would like to use a
- 32:07development build if you are building a
- 32:10real project.
- 32:12So, that's how I can explain it in
- 32:14simple terms. So, we have more
- 32:16questions. I'll just go ahead and choose
- 32:18the recommended ones
- 32:22so that we don't really waste too much
- 32:23time. But I think you're able to see the
- 32:26workflow. You will have all these
- 32:28questions so that AI doesn't really
- 32:31guess any feature but instead you are
- 32:33the one that deciding all of these. Now
- 32:36here it says what should a brand new
- 32:38user see when they follow no one. So
- 32:41basically when you sign up for the first
- 32:43time you know you are not following
- 32:45anyone and what you what should you see
- 32:47on the screen. So here you can go with
- 32:50the empty state. I'll just say seated
- 32:53demo content which means basically add
- 32:56some you know fake content or you know
- 32:58test accounts so that they can see some
- 33:01posts. I think this is going to be
- 33:03better especially for this tutorial. If
- 33:05I was building this as a real project I
- 33:08would probably go with the honest empty
- 33:10states. But here I'm going to select
- 33:12this one. And here it says should
- 33:15messages include unread indicators?
- 33:18Um, I think for now we'll just leave it
- 33:20as bare chat list. Maybe at some point
- 33:24we can add these features but for now
- 33:26we'll just leave it simple and choose
- 33:28this option. And here it says will you
- 33:31able to so this is the other question
- 33:34that I just got and this will be my
- 33:36answer here. I'll say for now we will
- 33:39just use clerk authentication with
- 33:41public key and this is something that
- 33:44we're going to get into. Basically,
- 33:45clerk will give you an environment
- 33:47variable and it's going to be our public
- 33:50key that we can use in development. I'll
- 33:53go ahead and submit this as well. Off
- 33:55camera, I have answered some more
- 33:57questions. And here's the entire thing.
- 33:59You can pause the video and read it. If
- 34:02you're building a real project, this is
- 34:04exactly what I would do. And here now it
- 34:07says, "Ready for me to turn this into an
- 34:09implementation plan." Here I'll just say
- 34:12for now go ahead and create this under a
- 34:15file a markdown file called plan.md
- 34:19kind of like readme.md. But here I
- 34:22should be able to at least see it.
- 34:25So here I'll just say for now create a
- 34:30plan MD file with all the details
- 34:36so that later we can you know implement
- 34:40this step by step. So I'm going to run
- 34:44this. It will create that plan MD file
- 34:46and after this I'm going to leave this
- 34:48lesson right here. In the next lesson
- 34:50we're going to get started with the UI
- 34:52design. And for this once again I'll
- 34:55provide a prompt that will help us to
- 34:58generate really nice looking UI designs.
- 35:01And once we have the design then we'll
- 35:03go into codex and we're going to break
- 35:05it into features like first we're going
- 35:07to build the authentication and then you
- 35:10know let's say the database connection
- 35:12so on and so forth and I'm going to get
- 35:14into that in the next lesson. For now
- 35:17let's just wait for this to create the
- 35:19plan.
- 35:24So here it says this is the entire plan.
- 35:26It is trying to still write it. Once it
- 35:28is done, I believe we're going to get
- 35:30the plan MD file. All right. So here we
- 35:34have the entire plan. You can take a
- 35:36look at it. You will also have your own
- 35:37plan. Here it says, do you want me to
- 35:40implement this? And I say for now only
- 35:42create the file later. I'll ask for
- 35:46implementation.
- 35:48So here turns out it can't create the
- 35:50plan. MD while we are in the plan mode.
- 35:53So here it says just deactivate it. If
- 35:55you press this plan mode is gone. And
- 35:58here I'll just say I or I'll just say do
- 36:02it now.
- 36:04So within the next 2 minutes it has
- 36:06created the plan.md with the entire
- 36:09details.
- 36:11You will have the exact same thing
- 36:13depending on the context that you given
- 36:15to AI. Okay. So I think we can end this
- 36:19section right here. But just before we
- 36:21do so, what I'd like to do is committing
- 36:23everything and publishing it to GitHub.
- 36:26Now, I'm going to go ahead and close
- 36:28this. If you wanted to, you can ask AI
- 36:30to do it for you, but for the first
- 36:32time, I'll just do it manually here. Uh,
- 36:35first off, let's go into GitHub. If you
- 36:38don't have an account, go ahead and
- 36:40create one. It's completely free to get
- 36:42started with. And then just press new,
- 36:45create a new repository. Then you will
- 36:47be on this screen. You need to give it a
- 36:50name here. In my case, I think I'll go
- 36:52with something like so. I think I'll go
- 36:55with this name. And for now, I'm going
- 36:57to make it private, but at the time that
- 36:59you are watching this video, it's going
- 37:01to be public and free. But for now,
- 37:03we'll go with private. Yeah. Other than
- 37:05this, you can leave everything as it is
- 37:07and create the repository.
- 37:10Now, it's going to give us a command,
- 37:12which is this part. We're going to copy
- 37:14it and paste it into our terminal. So
- 37:16I'm going to first copy this and go into
- 37:19VS code. First I'm going to stage
- 37:22everything. So under this tab,
- 37:25press this button where it says stage
- 37:27all the changes and then let's create a
- 37:30commit message by pre by pressing this
- 37:33button. So AI will create the message.
- 37:37Technically you can type anything but it
- 37:40is just better to use this feature of
- 37:42AI. And now we're going to commit this.
- 37:45And let's try to publish the branch, I
- 37:47would say. But first, we need to, I
- 37:49think, go into our terminal, kill this,
- 37:54clear this up, and then paste this in
- 37:56that we just copied. Now, what this does
- 37:59is basically taking all these local
- 38:02changes that we have in our laptop, in
- 38:04our machine, and push it to the
- 38:08to the repo that we just created. So
- 38:11notice how once this is done
- 38:13successfully, you'll be able to reload
- 38:15this and see everything
- 38:18like they are literally right here.
- 38:21Okay, so we had all these local changes.
- 38:23They are now live on GitHub.
- 38:27Okay, so I think I'm going to leave this
- 38:29lesson right here. Remember this is one
- 38:32of the most important steps when you're
- 38:34building an application. So I think you
- 38:37should spend a lot of time while
- 38:39planning your application. So instead of
- 38:41just jumping into coding immediately,
- 38:44you should you should spend a lot of
- 38:45time and talk with AI just like what we
- 38:49have done in this lesson. Okay. So with
- 38:51this I'm going to see you in the next
- 38:53lesson where we will generate the UI
- 38:55design. All right. So this is where we
- 38:57left in the previous lesson. We have
- 38:59planned our project. Now it is time to
- 39:01get started with the UI design. Now for
- 39:04this I already have bunch of different
- 39:06prompts that I used that give me really
- 39:08really nice looking designs and now
- 39:10we're going to use a similar thing. So
- 39:12here we have one design for AI trip
- 39:15planner application. We have another one
- 39:18for recipe app and this is the prompt
- 39:20that I used to get that design. Same
- 39:22thing for a dating app. Then the actual
- 39:25UI design for my mobile application and
- 39:28then at the end for the dental
- 39:30application UI design. You can find this
- 39:33link in the description. I'm going to
- 39:35leave it. Um, let's scroll to the top
- 39:38and basically I'm going to copy this
- 39:40entire prompt. But now remember this is
- 39:43for the trip planner application but we
- 39:46are building for something like a social
- 39:48media application. So what we'll be
- 39:50doing is first copying this prompt going
- 39:53into chat GPT or Gemini whatever you're
- 39:56using paste the prompt and then we'll
- 39:59say depending on our plan which is right
- 40:02here. So copy it we'll say depending on
- 40:05our plan give us a prompt like this one
- 40:09and once we have the prompt we will
- 40:10paste it into a new chat that will
- 40:13generate the image for us. So, I'm going
- 40:15to go ahead paste this in, which is my
- 40:18plan.
- 40:20And then here, I can say something like,
- 40:23depending on the plan that I have, I
- 40:26want you to generate me a prompt like
- 40:28this that will generate a UI design.
- 40:34Okay.
- 40:36Once again, basically it's going to read
- 40:38our plan and depending on the plan, it
- 40:40will give us a prompt like this so that
- 40:43we can go into a new chat and generate
- 40:46an image. And there is a new model that
- 40:49GPT just released which is image
- 40:532.5. It looks really really nice. I
- 40:56already tried this out. Um let's just
- 40:58say create image. And then once we have
- 41:02the prompt, I'm going to copy it and
- 41:04paste it. But looks like this is trying
- 41:06to generate the image. Well, not really.
- 41:09It wasn't an image. So, it was a prompt
- 41:12just like what we asked. So, I'm going
- 41:14to go ahead copy this entire thing
- 41:19like up until here. And I'm going to
- 41:21paste it right here.
- 41:26All right. So, after some time, this is
- 41:28the end result that I got from GPT. I
- 41:30think the UI itself is looking pretty
- 41:32clean and crisp. But there are a couple
- 41:34of different things that I didn't really
- 41:36like, which is the icon. So here
- 41:39instead, I'd like to have a camera icon.
- 41:42And I will also say that, you know, this
- 41:44is the design system. I wanted to
- 41:46upscale it. Here is my prompt. You can
- 41:49do a similar thing. So I said, "This is
- 41:51a good start, but I want you to update
- 41:53the logo from the sea letter to a camera
- 41:57icon. similar to Instagram but a little
- 41:59bit different. So do not copy it
- 42:01exactly. Also upscale the design system
- 42:04as a separate image. So I'm going to go
- 42:06ahead and run this. Now once we have the
- 42:10design system, we'll go into VS Code.
- 42:13Let's create a folder called design. And
- 42:16within this, we're going to have the
- 42:18design system. We'll attach it. And we
- 42:21will also have each of these screens
- 42:24upscaled one by one. So this is my
- 42:27workflow. Let me show you that. So we
- 42:29will generate the full UI design which
- 42:32is kind of like what we have done right
- 42:34here. Right? And then we're going to
- 42:36upscale each screen like one screen at a
- 42:39time. Let's say first we will upscale
- 42:41the authentication and then I don't know
- 42:44like the onboarding profile so on and so
- 42:46forth. And we are going to build them
- 42:49one by one. I think we can start with
- 42:51the authentication screen. And I believe
- 42:55right here we should have the oath
- 42:58screen. Let me try to zoom in. Yeah, but
- 43:01like this doesn't really good. Uh this
- 43:04doesn't really look that good. I think
- 43:06this text is unnecessary.
- 43:08But yeah, like we'll just try to follow
- 43:12up with the GPT couple of more times
- 43:14until we get something that we actually
- 43:16like. Now, this is the thing about AI.
- 43:19Most people just try to get the best
- 43:21result in the first shot and if they
- 43:23don't get it, they kind of like give up.
- 43:25They're like AI sucks. It's not really
- 43:28good. But dude, like it's just AI at the
- 43:31end of the day. You need to follow up
- 43:32couple of more times, give it a
- 43:34reference, you know, so you can get
- 43:37something that you actually like. In
- 43:39this case, I didn't really like the
- 43:40authentication screen design. So I'm
- 43:43going to follow up in a second. All
- 43:45right. So after some time this is the
- 43:47image that I got here. You can tell the
- 43:50logo has been updated and then I think
- 43:53we also have the design system which is
- 43:55kind of like upscaled. So we can copy
- 43:57this and paste it into VS code in a
- 44:00second. But here I think you know as I
- 44:03already told you I didn't like the
- 44:05authentication UI screen. So here you
- 44:08can tell this is my prompt. I just said
- 44:10give me a different variation and
- 44:12upscale that image. also upscale the
- 44:15design system. So, for some reason,
- 44:17initially I didn't see this one. Um, but
- 44:20yeah, I'm going to go ahead and copy
- 44:22this image
- 44:24and I'll paste it right here and let's
- 44:27just say design system reference.
- 44:32Now, the reason that we generated this
- 44:34and also the entire design is because
- 44:38like our AI agent can take a look at it
- 44:41and see all the components, all the
- 44:43colors like fonts, literally everything
- 44:46that it needs because here it's going to
- 44:48be harder to find it and it doesn't
- 44:50really include everything. And now I'm
- 44:53going to copy this image as well. Let's
- 44:55go into VS Code. I'm going to paste it
- 44:57right here. And let's say this is the
- 45:00oath screen design or you can just say
- 45:05reference as well. This is what I
- 45:06usually like to call it. Now with this
- 45:09we can literally go ahead and ask AI to
- 45:12build this design. And for this again I
- 45:15have a kind of like a special loop that
- 45:17I'm going to show you in the incoming
- 45:19minutes. But for now that's the
- 45:21authentication screen. After
- 45:23authentication what we can create. Let's
- 45:25take a look at it.
- 45:29um we can create the profile screen or
- 45:32the home screen, but for now I'm just
- 45:34going to copy this entire image. So I
- 45:37was just saying that I'm going to copy
- 45:38this image and I'll go into VS Code
- 45:41right here. I'm going to paste this and
- 45:43I'll say the design reference or let's
- 45:46just say app design reference. Okay,
- 45:51now this is the entire design, right?
- 45:53This is the design system and this is
- 45:56the authentication screen. Anytime that
- 45:58we want to build one screen at a time,
- 46:01we'll be using you know this kind of
- 46:04images. We are going to upscale every
- 46:06single screen. Now you might be asking
- 46:08how can we get this demo image so that
- 46:10we can use it in the authentication
- 46:12screen. Well that's a nice question.
- 46:14What I'll be doing is going into GPT and
- 46:19I'll say
- 46:22I want you to generate me the demo image
- 46:24that you're using in the authentication
- 46:27screen.
- 46:31Okay. So it's going to generate that
- 46:32image so we can use it later in the
- 46:36authentication screen. So I don't know
- 46:39why but initially it has generated this
- 46:41image which is something that I don't
- 46:43really like because this is what we'd
- 46:45like to use in the authentication
- 46:47screen. So I took this screenshot. If
- 46:49you're on Mac it's going to be command
- 46:51shift control and 4. Okay. So command
- 46:55control shift and 4 is going to allow
- 46:58you to take the screenshot and then just
- 47:01paste it right here. So I said I I meant
- 47:04this one and then I also said you know
- 47:07make the background to be transparent so
- 47:10that it matches the white background of
- 47:12the application.
- 47:14Okay. So basically we don't really want
- 47:16to have this background on the image.
- 47:19So this is the end result that I got.
- 47:22I'm just going to copy it and paste it
- 47:25right here. Let's actually put it under
- 47:27the assets images. Ctrl +V and let's say
- 47:33oath demo image. Later in the video,
- 47:37we'll be using it and I'll show you how
- 47:38to attach it to the Codex chat. Okay, so
- 47:43that's my design workflow in simple
- 47:46terms. Now, I could have made this a lot
- 47:49longer than this. I can explain every
- 47:51single detail like how we can create
- 47:54every single screen, how we can upscale
- 47:56them, but that's really the basic gist
- 47:59of it. Now, you need to do the same
- 48:01thing over and over again to generate
- 48:04all these images. And actually, like
- 48:07later in the video, you're going to see
- 48:08that we don't really need to create all
- 48:10of them at some point because we're
- 48:13going to have enough design references
- 48:15and Cloud will be able to build the
- 48:17other screens just by looking at this
- 48:20image. Okay. So, with this in mind, I
- 48:23think I'm going to end this section
- 48:24right here. This has been like 10 minute
- 48:27lesson, I believe, or something like
- 48:29that. 10 to 15 minutes. I'm going to go
- 48:32ahead and stage everything. We only have
- 48:35some images and we're going to say get a
- 48:38commit message.
- 48:41Once we have the commit message, we're
- 48:43going to go ahead and commit and we're
- 48:45going to say sync this up. Basically,
- 48:47it's going to take these local changes
- 48:49and push it to our GitHub account. Let
- 48:52me actually show you that.
- 48:56So, it was called as Codex Graham. So,
- 48:59I'm going to visit that repo. And here
- 49:01you can tell we just got those changes
- 49:03just now.
- 49:05Okay. So with this I believe I'm going
- 49:08to see you in the next lesson. All
- 49:10right. So in the previous lesson we have
- 49:12generated the design for authentication
- 49:15screen. Now let's go ahead and see how
- 49:17we can take this and convert it into
- 49:19reality. So there is a loop that I
- 49:22always use which is basically we ask
- 49:25cloud to take a screenshot from the
- 49:28simulator. Right? So let's say this is
- 49:30our authentication screen. We say take a
- 49:33screenshot and compare it to the end
- 49:35result until they're identical. Go ahead
- 49:38and do it, right? So this is like a
- 49:41loop. First we say go ahead and build
- 49:44the authentication screen. And here is
- 49:46the workflow. Take a screenshot from the
- 49:49simulator and compare it to the actual
- 49:51design. And if it is identical, just
- 49:54stop. If it is not, then keep going.
- 49:57Right? So this is like a loop. It is
- 49:59going to run a couple of times and once
- 50:01it is done once it is identical we'll
- 50:04just say okay um I was saying once it is
- 50:07identical just move on with the next
- 50:09feature or the next screen whatever that
- 50:11is okay so with this in mind let's go
- 50:14ahead and talk with claude
- 50:16sorry with codex in this case I'm not
- 50:19using claude but you got the point here
- 50:22I think I'll just open up a new chat
- 50:27and here I'll just try to explain it.
- 50:29All right, so I just paused the video
- 50:31and explained it. You can pause the
- 50:33video and read it. Basically, this is
- 50:35exactly what I just explained. And I'm
- 50:36going to go ahead and run this. And let
- 50:39me just double check if I'm running the
- 50:41application. I think I don't. So, I'm
- 50:44just going to say MPX Expo.
- 50:49And I'll press R or you should press I
- 50:52if it is not running in the simulator.
- 50:55Now, it is right here as you can tell.
- 50:57Now while this is trying to build it, we
- 50:59can create the we can create the clerk
- 51:02application. So clerk is going to be the
- 51:05authentication service that we'll be
- 51:07using. It is completely free to get
- 51:09started with and you don't really need
- 51:10to pay anything like you don't even need
- 51:13to put in your credit card information.
- 51:16So just go ahead and create an account
- 51:18and then right here you can create a new
- 51:20application. In my case I have bunch of
- 51:23different apps but let's let's start
- 51:25from scratch. Let's give it a name. I'll
- 51:27just say Codex Creme. You can call this
- 51:30anything. And then just add the sign-in
- 51:32options that you would like to have. In
- 51:34my case, I'm going to disable the email,
- 51:37but I'll just have Google as well as
- 51:39Apple. Now, one thing that I want to
- 51:41mention, if you include like if you
- 51:44include something like Google
- 51:46authentication, then you have to have
- 51:48Apple authentication as well, right? So
- 51:51basically Apple tells you that if you
- 51:54include any other social integrations
- 51:57for the authentication then you have to
- 51:59have Apple as well otherwise your
- 52:02application will be rejected and we'll
- 52:04go ahead and activate both of them in
- 52:06clerk dashboard and we'll say create the
- 52:09application.
- 52:12Okay, so here they have bunch of
- 52:14different SDKs lit literally for
- 52:16everything. But in our case, we're going
- 52:18to get the expo SDK. Now you can copy
- 52:22the prompt and just let AI to set this
- 52:25up. And this is actually what I'll be
- 52:27doing. But if you would like to see the
- 52:29entire manual setup, then just press
- 52:31here. Then you can go through it. What
- 52:34I'll be doing is just getting the
- 52:36environment variable. So I'm going to
- 52:37copy it and I'm going to go right here.
- 52:41create the env file
- 52:46and I'll just paste this in. So we have
- 52:48a publishable key. Basically with this
- 52:51key we can connect to this application
- 52:55that we just created. You can think of
- 52:57it in that way. And I think I'm going to
- 53:00copy this prompt. But I'd like to
- 53:02implement authentication a bit later in
- 53:04the video. For now let's just set up the
- 53:07UI design. and I'll just be right back
- 53:09once this is completed. All right, so
- 53:11after around 4 minutes, we got the end
- 53:14result. I think this is looking pretty
- 53:16similar to the design that we attached.
- 53:19Let me just actually find it.
- 53:23Okay, so it is almost identical. Like we
- 53:26have the three dots which is right here,
- 53:28icon, logo, um literally everything.
- 53:33What I'd like to get rid of is maybe
- 53:35this text. I think it is just
- 53:38unnecessary. So I can search for it and
- 53:40delete it myself.
- 53:43A social app trusted testers. So let's
- 53:47find it.
- 53:52And I'll just delete this text. I think
- 53:54it is unnecessary.
- 53:56But other than this, I think this looks
- 53:58pretty clean, especially for the version
- 54:01one. Maybe later at some point we can
- 54:04update it. Um, but yeah, for now I'll
- 54:07just leave it as it is. Now, let's go
- 54:09ahead and get this prompt. I'm going to
- 54:12copy it and then I'll paste it right
- 54:14here. And I'll say implement. So, I just
- 54:19said implement authentication with
- 54:21clerk. And here's the entire
- 54:22documentation.
- 54:25And again, I'll just be right back once
- 54:27this is done because currently if you
- 54:29press, nothing happens.
- 54:31But now Codex will implement it and it
- 54:35should work out. All right. So here you
- 54:37can tell it has built it and now it's
- 54:39even using my computer and testing out
- 54:42by itself. Like this is Codex. It has
- 54:45clicked to it and now I think it's going
- 54:47to go ahead and say continue or cancel.
- 54:51Like it's literally testing this out.
- 54:54Now, what I'll be doing is basically
- 54:56just stopping this process because I
- 54:58believe it is already implemented
- 55:00successfully. I'll just go ahead and
- 55:02test this out. So, I'm going to press
- 55:04this button and let's say continue. I
- 55:06already have an account that I signed in
- 55:08in the past. Um, like what is going on?
- 55:11Let's just say cancel. And
- 55:15wait, I think I'm just going to close
- 55:17this first. And okay, so I believe like
- 55:21here you can tell we got the Codex
- 55:23Graham and this is the development
- 55:26build. This is something that I have
- 55:28briefly mentioned in the past but I
- 55:30never told you how we can get this. So I
- 55:33think you know as you can tell Codex has
- 55:35already got the development build but
- 55:38let's say you don't really know how to
- 55:40do it. I'll try to explain pretty
- 55:42quickly. So first off there is something
- 55:44called expo dev client. This is a
- 55:46package that you can take a look at it
- 55:48or a module.
- 55:50You would copy this, okay, and paste it
- 55:53into your terminal. MPX expo install
- 55:57expo client. Once you have this, you
- 55:59would go into your terminal and let's
- 56:01say you would just open up a new
- 56:05terminal. Okay? And then you would say
- 56:06mpx expo run iOS or Android if you're
- 56:11building it for Android. So in my case,
- 56:14it's going to be iOS. And looks like
- 56:16Codex has already run it. If you take a
- 56:18look at it right here, I have an iOS
- 56:22folder, right? If you run it with
- 56:24Android,
- 56:26then you would have the Android folder
- 56:28as well.
- 56:30And what this is basically this is the
- 56:33entire application, right? But it is
- 56:36built under the iOS folder. So this is a
- 56:39development build. Now we can see it is
- 56:41right here. Okay? So it is much more
- 56:43than this but we can keep it like this
- 56:45to explain it simply.
- 56:48Okay. So from here on out whenever I
- 56:51want to run my application I'll just run
- 56:53it from here. I'm not going to go ahead
- 56:55and open up the XOGO application because
- 56:58as I said that's that was for testing
- 57:00purposes for small applications.
- 57:04Okay. I hope that this makes sense. Now,
- 57:06we'll go ahead and just say continue
- 57:10with Google.
- 57:12And before I say continue, if you press
- 57:15Ctrl D, you're going to get the
- 57:17developer developer tools. And here you
- 57:20can toggle the tools button, which is
- 57:23this one. This is just for development
- 57:26purposes. You will not see this if you
- 57:28publish your app to the app store. Okay.
- 57:31So, here you can toggle the state. You
- 57:33can have the fast refresh, reload, go
- 57:36home, basically everything.
- 57:39And now we'll just say continue with
- 57:40Google and we'll test out if the
- 57:42authentication will work.
- 57:47So this takes some time, but
- 57:50I don't know why. I'll try to control D
- 57:53and reload.
- 58:02Okay,
- 58:03now we'll try to sign up
- 58:06because if you currently take a look at
- 58:08it under the users, we don't really have
- 58:10any account. Oh, I think we have and I
- 58:13believe that's because Codex has test
- 58:16this out in the background. Um, but
- 58:19yeah, right here now we just logged in.
- 58:22We can sign out as well and we'll be
- 58:25right here. Okay, so that's the
- 58:28authentication. It is implemented in
- 58:30simple terms. You can also test out with
- 58:32Apple, but since Google is working like
- 58:35this is also working 100%, but I'm just
- 58:38not going to test this out. Um, with
- 58:40this, what I have done off camera is
- 58:43that I went into GPT into the same chat
- 58:46history. This is where we left. I said
- 58:49upscale the home screen, profile, and
- 58:51chat screens. generate each of them as a
- 58:55separate image. So, we have the chat
- 58:57screen, we have the home, and we have
- 59:00the profile screen. So, I'm going to
- 59:02copy every single one of these images
- 59:05and go into VS Code. Let's maximize the
- 59:08screen
- 59:10under the design. I'm going to paste.
- 59:13Oops. I'm going to paste this one.
- 59:17Let's call this as home screen
- 59:20reference.
- 59:21And let's go into GPT. Basically, I'll
- 59:24do the same thing for the other screens.
- 59:30This is going to be chat screen
- 59:33reference. And then finally, I believe
- 59:36the profile screen.
- 59:47Okay. Now the other thing that I have
- 59:50done is basically generating more
- 59:52screen. I said upscale the explore
- 59:55screen which is this one. Um it is this
- 59:58one. Then I said the edit profile sheet
- 1:00:01comment sheet and I said generate every
- 1:00:04single one of them as a separate image.
- 1:00:08So here you can tell we have the
- 1:00:09comments. So these are needed for GPT or
- 1:00:14CEX to copy it. So, what you would like
- 1:00:17to do is copying them and pasting it
- 1:00:19right here.
- 1:00:21I'll say explore screen
- 1:00:26reference. Now, I'm going to get the
- 1:00:28other images as well, but here I think
- 1:00:31I'd like to go into Codex and I'll say
- 1:00:34just like in the authentication screen,
- 1:00:37I want you to build the home screen
- 1:00:39where we have that loop. Right? So, I'll
- 1:00:41try to explain it.
- 1:00:44Let me show you that pretty quickly.
- 1:00:46Okay. So, I'll just say put yourself
- 1:00:48into this loop once again and build the
- 1:00:51home screen. For now, we don't have a
- 1:00:53database. We don't have any data. So,
- 1:00:55I'll just say create some test or some
- 1:00:58fake data just like one of these and
- 1:01:01build the UI. So, I just pause the video
- 1:01:04and get my prompt. And here, if you
- 1:01:06wanted to reference an image, which is
- 1:01:09home screen, you can just say add and
- 1:01:11then add the file name. So that's going
- 1:01:14to be home screen rev.png.
- 1:01:17I'll go ahead and run this. Once this is
- 1:01:19done, I'll just be right back. So
- 1:01:21currently it has built and it is still
- 1:01:24within that loop. Like it's literally
- 1:01:26trying to compare it to the end result
- 1:01:28and trying to fix the issues. And
- 1:01:31currently I can see like there is one
- 1:01:33issue right here. Um, it should fix that
- 1:01:36kind of like overflow. It should look
- 1:01:38like this. Um, so yeah, I'll just wait
- 1:01:41for this to be completed. Once it is
- 1:01:43done, I'll just be right back. But this
- 1:01:46looks identical. Like literally the
- 1:01:48exact same end result. All right, so GPT
- 1:01:51is done with it, but still there are
- 1:01:53some issues that it didn't really fix,
- 1:01:55which is something that you shouldn't
- 1:01:57really get mad at because it is AI at
- 1:01:59the end of the day. You should take the
- 1:02:01screenshots and follow up. This is what
- 1:02:03I do. Like I would literally take a
- 1:02:05screenshot and then paste it right here.
- 1:02:08And instead of um adding couple of
- 1:02:11updates or a couple of fixes in one
- 1:02:14prompt, what I do is asking for one fix
- 1:02:17at a time. So here I just took the
- 1:02:20screenshot and I'll say fix this
- 1:02:22overflow.
- 1:02:27Okay. So once this is done and then I'll
- 1:02:29follow up. I'll say um use the native
- 1:02:33tabs for these tabs, right? Once again,
- 1:02:36native tabs are something that we have
- 1:02:39in expo. You can double check this will
- 1:02:41give us the iOS liquid glass effect.
- 1:02:46If you wanted to, you can copy the
- 1:02:47entire page as markdown. This will get,
- 1:02:50you know, the entire page as a
- 1:02:52documentation
- 1:02:55and you can paste it right here.
- 1:02:56Actually, this is what I'll be doing.
- 1:02:58I'll say
- 1:03:00let's say something like convert tabs to
- 1:03:04native tabs. And here is the
- 1:03:09entire documentation and then you would
- 1:03:12paste this. Now I'm going to run this
- 1:03:14but let's first wait for this to be
- 1:03:16completed and I think it is already
- 1:03:18done.
- 1:03:20Now you know GPD is trying to use my
- 1:03:23simulator and test this out. Okay. So
- 1:03:27here you can tell I think here we don't
- 1:03:30really have an overflow but the image is
- 1:03:32not really
- 1:03:34like can you see the image has the black
- 1:03:37background which is something that we
- 1:03:39can fix. This is some hardcoded test
- 1:03:42data anyways. Okay. So I'll go ahead and
- 1:03:45run this now. In a couple of minutes the
- 1:03:48tabs should be converted to native tabs.
- 1:03:51All right. So after 5 minutes it was
- 1:03:53able to build the native tabs. As you
- 1:03:55can tell, it is looking really really
- 1:03:57clean compared to the previous version.
- 1:04:00Now, there was kind of like an issue
- 1:04:02here. You can tell the background was
- 1:04:04kind of like gray, but now it is
- 1:04:06transparent. That's because I asked it.
- 1:04:09So, here I took the screenshot and I
- 1:04:11said native tabs looks as I wanted, but
- 1:04:15remove the gray background. So, the rest
- 1:04:17of the application is visible. Right?
- 1:04:20Previously, here I had some gray
- 1:04:22background here. you can tell. Um, but
- 1:04:26now we don't really have it. As you can
- 1:04:28tell, it just fixed it under 1 minute.
- 1:04:31So, with this, I hope you are able to
- 1:04:33see my workflow. Now, in the exact same
- 1:04:35way, I'll go ahead and build the profile
- 1:04:37screen, you know, explore screen and
- 1:04:39even the messages screen. Here, I think
- 1:04:42I added couple of more images of camera.
- 1:04:45So, we had the profile home. I have
- 1:04:49added the edit profile reference, right?
- 1:04:52this screen. I have added the comment
- 1:04:55screen as well and I believe the chat
- 1:04:57screen. Okay, so these are some of the
- 1:05:00screens that I I have added off camera.
- 1:05:03Other than this, I haven't updated
- 1:05:04anything in the codebase. Now I'll go
- 1:05:07ahead and just say now do the exact same
- 1:05:10thing for the profile screen. Once it is
- 1:05:12done, I'll just be right back. So just
- 1:05:14for the record, here is my prompt. I
- 1:05:17said now build the profile screen. use
- 1:05:19that loop and here is the reference
- 1:05:21image that I just attached.
- 1:05:24All right, so in 6 minutes it was able
- 1:05:27to build and test that out. This is the
- 1:05:29profile screen. Now I just said build
- 1:05:32the edit profile and here is the
- 1:05:34reference image. So I'm going to run
- 1:05:35this once it is done. I'll be right
- 1:05:37back. Now you might be asking why don't
- 1:05:40we implement anything now. Well, that's
- 1:05:42because I think it's always better to
- 1:05:44have the entire the entire UI design and
- 1:05:48then it's going to be really easy to
- 1:05:50replace everything with the actual data.
- 1:05:53For now, like this is my workflow. I'm
- 1:05:55trying to get the UI design as much as
- 1:05:58possible. And once I wanted to implement
- 1:06:01the actual back end, all I need to do is
- 1:06:04just replacing this data with the actual
- 1:06:07data. Okay, so we're going to set up
- 1:06:09convex in the incoming sections. But for
- 1:06:12now, let's just go ahead and build most
- 1:06:14of the UI design. All right, so after
- 1:06:17some time, here we go. It's also been
- 1:06:18built. But I think having the sign out
- 1:06:21here doesn't make any sense. That's what
- 1:06:23we have in our UI design. So I cannot
- 1:06:25really blame Codex. But I'll just say
- 1:06:28delete the sign up button from here.
- 1:06:30Maybe we should have it under the
- 1:06:32settings. So basically when we press
- 1:06:34this button there should be some kind of
- 1:06:37setting screen and I'm going to get into
- 1:06:39that and I'm going to get into that a
- 1:06:41little bit later in the video. So for
- 1:06:43now I'll just say delete the sign up
- 1:06:46button from edit profile screen.
- 1:06:52And also what I'll be doing is taking a
- 1:06:55screenshot from right here. I'll just
- 1:06:58say replace the three dots with a
- 1:07:02settings icon. Later we will build that
- 1:07:06page.
- 1:07:11Okay. Now it says I have removed the
- 1:07:13sign up button. Yes, it is not here. And
- 1:07:16now we should update this part as well.
- 1:07:19Now while it is trying to update it,
- 1:07:21let's go ahead and say build the explore
- 1:07:24page. We already have something here but
- 1:07:27it is not the design like this is
- 1:07:30something Codex generated for fun in the
- 1:07:33past. Um basically I would like to get
- 1:07:36this one.
- 1:07:39So I'm just going to reference this.
- 1:07:41Let's say explore screen reference.
- 1:07:45Let's say build the explore screen.
- 1:07:51And here you can tell this has been
- 1:07:52updated to settings and we will
- 1:07:55implement it a bit later in the video.
- 1:07:57All right. So after some time the
- 1:07:59explore screen is ready. Here you can
- 1:08:01tell we're going to replace them with
- 1:08:03the actual data a bit later in the
- 1:08:05video. And after explore screen I just
- 1:08:08added the chat screen reference. And
- 1:08:10when I said build the screen as well. So
- 1:08:13we have a fake account or a chat. If we
- 1:08:16press that, we have the actual details
- 1:08:19where we can send the message. This is
- 1:08:21something again we're going to get into
- 1:08:23the details and the implementation a bit
- 1:08:26later in the video. But with this, I
- 1:08:28think we can leave this section right
- 1:08:31here where we built the entire UI design
- 1:08:34from the authentication screen to the
- 1:08:36profile and basically everything that we
- 1:08:39we would need for the version one.
- 1:08:43Now just before I commit my changes and
- 1:08:45end this section there is one thing that
- 1:08:47I want to talk about. Let's go into the
- 1:08:49workflow that we had so far. So we have
- 1:08:51built our plan. We have generated the UI
- 1:08:54design. We break it into features like
- 1:08:57authentication and UI design. So far we
- 1:08:59have only built these right. So you're
- 1:09:02going to build one feature at a time.
- 1:09:04That's what we have done. We built the
- 1:09:06authentication screen and then we have
- 1:09:09built the rest of the page. um sorry
- 1:09:11rest of the design we did like a selfch
- 1:09:14check we manually tested most of the
- 1:09:16things if they're working or not and it
- 1:09:19turns out everything has passed but now
- 1:09:21we need to run an AI code review this is
- 1:09:24at least what I do as a part of my
- 1:09:26workflow because it looks like
- 1:09:29everything is working but in my codebase
- 1:09:31there could be a lot of different
- 1:09:32security issues that I cannot really
- 1:09:34see. So for that reason I want to have
- 1:09:37an AI that can you know like scan my
- 1:09:41entire codebase and see if I have any
- 1:09:44issues or if I'm not following any
- 1:09:46conventions so on and so forth. Now for
- 1:09:49this there are bunch of different tools
- 1:09:51and one of the free tools that you can
- 1:09:52get started with is going to be code
- 1:09:55rabbit. It's completely free to sign up
- 1:09:57and you'll get like 2 weeks of free
- 1:09:59trial and I already have an account. So
- 1:10:02just go ahead and log in with your
- 1:10:04GitHub account. Then you would like to
- 1:10:06visit u this section where you have
- 1:10:09repositories. So once you're here, you
- 1:10:11can go ahead and add your repositories
- 1:10:13manually or you can sync all of them at
- 1:10:16once. This is what I have done. I
- 1:10:18basically have all my repositories in
- 1:10:20the code rabbit dashboard. Now anytime
- 1:10:23you would like to use code rabbit for
- 1:10:25the AI code review, you need to send a
- 1:10:27pull request or you can do like on the
- 1:10:30main branch as well. But I'd like to
- 1:10:32create separate branches. And if you
- 1:10:34don't know what that means, let me try
- 1:10:36to explain pretty quickly.
- 1:10:39So just imagine this is the timeline,
- 1:10:41right? And you're building features
- 1:10:43every single next day. Okay? So today
- 1:10:46you started with the authentication.
- 1:10:48Next you added the UI design. Next you
- 1:10:51add the you know messaging feature. And
- 1:10:54now you would like to add the video
- 1:10:56calling feature, right? But you don't
- 1:10:58really know if it is going to break or
- 1:11:00if your teammates will accept it or not.
- 1:11:03So you say instead of me updating the
- 1:11:05code directly, right? Instead of me
- 1:11:07updating the actual branch, let me go
- 1:11:10ahead and create a testing branch,
- 1:11:12right? And then here I'll add some
- 1:11:14changes like I'm going to add the audio
- 1:11:15calling and then video calling and then
- 1:11:18you're going to commit them. Now let's
- 1:11:20say you like the actual end result then
- 1:11:23you can send a pull request and you can
- 1:11:25say if you're working with your
- 1:11:26teammates you can say something like
- 1:11:28here I have built the video calling
- 1:11:31feature can you please accept my request
- 1:11:34and if they accept it now your changes
- 1:11:36will be added into the actual actual
- 1:11:39branch which is what we call either main
- 1:11:42or master.
- 1:11:46Now, let's say your team actually like
- 1:11:48this feature, they can accept it and
- 1:11:50then later at some point you can delete
- 1:11:52this branch and like you don't really
- 1:11:54need it anymore and your changes are
- 1:11:57right here. Or let's say they didn't
- 1:11:59really like it. They say this is
- 1:12:01breaking our code or I don't know we
- 1:12:03don't want to have video calling feature
- 1:12:05something like that. They're going to
- 1:12:06reject your pull request and then you
- 1:12:08can basically go ahead and you know
- 1:12:10delete this branch as if nothing has
- 1:12:12happened. All right, so that's the
- 1:12:14general idea behind it. If you're a
- 1:12:16beginner, like if you have never seen
- 1:12:18this before, it might feel a little bit
- 1:12:20abstract, but like that's the general
- 1:12:22idea behind it. You create separate
- 1:12:25branches, right? And you can add more
- 1:12:27features, then at some point just take
- 1:12:29it back or push it to the main branch.
- 1:12:33So just imagine like you are 10
- 1:12:35different people in a project. Everyone
- 1:12:38can create their own branches and work
- 1:12:40on different features, right? eventually
- 1:12:43everything will be merged to the main
- 1:12:46branch. Okay, so I hope that's not
- 1:12:48really confusing. Now let's go into VS
- 1:12:51Code and see how we can create a
- 1:12:53separate branch and commit our changes.
- 1:12:56So first off, I'll maximize the screen
- 1:12:58and I'm going to press command shiftp or
- 1:13:01if you're on Windows that's going to be
- 1:13:03control shiftp. Then here you can say
- 1:13:06toggle status bar visibility
- 1:13:08from right here. I think excuse
- 1:13:11[clears throat] me I'm going to select
- 1:13:14create new branch by default I'm on
- 1:13:16master as you can tell in your case this
- 1:13:18might be main which is fine it is the
- 1:13:20same thing um just go ahead and say
- 1:13:23create a new branch and then let's give
- 1:13:25it a name I'll just say oath and let's
- 1:13:28say UI design
- 1:13:31all right so currently we created this
- 1:13:33branch right now let's try to commit our
- 1:13:35changes
- 1:13:37so you'll go right here scroll to the
- 1:13:40top
- 1:13:41stage everything by pressing this
- 1:13:44button.
- 1:13:45Let's get a commit message.
- 1:13:48So that's the message AI generated for
- 1:13:50me. I'll go ahead and commit this. Okay.
- 1:13:53And then we'll say publish this branch.
- 1:13:55Now if you go and take a look at your
- 1:13:57source code
- 1:14:00like just go ahead and reload.
- 1:14:06So this is still taking some time. Uh
- 1:14:08now we should have this new branch right
- 1:14:12it is right here for 4 4 seconds ago.
- 1:14:14I'll go ahead and say create a pull
- 1:14:16request. Now if you scroll to the bottom
- 1:14:19you'll be able to see how many lines of
- 1:14:22changes you have. You know like this is
- 1:14:24the amount of new additions and these
- 1:14:26are the deletions. And then you can
- 1:14:28scroll and see every single change that
- 1:14:30you have. Now instead of so instead of
- 1:14:32reviewing them manually, we'll just let
- 1:14:34AI to scan every single line and tell us
- 1:14:37what are the things that we can fix.
- 1:14:39I'll just say create the pull request.
- 1:14:42If you have set it up this correctly,
- 1:14:45right, you should be able to get a code
- 1:14:48review in a couple of minutes. All
- 1:14:50right, so initially this is what you're
- 1:14:51going to see and it's going to take
- 1:14:53couple of minutes. Once it is done, um
- 1:14:55you'll get the feedback from code
- 1:14:58rebbit. And once it is done, I'll just
- 1:15:00be right back. All right. So after 10
- 1:15:02minutes, the code review is ready. Now
- 1:15:05we can scroll to the bottom and see
- 1:15:07every single suggestions that we have.
- 1:15:09So since we didn't really implemented
- 1:15:11anything important in our code other
- 1:15:13than UI design, we don't really have
- 1:15:16that big of issues. But here you can
- 1:15:19tell we have a minor suggestion and then
- 1:15:23another one. Yeah, I think currently we
- 1:15:25only have two. And if you want to fix
- 1:15:27them, you can obviously copy the prompt
- 1:15:30and paste it to AI. And you can also
- 1:15:32like see the problem why this is a
- 1:15:35suggestion like what code rabbit thinks
- 1:15:38and how can you fix them. Right now just
- 1:15:41imagine you have a 10 different
- 1:15:43suggestions. you don't really want to
- 1:15:45copy every single one of them one by
- 1:15:47one. So you can scroll to the top and
- 1:15:50you can just get the prompt for all
- 1:15:52review comments for AI agents. Right? So
- 1:15:55I'm going to copy this and let's go back
- 1:15:57into VS Code
- 1:16:01and like right here I'll paste my
- 1:16:04prompt.
- 1:16:07So this will go ahead and fix those
- 1:16:09issues. And once it is done, we can add
- 1:16:13another commit and then you know send it
- 1:16:16as a pull request once again. So
- 1:16:19currently we are right here. So we
- 1:16:21created our commit, we sent the pull
- 1:16:23request, right? And before we say merge
- 1:16:26the pull request.
- 1:16:29Um we would like to run these fixes.
- 1:16:33So here you can tell within the next 1
- 1:16:35minute everything has been fixed. Let's
- 1:16:37go ahead and stage these and we're going
- 1:16:40to create a new commit. You don't really
- 1:16:42need to create a new pull request. So
- 1:16:45I'll just say sync the changes.
- 1:16:48If you scroll to the top now you're
- 1:16:50going to have that we'll have the two
- 1:16:52commits. Initially we had one. It just
- 1:16:55reloaded by itself. Now we can scroll to
- 1:16:58the bottom and just say you know merge
- 1:17:00this pull request. Now, code rabbit will
- 1:17:03try to give you another review because
- 1:17:05you just had a new commit, but we don't
- 1:17:08really need to wait for it because these
- 1:17:11were the suggestions that came from code
- 1:17:13rabbit.
- 1:17:16Okay. So, I'll go ahead and confirm the
- 1:17:18merge. Basically, we say yes, we are
- 1:17:20accepting this. Now, your changes will
- 1:17:22be on the master branch. Okay. I'll try
- 1:17:26to visualize it and show you every
- 1:17:28single step. creating the branch, adding
- 1:17:31the commit, sending the pull request,
- 1:17:33and merging it. Now, with this,
- 1:17:36everything is done. You can go back to
- 1:17:38your master branch. Just select this one
- 1:17:42and then press this button. Right, we're
- 1:17:44just going to sync this up. Oh, wait. We
- 1:17:48have a MV change. How come?
- 1:17:53Wait, what's the change here?
- 1:18:00I think we have the secret key. This is
- 1:18:03something that Codex added behind the
- 1:18:06scenes. It's not really that important
- 1:18:08for now. Just go ahead and press this
- 1:18:09button. You probably don't have this. I
- 1:18:13don't know. Uh just go ahead press this
- 1:18:14button and this is going to sync it up.
- 1:18:17Basically, it'll get the latest changes
- 1:18:19and update your codebase with it. All
- 1:18:22right. So, this is where we left. Now
- 1:18:24that we have most of the UI design
- 1:18:26ready, it is time to get started with
- 1:18:28the actual functionalities. So we should
- 1:18:30be able to create posts, you know, like
- 1:18:33them, comment, send messages, so on and
- 1:18:36so forth. For this, we're going to need
- 1:18:38a back end and basically a database. And
- 1:18:41for this, we can use Convex, which is
- 1:18:43completely free to get started with. You
- 1:18:46don't really need to pay anything. Here
- 1:18:47you can tell they have a really really
- 1:18:50generous free plan and I already have an
- 1:18:53account. If you don't go ahead and sign
- 1:18:56up then log in with your GitHub account
- 1:18:58and then you will go into VS code. Now
- 1:19:01you can ask AI to implement it for you.
- 1:19:04But what I'll be doing is just setting
- 1:19:06it up setting it up by myself so that
- 1:19:09you can see the process instead of just
- 1:19:11you know blindly vibe coding. Okay. So
- 1:19:15here I don't know what is happening with
- 1:19:17the terminal UI. Okay, now it's fixed.
- 1:19:20Now from here on out you almost always
- 1:19:23want to have two different terminals. In
- 1:19:26one of them you're going to run the expo
- 1:19:28application with MPX expo and with the
- 1:19:32other terminal you would like to run
- 1:19:35convex. Okay, which is our back end. So
- 1:19:38here go ahead and just type mpm install
- 1:19:41convex first. This is going to install
- 1:19:43the package and then we are going to run
- 1:19:46mpx convex def. So just wait for it.
- 1:19:54This will install the package.
- 1:20:00Okay. So this is taking a bit longer
- 1:20:02than it should. While this is
- 1:20:04installing, I have done something in the
- 1:20:06background which is basically generating
- 1:20:09a different logo. And because I didn't
- 1:20:12really like this one, so I went into GPT
- 1:20:15here. I'll show you the steps. So this
- 1:20:18is where we left, right? I I just said
- 1:20:21generate a grid of nine of icons for
- 1:20:23this app that I can choose from. And I
- 1:20:26didn't really like any of them. Let's
- 1:20:28say if I like this one, I would say
- 1:20:30upscale the option five. But clearly I
- 1:20:34didn't like any of them. So I just said
- 1:20:35give me a completely different style and
- 1:20:38vibe. again a grid of nine. From here, I
- 1:20:41like the option six. I just said upscale
- 1:20:43this and make it in the blue theme. This
- 1:20:46is what it gave me. Even though it's not
- 1:20:48the same thing, I still really like this
- 1:20:51one. And then I just said, you know,
- 1:20:52remove the background. So, this is one
- 1:20:55of the other processes that I just
- 1:20:56wanted to show you. If you want to get a
- 1:20:59different variation of something, just
- 1:21:01ask for a grid of nine instead of asking
- 1:21:04nine different times. So from here,
- 1:21:06let's say you like this one. You'll just
- 1:21:08say upscale this for me. [snorts] So
- 1:21:10with that in mind, you'd like to copy
- 1:21:11this image or the logo, right?
- 1:21:15I'll just go into my assets and I'll
- 1:21:18just paste it. Actually, under the
- 1:21:20images, I'll say Ctrl +V and I'll be
- 1:21:23using it in a second. So for now, we
- 1:21:25have the convex installed. Let's clear
- 1:21:27this up. You'll say MPX convex
- 1:21:32def. So initially it might ask you to
- 1:21:36log in if you're running it for the
- 1:21:37first time. But I have already logged in
- 1:21:40right and um this is going to be the
- 1:21:43next question that you're going to get
- 1:21:44if you are logged in. Um we would like
- 1:21:47to create a new project. So I'll just
- 1:21:49select this one. Let's give it a name.
- 1:21:51I'll just say codex gram. It is taking
- 1:21:54from the folder name. So I'll just press
- 1:21:56tab and I'll press enter. If you wanted
- 1:21:59to you can type something else to update
- 1:22:01this name. Uh, but I'll leave it as it
- 1:22:03is. And we would like to deploy it on
- 1:22:05the cloud. Just go ahead and press
- 1:22:07enter.
- 1:22:09And we would like to set up convex AI
- 1:22:12files such as agents.md
- 1:22:14and some skills. Basically, this will
- 1:22:17teach AI how to work with convex in the
- 1:22:20best way possible.
- 1:22:24Okay. So this will create couple of
- 1:22:26different files and actually most of
- 1:22:29them will be under a folder called
- 1:22:31convex. Okay. So our entire backend code
- 1:22:35will be under right here right and like
- 1:22:38we'll have schema we'll have different
- 1:22:41mutations queries and if you don't know
- 1:22:44what that means is basically you have
- 1:22:46queries to fetch data like getting the
- 1:22:49posts and to create something you would
- 1:22:52have mutations like creating a comment
- 1:22:55creating a post or deleting a post
- 1:22:59deleting a comment updating things like
- 1:23:01that. So for this AI will create some
- 1:23:05mutations for us. Okay, I'm only
- 1:23:08explaining this if you're just a vibe
- 1:23:10coder and watching it up up until now.
- 1:23:13Um I think these
- 1:23:16these would be helpful just to know.
- 1:23:19Okay. So with this from here on out
- 1:23:21always have this terminal open and you
- 1:23:23can rename it just by pressing enter or
- 1:23:26press right say rename. I'll just say
- 1:23:29convex. And you can rename this one as
- 1:23:31well. You can say expo mobile, whatever
- 1:23:33you'd like to call.
- 1:23:36Okay. Now, with this, what I'll be doing
- 1:23:38is going into
- 1:23:40a new chat. First off, I'll just say use
- 1:23:43the logo that I have right here.
- 1:23:47So, I'm going to call this as logo.png.
- 1:23:52And I'll just say use this logo.png png
- 1:23:56as my brand logo in this app. We can say
- 1:24:00something like replace the current one
- 1:24:03with this one.
- 1:24:06All right. So, within 50 seconds, as you
- 1:24:09can tell, icons have been updated within
- 1:24:11this application. Now, here I'm going to
- 1:24:14maximize the screen and here is my
- 1:24:16prompt. You can pause the video and read
- 1:24:19it, but I basically say now that we have
- 1:24:21authentication and most of the UI design
- 1:24:24ready, just go ahead and read my plan.md
- 1:24:27so that you know what kind of features
- 1:24:29we want to build. And then I say just go
- 1:24:32ahead and start implementing the post
- 1:24:34creation, likes, comments, and follows.
- 1:24:38And then I say, let me know if I need to
- 1:24:40set up anything from the clerk or convex
- 1:24:43dashboard. Okay, so this is what you
- 1:24:46wouldd like to do at the end. Just say,
- 1:24:49you know, like let me know if there is
- 1:24:50anything that I need to do manually from
- 1:24:53any of these dashboards.
- 1:24:56And I'll run this. Let's see what we're
- 1:24:58going to get back. So, while it is
- 1:25:01building, I just got asked a question.
- 1:25:03It says, is the Convex integration
- 1:25:06enabled in your clerk dashboard? If not,
- 1:25:08it says go under the integrations and
- 1:25:11find the convex. So here I'll go ahead
- 1:25:14and find my project. Go under the
- 1:25:17configure and then you can just search
- 1:25:19for integration. So go ahead and press
- 1:25:22this. It is under the developers. And
- 1:25:24then right here go ahead and turn this
- 1:25:26on for convex.
- 1:25:29And then go back into VS code here.
- 1:25:31Let's say it is enabled. All right. So
- 1:25:34after 20 minutes, looks like everything
- 1:25:36has been implemented just like as we
- 1:25:39requested. And it says you don't really
- 1:25:41need to add anything, you know, like
- 1:25:44nothing you need to do from the
- 1:25:45dashboard. And here you can tell if you
- 1:25:48remember, we said that user has to first
- 1:25:52set up a username to be able to use this
- 1:25:54application. So here it says first off,
- 1:25:57go ahead and add a username. Here I'll
- 1:25:59just try to put my name
- 1:26:02and let's put the last name. I'll say
- 1:26:04continue. It's going to create the
- 1:26:06profile. For now, we don't really have
- 1:26:08any data. That's why everything is
- 1:26:11empty, right? The UI is
- 1:26:14UI is filled in with empty state. Okay,
- 1:26:17let's go ahead and create a post here.
- 1:26:19I'll just try to select something from
- 1:26:21my gallery. Um, let's go ahead and
- 1:26:24select this one. And here I'll say
- 1:26:26something like this weekend trip.
- 1:26:33And let's put a three dots. I was going
- 1:26:35to say and I'll say publish.
- 1:26:39So here we had the indicator and looks
- 1:26:42like this has been uploaded. We can
- 1:26:43double check by going into our Convex
- 1:26:46dashboard. I'll try to log in now. Once
- 1:26:49you log in, go ahead and select the
- 1:26:51current application and make sure you're
- 1:26:53under the development. From here, I'll
- 1:26:55just say files. Here you can tell we
- 1:26:57have a file that has just been uploaded.
- 1:27:01Now, usually you can hover over this and
- 1:27:03see the end result.
- 1:27:05I'll try to install it. Let's see.
- 1:27:10Okay, here you can tell that's the image
- 1:27:12that's been uploaded to Convex. Now,
- 1:27:15with this I think we can also take a
- 1:27:17look at the data. Here you can tell we
- 1:27:20have bunch of different tables like
- 1:27:22uploads, profiles.
- 1:27:25This is the only user profile that we
- 1:27:27have. Now, you might be wondering how do
- 1:27:29we get this user right here. Right? And
- 1:27:32I think that's because we have
- 1:27:34configured the convex integration in
- 1:27:37clerk. So it is like set it up already
- 1:27:40automatically. Now let's try to test out
- 1:27:43some more features I'm going to like.
- 1:27:46Here we go. I'll try to add a comment.
- 1:27:49Maybe we have a UI glitch here that we
- 1:27:52can fix. I'll just say test comment. And
- 1:27:56actually at the same time I'll just take
- 1:27:58a screenshot.
- 1:28:01go into codeex
- 1:28:05and I'll say you fix the comment
- 1:28:08section.
- 1:28:10It should be
- 1:28:13a bit more spaced out from the bottom
- 1:28:20and then I'll try to post. Here we go.
- 1:28:23It is right here. Now UI is not really
- 1:28:26that great. Um, I'll try to kind of like
- 1:28:28format it. And what I'll be doing is
- 1:28:30actually taking a screenshot and I'll go
- 1:28:33under GPT right here. I'll paste in and
- 1:28:38then I'll say something like
- 1:28:41this is the current UI that I have for
- 1:28:43the post detail screen. I want you to
- 1:28:46give me three different variations of
- 1:28:49this UI. Um try to keep it simple and
- 1:28:53make sure it is matching with the blue
- 1:28:55color palette that we have already. Um
- 1:28:58yeah just give me three different
- 1:29:00variations.
- 1:29:06So this will give me that three
- 1:29:08variations and from from those three
- 1:29:11images I'll try to choose one and we'll
- 1:29:14ask Codex to implement it for us.
- 1:29:18Okay. So in the background it's going to
- 1:29:19go ahead and implement it. And let's
- 1:29:22see. Okay, that has been fixed as you
- 1:29:25can tell. In 30 seconds it is done. Now
- 1:29:28I can tell something like delete. If you
- 1:29:32say cancel, nothing happens obviously.
- 1:29:34But if you delete comment should be
- 1:29:36gone. Here you can tell everything
- 1:29:37updates automatically. Now one thing to
- 1:29:40mention about convex is that everything
- 1:29:43is real time out of the box. So here
- 1:29:46just imagine you write a comment and you
- 1:29:48have another simulator running right
- 1:29:50here. If they are looking right here on
- 1:29:53this post as soon as you post like they
- 1:29:56will see this comment on that other
- 1:29:58simulator in real time. They don't need
- 1:30:00to reload the application. Now one of
- 1:30:03the other things that I'll ask Codex is
- 1:30:06to add some seated data. If you don't
- 1:30:09know what that means, it's basically
- 1:30:10some hard-coded test data so that we can
- 1:30:13see how the rest of the application look
- 1:30:16like. So currently under the explorer,
- 1:30:18we only have one post. But how would it
- 1:30:21look like if we had like 20 different
- 1:30:24posts, right? So I'm going to say add
- 1:30:26some seated data. That would be helpful
- 1:30:30for me to see
- 1:30:32the rest of the app with a lot of data.
- 1:30:36So probably this part is not really that
- 1:30:39important but I'll just add it anyways
- 1:30:41and let's run it. All right. So it took
- 1:30:44around 10 minutes and here we go. We
- 1:30:46have now 24 fictional profiles. This
- 1:30:49amount of photos, you know, likes and
- 1:30:52comments. If you visit the explorer,
- 1:30:53you'll be able to see all these posts,
- 1:30:56different accounts. And if you press
- 1:30:58them, you're going to get the details
- 1:31:00with likes, comments, and you can also
- 1:31:03like or comment.
- 1:31:06So we have the home screen. This is how
- 1:31:07that look like. We have the profile.
- 1:31:10We're following
- 1:31:12this amount of accounts and sorry all
- 1:31:16the accounts are actually following us
- 1:31:18because this is the amount of profiles
- 1:31:20that have been created and we are
- 1:31:22following 12 of them. So I think that's
- 1:31:25a really nice start and we can go ahead
- 1:31:27and try to visit some accounts and
- 1:31:30actually try to follow them. Notice how,
- 1:31:33you know, UI is not the best, but we can
- 1:31:35always follow up and put CEX into a
- 1:31:40loop, which is something that I'll get
- 1:31:41into in the incoming sections, but for
- 1:31:44now, I think we can follow and unfollow.
- 1:31:49Um, here I'll just say unfollow. I don't
- 1:31:51know why, but it takes some time
- 1:31:55because I think it is running on the
- 1:31:57background. This is something that we
- 1:31:58can make a bit faster as well.
- 1:32:02Okay. So, with this I think with this I
- 1:32:04think I'll just take a quick break and
- 1:32:06then I'll just be right back.
- 1:32:09All right. So now let's go ahead and
- 1:32:11implement the chat messaging. Currently
- 1:32:14everything that you see on the screen is
- 1:32:16completely fake. Like this data is
- 1:32:18hardcoded. So here I'll just say
- 1:32:20implement the chat messaging and let's
- 1:32:22go ahead and reference this screen. So
- 1:32:26I'm going to say chat screen
- 1:32:29ref.png.
- 1:32:30Now when it comes to the this screen, it
- 1:32:34doesn't really look that good. So for
- 1:32:35this, I'll also provide some references.
- 1:32:38Now to generate a different reference
- 1:32:40for this screen, I took a screenshot. I
- 1:32:43went into GPT and then I just said give
- 1:32:46me a grid of three for this UI and then
- 1:32:49I just said make sure that it is
- 1:32:50matching with the rest of the design
- 1:32:52system. So it gave me three different
- 1:32:55variations. This is the one that I
- 1:32:57actually like. So here I just said, you
- 1:32:59know, upscale the variegation third.
- 1:33:03And here we go. We have it. Now I'm
- 1:33:05going to copy this image. Let's go ahead
- 1:33:08and paste it right here under the
- 1:33:10design. [sighs]
- 1:33:11I'm going to say something like messages
- 1:33:14tab reference.
- 1:33:19And let's try to shrink the left hand
- 1:33:21side. And here I'll also add the
- 1:33:25messages tab reference. And then let's
- 1:33:29say put yourself into a loop. So you can
- 1:33:34pause the video and read my prompt. But
- 1:33:37this is something that we have done
- 1:33:38multiple times at this point. I'll go
- 1:33:40ahead and run this and I'll just be
- 1:33:42right back once this is done.
- 1:33:45All right. So in my case, this took
- 1:33:47around 17 minutes. It has actually built
- 1:33:50it pretty quickly, but then it takes
- 1:33:51some time to test out every single thing
- 1:33:54just to make sure that this feature is
- 1:33:57working as expected. Now, what you see
- 1:33:59here is still fake data. And I asked
- 1:34:02because when I checked the database, let
- 1:34:05me actually display it. I didn't really
- 1:34:07see any messages and I'm like, what is
- 1:34:09going on? Right?
- 1:34:11So, I just went into VS Code. I said
- 1:34:13when we send a message does it get saved
- 1:34:16to the database or all of this data are
- 1:34:19still hardcoded and it says both of them
- 1:34:22exists basically since they are like
- 1:34:25demo accounts. What you see here is fake
- 1:34:28data but it says if you want to actually
- 1:34:30test this out go ahead and sign up with
- 1:34:33a different account and everything
- 1:34:35should be working out as expected which
- 1:34:37is something that I'm going to test out
- 1:34:39a bit later in the video. But for now,
- 1:34:41there is one thing that I have done off
- 1:34:43camera that I'd like to show you pretty
- 1:34:45quickly.
- 1:34:47Um, so first off, let me show you the
- 1:34:50post detail screen. This is currently
- 1:34:52what we have. And I didn't really like
- 1:34:55this that much. So I went into GPT.
- 1:35:00Let me show you that exact part. So here
- 1:35:03I took this screenshot and I said this
- 1:35:05is the current UI, which I don't really
- 1:35:07like. So I said give me three different
- 1:35:09variations and it almost gave me the
- 1:35:11exact same thing. So what I have done is
- 1:35:14attaching the design system and I said
- 1:35:16give me those three different variations
- 1:35:19depending on our UI sorry our design
- 1:35:22system. And from here I try to upscale
- 1:35:26the second variation which is this one.
- 1:35:30Like this is the one that I liked most.
- 1:35:32So here at the very end you'll see that
- 1:35:34I said upscale this second version. So
- 1:35:38I'm going to copy it. Go into VS code
- 1:35:40under the design.
- 1:35:43Paste this in. And let's call this as
- 1:35:47post detail
- 1:35:49ref.
- 1:35:53And then I'll put my simulator right on
- 1:35:56the side. And I'll just say, you know,
- 1:35:58go ahead update the post screen just
- 1:36:01like this one. And one thing I realized
- 1:36:03is that I don't really want to copy
- 1:36:05everything exactly as is because I think
- 1:36:08this header part is looking better than
- 1:36:10what what we have right here. So what
- 1:36:12I'd like to do is actually copy this um
- 1:36:16bottom part and paste it right here.
- 1:36:19I'll say only update this part. Right.
- 1:36:22So here I'll take the screenshot.
- 1:36:28So here's my prompt. You can pause the
- 1:36:30video and read it. I tried to basically
- 1:36:33explain what I just said. And I'm going
- 1:36:35to run this. Once this is done, I'll
- 1:36:37just be right back. All right. So within
- 1:36:39the next 10 minutes, it was ready here.
- 1:36:41You can tell the actions, the comments,
- 1:36:43almost everything is identical to what
- 1:36:46we have right here. I'm pretty happy
- 1:36:48with how that ended up. So I'll just not
- 1:36:51follow up with any other improvements
- 1:36:54when it comes to this screen if you
- 1:36:56wanted to. You can of course do it
- 1:36:57anytime you want. Now we can add more
- 1:37:00features and I think I'm going to get
- 1:37:03into that in the next sections. But for
- 1:37:06now what I'd like to do is running this
- 1:37:09application in my actual phone. Right?
- 1:37:11So instead of running it only in
- 1:37:13simulator, I'll go ahead and install
- 1:37:15this development build in my actual
- 1:37:18phone.
- 1:37:19>> [snorts]
- 1:37:19>> Now, there are two different ways of
- 1:37:21doing it. The first one is connecting
- 1:37:24your phone with a USB cable to your Mac,
- 1:37:27right? And then you would run this
- 1:37:29command. Now, I'll just open up my
- 1:37:32terminal and let's go under the Expo
- 1:37:34terminal. Let's clear this up. Let me
- 1:37:37maximize the screen. You would say MPX
- 1:37:40expo run iOS just like previously. This
- 1:37:43is what we have done. But at the end,
- 1:37:45you would say d- device. Now, if you
- 1:37:49have your phone connected with USB
- 1:37:51cable, you're going to see it right here
- 1:37:54in one of the options. So, mine is not
- 1:37:57connected, but since I have done it in
- 1:37:59the past, it shows me this. And the
- 1:38:02other way of running this is that you
- 1:38:05would use Expo EAS. If you don't know
- 1:38:08what that is, let's go ahead and double
- 1:38:10check. So, I'll just say Expo EAS.
- 1:38:14So, Expo application services. This is a
- 1:38:17service that allows you to run a
- 1:38:20development build in your phone. This
- 1:38:22allows you to, you know, publish your
- 1:38:25app to the App Store, Play Store,
- 1:38:27literally every single service that you
- 1:38:29can ever imagine. Now, you don't really
- 1:38:32need to learn everything from absolute
- 1:38:34scratch. Just go ahead and explain it to
- 1:38:37Codex or Cloud for this current use
- 1:38:40case, and it's going to give you all the
- 1:38:42steps. Now, of course, I would say if
- 1:38:44you're interested or if you are serious
- 1:38:46about mobile development, just pause the
- 1:38:49video and go ahead read this entire
- 1:38:51page, take a look at the documentation,
- 1:38:54and then come back. But if you're just
- 1:38:56here to test things out, then you can
- 1:38:58just go into Codex or cloud and ask for
- 1:39:02the,
- 1:39:03you know, the instructions. And by the
- 1:39:06way, what you see here on the screen is
- 1:39:08for Apple developer program. Basically,
- 1:39:11this is something that you need to apply
- 1:39:13if you want to publish your app to the
- 1:39:15app store. Apple wants you to pay $99
- 1:39:18per year for this program. And you know,
- 1:39:21if you live outside of US with, you
- 1:39:24know, in a country with lower local
- 1:39:27purchase, then this price will be
- 1:39:29discounted for you. So, I think you'll
- 1:39:31get something in between 20 to $25
- 1:39:36[snorts] or really, you know, it's going
- 1:39:38to depend on the country that you live
- 1:39:40in. So, I'm from Turkey. When I applied,
- 1:39:42I paid something between between this
- 1:39:45amount, but you know, if you're in a
- 1:39:47different country, it could be even
- 1:39:49lower than this or a bit higher than
- 1:39:52this. So, I don't know, maybe it could
- 1:39:53be $50 or maybe even like $10. I don't
- 1:39:57know. Uh but this is something to keep
- 1:39:59in mind if you actually want to publish
- 1:40:03your app. This is something that you
- 1:40:05have to apply and unfortunately this is
- 1:40:07not something that I came up with. Uh
- 1:40:09this is something that Apple wants you
- 1:40:12to apply and pay for. Okay, just keep
- 1:40:15this in mind. This is something that I
- 1:40:17wanted to mention. You can always double
- 1:40:19check just before publishing your app.
- 1:40:22Okay, so with that said, now I'll go
- 1:40:23into Codex. I'm going to kill this
- 1:40:25terminal by the way. Here I'll say I'd
- 1:40:28like to get a development build and
- 1:40:30install it in my phone and I'll say I
- 1:40:33want to use EAS right expo application
- 1:40:36services. So I'll say what I need to do
- 1:40:39give me everything step by step.
- 1:40:41Basically you need to run a command in
- 1:40:43your terminal. I already know what that
- 1:40:45is but here I'll just act as if I don't
- 1:40:47know it and I'll try to show you what
- 1:40:50what you should do in these type of
- 1:40:52scenarios. Okay. So here you can tell
- 1:40:55this is my prompt. You can read it if
- 1:40:57you're interested. I'm going to run this
- 1:40:59and we're going to get a prompt or a
- 1:41:02command that we can run in our terminal.
- 1:41:05And this will create also a file called
- 1:41:08EAS.json.
- 1:41:10Currently, we don't really have it, but
- 1:41:12we're going to get that. And it is like
- 1:41:14the configuration file that EAS need.
- 1:41:19Okay. So, I'll just wait for this to be
- 1:41:22completed. And once again, remember
- 1:41:24there are two different ways that we
- 1:41:25talked about. The first one is running
- 1:41:28this command with the device flag and
- 1:41:31plug in your iOS to your Mac, right? And
- 1:41:36I mean iPhone, not iOS. But you got the
- 1:41:38point. That was the first way. The
- 1:41:40second way is using EAS. This is what
- 1:41:42I'll be using. And in this way, you'll
- 1:41:44be able to see the entire process. All
- 1:41:47right. So, here we go. We have all the
- 1:41:49instructions. This is the things that
- 1:41:51you would run for the very first time.
- 1:41:53But since I have already built different
- 1:41:55mobile applications, I already have the
- 1:41:58device connections and you know I
- 1:42:00already logged into EAS initialized it
- 1:42:03etc. So what I would do is scrolling to
- 1:42:06the bottom and then I just said give me
- 1:42:08the command to get a development build
- 1:42:11on the cloud. So I'm going to run this.
- 1:42:13But once again, if you're doing it for
- 1:42:15the very first time, you need to log in
- 1:42:17in it and create that connection to your
- 1:42:20device. So everything that it gives you
- 1:42:23here will be correct. And you can always
- 1:42:25follow up and say, you know, like I am a
- 1:42:28complete beginner. I have never done
- 1:42:30this before. So tell me all the steps
- 1:42:32that I need to do. Okay?
- 1:42:36So this is just something to keep in
- 1:42:37mind. In my case, I want to get it for
- 1:42:40iOS. But if you want to get it for
- 1:42:42Android, leave everything as it is, but
- 1:42:44update this part as Android.
- 1:42:47Now I'll go into my terminal. I'll paste
- 1:42:50this in.
- 1:42:52And it'll ask me a couple of different
- 1:42:53questions. Um, looks like this has
- 1:42:56failed. Says invalid version. I'll just
- 1:43:00copy this and paste it right here.
- 1:43:04So after I just paste this to CEX, it
- 1:43:07has given me the solution. Basically, it
- 1:43:09has fixed the cache and then it says
- 1:43:11rerun this. This is exactly what I have
- 1:43:14done. I basically rerun this command.
- 1:43:17Now, I'm going to get bunch of different
- 1:43:18questions. You're going to get the same
- 1:43:21questions. Just go ahead and press enter
- 1:43:23a couple of different times until it
- 1:43:25starts to build.
- 1:43:28All right. So, as you can tell now, it
- 1:43:29is uploading to the EAS. You can always
- 1:43:33go into your actual dashboard. Let's
- 1:43:35actually see it. I'll visit expo.dev.
- 1:43:38dev
- 1:43:40and here I have already logged into my
- 1:43:43account here. You can tell these are the
- 1:43:45previous projects that I created. Now we
- 1:43:47just got the latest one just now and if
- 1:43:51you press this you can see that we have
- 1:43:54a development build that is getting
- 1:43:57created right we are getting this build.
- 1:44:00So once it is done we should be able to
- 1:44:02install it to our actual phone. So in my
- 1:44:05case it has failed which is completely
- 1:44:07normal and here is the fix. You would go
- 1:44:10right here and let's find the step that
- 1:44:13it has failed for the first time. Like
- 1:44:16it was going successfully right here. It
- 1:44:18has failed. So I'll just press this
- 1:44:19button which will get me the logs which
- 1:44:22is basically the details. If you don't
- 1:44:24know what that means, I'm going to paste
- 1:44:26this in and I'll say like you don't need
- 1:44:29to even say anything, but I'll just say
- 1:44:31my dev build failed and
- 1:44:36here are the logs. Hopefully, this
- 1:44:40should give us a fix. Once it is fixed,
- 1:44:42we are going to rerun this. All right,
- 1:44:45so here we can tell that this has been
- 1:44:46fixed. It says go ahead and rerun this
- 1:44:49command. But I also realized that we
- 1:44:51have a lot of different changes. Now, as
- 1:44:53far as I know that we have to commit
- 1:44:56these to get a EAS build, but I'll just
- 1:44:59double check. I'll say I have
- 1:45:02uncommitted changes. Do I have to commit
- 1:45:07them beforehand?
- 1:45:11Like I believe we have to commit them
- 1:45:13because EAS would get a snapshot. Um,
- 1:45:16but looks like it says no. Okay, so
- 1:45:20that's fine. Maybe I'm just wrong. I'm
- 1:45:23going I'm going to go ahead and clear
- 1:45:25this up. I'll paste this and again I'll
- 1:45:27press enter a couple of different times.
- 1:45:29We're going to get a new development
- 1:45:32build.
- 1:45:35Like you should be able to see the new
- 1:45:37build right here. So here you can tell
- 1:45:39we have the build again. It is getting
- 1:45:42built. Let's just wait if it is going to
- 1:45:44fail or not. I'll just be right back.
- 1:45:48All right. So after a couple of minutes,
- 1:45:50the process will be ended successfully
- 1:45:52and you're going to get a QR code. Now I
- 1:45:55just scanned this in my phone and this
- 1:45:57is what I got. Basically it has
- 1:45:59installed the application and if you
- 1:46:01press that you're going to get this UI.
- 1:46:03So here you can tell we have the logo,
- 1:46:05the name and it is trying to find the
- 1:46:08development server. Now let's say you
- 1:46:10are confused and you don't know how to
- 1:46:12run the app because it doesn't run it by
- 1:46:15default. You can just say now in my
- 1:46:17terminal I have a QR code. How do I run
- 1:46:21this? Like what do I do? So here are the
- 1:46:24steps that you will do. First off scan
- 1:46:26the QR code. It's going to install the
- 1:46:28build and then under the settings
- 1:46:31privacy and security you need to have
- 1:46:34the developer mode if this is prompted.
- 1:46:36If not it's okay. Then you need to just
- 1:46:39go ahead and run this on your Mac. So
- 1:46:42basically scroll right here and run this
- 1:46:44command. Now even after running this
- 1:46:47command if you see the exact same end
- 1:46:49result then go ahead run the same
- 1:46:52command with the tunnel flag. So this is
- 1:46:56what I'll be doing.
- 1:46:59I will run this and then at the same
- 1:47:02time I'm just checking my phone.
- 1:47:07So I'll open up the application.
- 1:47:11So currently you don't see but I have my
- 1:47:13phone. is right here. I'll try to
- 1:47:16actually visit this app. Okay. So here
- 1:47:20again I have the same UI but this time I
- 1:47:24will fill this in with a value. So here
- 1:47:27you can tell it says it should start
- 1:47:28with HTTP and you can find it right
- 1:47:32here. So after the URL just copy this
- 1:47:34part okay up until the direct included.
- 1:47:39So copy this and then go into your phone
- 1:47:42then just paste it.
- 1:47:47So I just pasted it. As you can tell it
- 1:47:49is trying to build and let me open up my
- 1:47:52camera and actually show you that.
- 1:47:59Okay. So here you can tell I am in the
- 1:48:01loading screen. Currently it is loading
- 1:48:03and our application is live.
- 1:48:07So here you can tell that's the
- 1:48:09authentication screen. Like literally
- 1:48:12everything is right here. I'll go ahead
- 1:48:14and try to log in with my Google
- 1:48:16account. Here it says continue.
- 1:48:19And then let me just log in with one of
- 1:48:22my accounts.
- 1:48:30Okay. So here it says you need to put in
- 1:48:32a username.
- 1:48:35Let me just put something like my phone.
- 1:48:40I'll continue. And
- 1:48:43let's see what we're going to get. Okay,
- 1:48:46so our feed is empty because we don't
- 1:48:48really follow anyone. But if we go under
- 1:48:50the explore screen here, you can tell we
- 1:48:53have literally everything. So it is
- 1:48:55working just like as our simulator.
- 1:48:59I'll try to go ahead and send messages.
- 1:49:03But first, let me try to add these
- 1:49:06accounts.
- 1:49:08All right. So, here in my phone, I went
- 1:49:11under the explorer and right here, I
- 1:49:13search for this account, which is this
- 1:49:16one. Right. So, I'll try to follow him
- 1:49:18now. And as soon as I press the follow,
- 1:49:21notice how this updates automatically,
- 1:49:25right? So, everything is working in real
- 1:49:26time. I'll try to unfollow.
- 1:49:29Um, I can't press. I just pressed and
- 1:49:33notice how it's been updated. I'll try
- 1:49:35to press again and just watch here.
- 1:49:40It is updating in real time. Now let's
- 1:49:42go ahead and send a message. I'll go
- 1:49:45under the messages
- 1:49:47in my phone. Let me just send a message
- 1:49:50to this user. I'll say hey.
- 1:49:53And as you can tell in real time, we
- 1:49:56just got the message. And here I'll say
- 1:49:59like I'm texting again. I'll say how are
- 1:50:03you doing?
- 1:50:05Like as soon as I send
- 1:50:08it is right here and let's send a
- 1:50:10message from here as well. If I send it
- 1:50:14in real time so everything is working as
- 1:50:16expected.
- 1:50:19Now other than the messages everything
- 1:50:21else is also working in real time. So
- 1:50:23here notice how we have only one like
- 1:50:26from my phone. and I'll try to like it
- 1:50:28and as soon as I like notice how it is
- 1:50:30getting updated. I'll try to add a
- 1:50:32comment. So I'll just say hey as soon as
- 1:50:35I post it is right here. So that's the
- 1:50:38beauty of convex. All right. So with
- 1:50:40this I think I'm going to leave this
- 1:50:42lesson right here. Now we can improve
- 1:50:45the UI a lot and this is something that
- 1:50:47we can do in the incoming lessons and
- 1:50:50also we can add things like privacy
- 1:50:52policy, terms of services, a settings
- 1:50:55screen, so on and so forth. So these are
- 1:50:57the things that I'll leave for the
- 1:50:58incoming sections. But for now, let's
- 1:51:00just go ahead and commit our changes and
- 1:51:04basically end this lesson. Now, I think
- 1:51:07the beauty of this lesson or the key
- 1:51:09takeaway here is that you have learned
- 1:51:12how to get a development build and how
- 1:51:15to install it in your actual phone.
- 1:51:18Okay, so we'll go ahead and
- 1:51:21even like kill everything.
- 1:51:25I'm going to stage every single change
- 1:51:28and I'll get a commit message. Now, if I
- 1:51:31was building it as my real project, what
- 1:51:33I would do is again running a code
- 1:51:36review
- 1:51:38just like here in our workflow by
- 1:51:40creating a pull request. But in this
- 1:51:42case, I'll just go ahead and commit this
- 1:51:44on the master branch so that we don't
- 1:51:46really waste any time.
- 1:51:50So, I'll sync this up. And here you can
- 1:51:53tell I have a popup from the Code Rebbit
- 1:51:55extension, which is something that you
- 1:51:57can get for free in VS Code. Just go
- 1:52:00ahead and search for it which will be
- 1:52:02code rabbit.
- 1:52:05So you can install this and it will work
- 1:52:07out of the box. Okay. So with this
- 1:52:11hopefully Okay. So with this hopefully
- 1:52:13I'll see you in the next lesson. All
- 1:52:15right. So this is where we left off
- 1:52:17camera. I have done some small things
- 1:52:19and I'd like to walk you through it like
- 1:52:21what I have implemented in the
- 1:52:23background. So first off in the explore
- 1:52:25screen we didn't really had this UI
- 1:52:27previously. It was just the images only.
- 1:52:30Now what I said is basically I give the
- 1:52:33reference image and I said put yourself
- 1:52:35into that loop until you know we have
- 1:52:38the exact same end result. And we have
- 1:52:40used this loop multiple times. So I'm
- 1:52:42not going to explain what is going on
- 1:52:43here. So it took around 13 minutes and
- 1:52:46it was ready. This was oneshotted
- 1:52:49without any issues. Now there are a
- 1:52:51couple of different things that we need
- 1:52:52to update such as the icon. it should
- 1:52:55match with the, you know, the updated
- 1:52:57icon that we have right here. And also,
- 1:52:59when you press this, the icon changes.
- 1:53:02This is something that we can fix a bit
- 1:53:04later in the video.
- 1:53:06Okay. So, other than this, I said do the
- 1:53:08exact same thing for the home screen,
- 1:53:11but do not change the icon here. You can
- 1:53:13read my prompt. And I also said
- 1:53:16implement the stories feature. And
- 1:53:18actually it is working like I have
- 1:53:20already test this out and I have posted
- 1:53:22something on my story and let's actually
- 1:53:25test it once again. Here you can press
- 1:53:27the button and select something from
- 1:53:29your library or you can choose it from
- 1:53:32sorry you can take it from your camera.
- 1:53:34So here I'll go ahead and maybe post
- 1:53:37this one.
- 1:53:39Now one thing I'd like to say before I
- 1:53:41publish this in the very first version
- 1:53:44we were able to write a caption in this
- 1:53:47story. So I said go ahead and delete
- 1:53:49that feature from the stories. And I
- 1:53:52also said you know allow us to take the
- 1:53:56photo from camera not only from library
- 1:53:59and then I think I said in the post
- 1:54:01creation keep the caption but also add
- 1:54:04the camera option. Okay. So I'll go
- 1:54:06ahead and publish this. This will take
- 1:54:09some time but here we go. If you press
- 1:54:12here now we have two different stories
- 1:54:15just like in Instagram. You can go back
- 1:54:17forward and if you press again if there
- 1:54:20there are more stories it's going to go
- 1:54:22to the next one. Okay. So that was the
- 1:54:25very first thing that I have done and I
- 1:54:27think I run one more thing which is the
- 1:54:30profile screen. So again I just said you
- 1:54:32know put yourself into that loop and
- 1:54:35build the profile screen. Now here
- 1:54:38notice I didn't say put yourself into
- 1:54:41that loop and and the reason for that is
- 1:54:44like every single time I don't want to
- 1:54:47explain this entire thing. Let me show
- 1:54:49you. So every single time I don't really
- 1:54:52want to say put yourself into a loop
- 1:54:54where you take a screenshot from
- 1:54:56simulator and compare it to the
- 1:54:58reference image and keep building until
- 1:54:59it's identical. So like you need to
- 1:55:02create some kind of reusable component
- 1:55:05or a skill in this case and I'll show
- 1:55:08you how I have generated it. So you
- 1:55:11don't really need to type this every
- 1:55:12single time. Okay. Now for this I'll
- 1:55:15just go into
- 1:55:17my like how do we call it the file
- 1:55:20explorer and under the cloud we have
- 1:55:23skills right under the agents we also
- 1:55:25have skills. Now the difference between
- 1:55:27them this one is only for cloud but this
- 1:55:30is for literally any other thing like
- 1:55:33codex cursor you name it for everything
- 1:55:36but this is for only cloud now I have
- 1:55:38added it in both of them just in case if
- 1:55:40you're using cloud or codex uh but yeah
- 1:55:43basically under the agents we have
- 1:55:46skills if you scroll to the bottom I
- 1:55:49created this file
- 1:55:51sorry folder and then the file called
- 1:55:53skill.md
- 1:55:56And let me show you the file content. So
- 1:55:59this is something that I have generated
- 1:56:01with codeex. Basically I said every
- 1:56:04single time I don't really want to type
- 1:56:06this, right? So I said create me a skill
- 1:56:09and put it under the agents folder as
- 1:56:12well as the cloud folder. So this is
- 1:56:14literally what I have said like I went
- 1:56:16here and then I said I don't want to
- 1:56:19type this every single time. Can you
- 1:56:21please create me a skill? And this is
- 1:56:24exactly what is happening in the
- 1:56:26background. So you're going to take this
- 1:56:29entire file and put it in your codebase
- 1:56:31if you really wanted to or I would say
- 1:56:34just take this as a challenge and go
- 1:56:36ahead and ask for Codex to generate the
- 1:56:39same thing for you.
- 1:56:42Okay. Um, so once you have this, you can
- 1:56:46create a new chat and just say something
- 1:56:48like, you know, make sure profile screen
- 1:56:50looks like this image and just send the
- 1:56:54prompt. You don't need to say, you know,
- 1:56:56put yourself into that loop because
- 1:56:58since this is a skill, it'll be already
- 1:57:02attached to the, you know, at the
- 1:57:04beginning of the conversation. Let me
- 1:57:06try to kind of like visualize it. So,
- 1:57:09let's say this is your first chat. You
- 1:57:11say go ahead and build me a profile
- 1:57:13screen and then it says okay I'll build
- 1:57:15it and then you say something else and
- 1:57:17and then it'll do something else right
- 1:57:19now here at the beginning of the chat
- 1:57:22the session that skill will be loaded
- 1:57:24automatically so that's the beauty of
- 1:57:26creating a skill and here I just left a
- 1:57:29comment kind of like how can we make
- 1:57:32this loop reusable well you would create
- 1:57:34a skill explaining everything and the
- 1:57:37beauty of this is that you don't really
- 1:57:39need to type everything by and you will
- 1:57:41just explain it to Codex or Claude or
- 1:57:43whatever and then you'll just say create
- 1:57:45me this skill. Okay, so I hope that
- 1:57:48helps. Now with this I have the profile
- 1:57:50screen. It is also looking pretty
- 1:57:53similar to the end result.
- 1:57:56Now here I said go ahead and delete the
- 1:57:58search icon as you can tell and I also
- 1:58:01said replace this with the settings icon
- 1:58:04and we are going to build a settings
- 1:58:06screen right here. Now here we can edit
- 1:58:09our profile, share the profile and sign
- 1:58:13out. Now I think I'll just say delete
- 1:58:16the edit profile button from here. Also
- 1:58:19the share profile, we don't really need
- 1:58:20them, but what we need is delete account
- 1:58:24and sign up buttons. Now you might be
- 1:58:26asking why do we need the delete account
- 1:58:28button? Well, it is mandatory and if you
- 1:58:31don't have it, Apple will reject your
- 1:58:33application because you have
- 1:58:35authentication. You're storing user
- 1:58:36data. When this user wants to delete
- 1:58:39their account, you need to give them the
- 1:58:42access that permission. So here, I'll go
- 1:58:45ahead and type my prompt. I'll explain
- 1:58:47everything and then I'll just be right
- 1:58:49back. Now, actually, instead of going
- 1:58:50into Codex and putting a prompt blindly,
- 1:58:53what I have done is something even
- 1:58:56better. So I went into this chat that we
- 1:58:58already had with a GPT that is about
- 1:59:01design. So I said I want you to give me
- 1:59:04a grid of three for setting screen. You
- 1:59:07can read my prompt but basically I say
- 1:59:09give me things like we have privacy
- 1:59:12policy link, terms of services, delete
- 1:59:15account, sign out and some of the other
- 1:59:18things that you would need in a social
- 1:59:20media application. Okay. So if you're
- 1:59:23wondering why do we need privacy policy
- 1:59:26and terms of services? Well once again
- 1:59:28this is something that you must have. If
- 1:59:31you don't link them then your
- 1:59:33application will be rejected. Also when
- 1:59:36you publish your app to the app store
- 1:59:38Apple will ask you to provide these
- 1:59:40links. So basically you need to you need
- 1:59:42to build a privacy policy terms of
- 1:59:45service and deploy them on a live URL.
- 1:59:48I'll try to show you how to generate
- 1:59:50them and publish them on the internet so
- 1:59:52that you can actually use those links.
- 1:59:56Okay. So between these three options, I
- 1:59:59like the very first one. So I just had
- 2:00:01upscale the variation one. This is what
- 2:00:04I got. I'll go ahead and copy
- 2:00:07and paste it under the design. You
- 2:00:09already know what I'm going to do next.
- 2:00:12So I'll just say go ahead and build the
- 2:00:14settings screen.
- 2:00:19Let's actually say settings screen
- 2:00:21reference just to be consistent with the
- 2:00:24rest of the names
- 2:00:26here. I'll just say settings screen ref.
- 2:00:31And let's say build me this exact UI.
- 2:00:37Yeah, I think for now I'll just say
- 2:00:39build me this exact UI. I'm going to
- 2:00:41send my prompt and I'll just be right
- 2:00:43back once this is done. So after around
- 2:00:464 minutes, this is what I got. And here
- 2:00:49I just said go ahead and delete this
- 2:00:51header part. We don't really need it.
- 2:00:53Now this should be done in couple of
- 2:00:55seconds. And I think overall I'm happy
- 2:00:58with the end result. Like you can always
- 2:01:01improve the UI, but that's not the goal
- 2:01:04of this tutorial as you already know.
- 2:01:06And one of the other things that it kind
- 2:01:08of failed like we don't have native tabs
- 2:01:11anymore. So I think for this we need to
- 2:01:13just simply tell
- 2:01:16also bring back the native tabs. Let's
- 2:01:21say remember we always
- 2:01:25want to use native tabs.
- 2:01:28Now while this is building I just want
- 2:01:30to mention that currently we are using
- 2:01:32AI in the very bad way. Like this is not
- 2:01:35this is not optimal. It shouldn't really
- 2:01:37go from native tabs to the JavaScript
- 2:01:39tabs. For this, I should have already
- 2:01:43set up a file called cloud.md
- 2:01:46or agents.md. So here you can tell we
- 2:01:49already have these files. Now let's talk
- 2:01:52about these files pretty quickly. In
- 2:01:55simple terms, they are just a readme
- 2:01:57file for AI agents. So here we have
- 2:02:00readme.md. This is for humans, right?
- 2:02:03This is for developers. But these are
- 2:02:06readme files for AI agents. There's a
- 2:02:09difference between them which is
- 2:02:10something that I'll get into in a
- 2:02:12second. But first, let's just read what
- 2:02:15they are in the first place. So, both
- 2:02:17are plain markdown instruction files
- 2:02:20that get autoloaded into the AI's
- 2:02:23context at the start of a session. They
- 2:02:26are, let me just clear this. They are
- 2:02:28where you put project conventions,
- 2:02:31architecture notes, something like
- 2:02:33always do this, never do that, these
- 2:02:35type of rules. So in our case, we could
- 2:02:38have just said always use native tabs,
- 2:02:41right? Never use anything else for the
- 2:02:43tabs. This is where you would put the
- 2:02:45instruction. Now the difference between
- 2:02:47them is that cloud.md is for cloud and
- 2:02:51agents.md for literally anything else.
- 2:02:55Okay, but I think cloud would still
- 2:02:58support this. All you need to do is
- 2:03:00adding all your
- 2:03:02instructions right here under the
- 2:03:04agents.m MD and under the cloud MD just
- 2:03:08go ahead and import it. Okay, so that's
- 2:03:10all you need to do.
- 2:03:12And this is a convention by the way here
- 2:03:14I have explained it as well. Put your
- 2:03:16actual instructions in agents.md
- 2:03:20and make cloud to import that file.
- 2:03:23Okay, now I think we we know the
- 2:03:26difference. And here when I ask AI to
- 2:03:30implement the native tabs, I said we
- 2:03:33always want to use native tabs, right?
- 2:03:35And here it says I have updated it under
- 2:03:38the agents. MD. So if I go under the
- 2:03:40agents.md and search for native tabs,
- 2:03:44here it says always use export router
- 2:03:46native tabs. Okay. So once again, I'll
- 2:03:50try to visualize it pretty quickly. When
- 2:03:52you start a new session with AI, you're
- 2:03:55asking a question, right? and then you
- 2:03:57are getting a result. Let's say you just
- 2:03:59say build me authentication and then it
- 2:04:02builds it. You say build me profile page
- 2:04:04and then you get the end result. But at
- 2:04:06the beginning there is agents.md that is
- 2:04:10automatically loaded to the context.
- 2:04:13This is what we explained. Okay. So I
- 2:04:16hope now we understand the agents.md
- 2:04:18file and what's the difference between
- 2:04:20them. Now what I have done off camera is
- 2:04:23going into VS code and then I just said
- 2:04:25now go ahead and implement the account
- 2:04:27deletion. When we press this delete
- 2:04:30account button here it says you need to
- 2:04:33add the clerk secret sorry clerk secret
- 2:04:36key to the dashboard. This is what I
- 2:04:38have done. I just went into my project
- 2:04:40settings environment variables and then
- 2:04:43just get the clerk secret key and paste
- 2:04:45it right here. Now how do you get this
- 2:04:47value? Well, you can go into clerk expo
- 2:04:50documentation.
- 2:04:55So from here, let's just find
- 2:04:58the environment variables. Just select
- 2:05:01your project and then you can also press
- 2:05:03the API keys by the way. So here you
- 2:05:06have the publishable key, but we need
- 2:05:08the secret key as well. So it is right
- 2:05:10here. Just go ahead and copy this value
- 2:05:14and paste it right here. So you can just
- 2:05:17say add and paste this value. It should
- 2:05:19be right here. Then save. This is
- 2:05:22exactly what I have done. I said I have
- 2:05:25added it. So I said that's done. Go
- 2:05:27ahead and implement it. Now looks like
- 2:05:30this has been implemented. I'll say
- 2:05:31delete the account. If I say cancel,
- 2:05:34nothing happens. But if I say delete, it
- 2:05:36should actually delete the account and
- 2:05:39sign me out. Let's go ahead take a look
- 2:05:41at the dashboard.
- 2:05:45Okay. So previously we had two different
- 2:05:48users but now we have only one. All
- 2:05:51right. So I think with this I'm going to
- 2:05:53leave this section right here. In the
- 2:05:55next section we can build that privacy
- 2:05:57policy in terms of services. And again
- 2:06:00for this I have some pre-made prompts
- 2:06:03that I'll share with you. But for now I
- 2:06:05think if you wanted to you can pause the
- 2:06:07video and improve the UI as much as you
- 2:06:10want. But I don't want to waste any
- 2:06:12time. Um I'll just go ahead and let's
- 2:06:14close everything.
- 2:06:17and I'll just commit my changes.
- 2:06:21So, let's stage and get a commit message
- 2:06:27and I'll sync this up.
- 2:06:30Okay. So, with this, I'll see you in the
- 2:06:32next lesson. All right. Now, let's say
- 2:06:34you build your application and it is
- 2:06:36time to get started with the legal
- 2:06:38pages. Like what you need to do is
- 2:06:40pretty simple and here I'll just try to
- 2:06:42walk you through it. So, first off,
- 2:06:44let's talk about some of the must-h have
- 2:06:46features that you should have. One of
- 2:06:48them was the delete account button,
- 2:06:51which is something that we have
- 2:06:52implemented. The other one is the Apple
- 2:06:55sign in option. Again, it is right here.
- 2:06:58This is basically something that you
- 2:07:00have to have if you included any other
- 2:07:03different social login options. So, in
- 2:07:05our case, we have Google. Then, Apple
- 2:07:07says you must have sign in with Apple
- 2:07:10option as well. Now, on top of privacy
- 2:07:12policy and terms of services, we also
- 2:07:15need to add a support URL. This is
- 2:07:18something that Apple will ask you when
- 2:07:20you go into the Apple dashboard. Okay.
- 2:07:23So, I'll try to explain it in a little
- 2:07:27bit. Okay. So, with that in mind, now
- 2:07:29let's go ahead and create the privacy
- 2:07:31policy, terms of services, and a support
- 2:07:33URL. And in the past for one of my past
- 2:07:36tutorials, I have built a landing page
- 2:07:39like this where we have some demo images
- 2:07:43that is looking pretty cool and we have
- 2:07:45like more details. And now I'll just
- 2:07:48show you how you can generate these type
- 2:07:50of mockups in like less than 5 minutes.
- 2:07:54Okay, so with this in mind, on top of
- 2:07:57this, I'll provide you a terms of
- 2:07:59services prompt. You can find this. just
- 2:08:02go ahead and copy it and we'll go into
- 2:08:04Codex. Let me just create a new session
- 2:08:09now. Okay. So, this is something I'll
- 2:08:12just delete. I don't know why, but in
- 2:08:14the past, looks like I have it. So, I
- 2:08:16just deleted that. And here, I'll paste
- 2:08:18this in. What this does is basically it
- 2:08:21says go ahead and read my entire
- 2:08:24codebase and depending on my project,
- 2:08:27create me a terms of services page.
- 2:08:30Right? And here I'll say
- 2:08:34um like put everything under a folder
- 2:08:37called legal. Let's actually create
- 2:08:39that. So I'll say put it all under the
- 2:08:43legal folder and actually build me a
- 2:08:49landing page as well. Let's say make
- 2:08:53sure it looks pretty good.
- 2:08:56Now, of course, this is not the best
- 2:08:58prompt, but I just want to see what it
- 2:09:00can give us in the first try, and then
- 2:09:02we can always follow up and add some
- 2:09:05references. Now, before I run this
- 2:09:07prompt, what I'd like to do is actually
- 2:09:10preparing these demo images. So, for
- 2:09:13this, there is a website called
- 2:09:15shots.so,
- 2:09:17which is completely free to get started
- 2:09:19with. They [snorts] have paid plan as
- 2:09:21well, but you don't really need to pay
- 2:09:23just to create these images. Okay. So,
- 2:09:26head over to this site here. I'll just
- 2:09:28say start over. This is what you're
- 2:09:30going to see initially. From here, go
- 2:09:32ahead and select a mockup. In this case,
- 2:09:35I'll just get iPhone 17, I believe. You
- 2:09:39can select anything really. I'll just
- 2:09:41get this one.
- 2:09:43And then I'll say,
- 2:09:46let me go under the frame. I'll say
- 2:09:48there should be no background because
- 2:09:50here we would like to have a transparent
- 2:09:52background, right? like this doesn't
- 2:09:55have any white background, red
- 2:09:56background, nothing. It should be
- 2:09:59transparent. And then for the images,
- 2:10:02for the images, you would like to open
- 2:10:04up your simulator and take a screenshot.
- 2:10:07Then I'll just copy this. Let's say copy
- 2:10:10to clipboard here. I'll press Ctrl +V.
- 2:10:13Okay. So, I just pasted that. Now you
- 2:10:16can get this type of variation. But then
- 2:10:18you need the second image or even like
- 2:10:21three different images. Let me just try
- 2:10:24to kind of like log in
- 2:10:28because I'm going to get more
- 2:10:30screenshots
- 2:10:32here. I'll say continue. And okay, so I
- 2:10:35just logged in. Let's go under the
- 2:10:36explore screen and I'm going to take
- 2:10:38another screenshot. Again, I'll copy
- 2:10:40this to clipboard. Let's go and maybe
- 2:10:44create this one initially. So I'm going
- 2:10:47to paste this in. And what you would
- 2:10:50like to do is zooming in as much as
- 2:10:53possible. So you are basically deleting
- 2:10:55this extra space from the top and from
- 2:10:57the bottom. So go ahead and zoom in.
- 2:10:59Don't make it this much, but just make
- 2:11:02sure that you know you get rid of these
- 2:11:05extra spaces as much as possible. So I'm
- 2:11:08going to go ahead zoom in. I think this
- 2:11:10is fine. And you also want to make sure
- 2:11:13that under the mockup you say there is
- 2:11:15no shadow. Okay, because if you have
- 2:11:18shadow like let me select one of them
- 2:11:23like I think it is not really that
- 2:11:25visible but there is some shadow right
- 2:11:27here and it's not going to make it look
- 2:11:29like this if you have shadow like just
- 2:11:32trust me go ahead and he would like to
- 2:11:33select no shadow and then we can export
- 2:11:36this. So that's the first variation.
- 2:11:38Let's go and get one of these. I'll just
- 2:11:42keep it simple and get the first one.
- 2:11:44Again, I'm zooming in as much as
- 2:11:45possible.
- 2:11:47I'm going to export this as well. And
- 2:11:50let's go ahead get one of these.
- 2:11:54Yeah, I think I'll just go with this
- 2:11:55one. Let me take a screenshot
- 2:11:58maybe from the messages.
- 2:12:05I'll copy it to clipboard again. and
- 2:12:07I'll paste this in. Let's zoom in as
- 2:12:10much as possible.
- 2:12:15Okay. So, what we have just done here is
- 2:12:18something that you can implement in all
- 2:12:20of your future projects.
- 2:12:23Just visit this site and do the same
- 2:12:25thing that I've done. Now, I'm going to
- 2:12:27get these three images and I'll just
- 2:12:29paste it into VS Code. Let's actually go
- 2:12:31under the legal folder. I'm going to
- 2:12:33drag and drop and let's just say
- 2:12:39like I'll rename it. I'll say demo one.
- 2:12:42Um I think this should be
- 2:12:46demo 3. Sorry, demo two and three.
- 2:12:52Now I will go into codex. So I had this
- 2:12:55prompt and I'll just say in landing page
- 2:12:59use these images
- 2:13:03which are demo one,
- 2:13:06two, and three.
- 2:13:11Okay, so I'll just run this and let's
- 2:13:13see what we're going to get back. All
- 2:13:14right, so this took around 17 minutes.
- 2:13:17GPT not only build it but also test it
- 2:13:19out on the browser. So here you can tell
- 2:13:22I have bunch of different files but the
- 2:13:24important one is the index.html.
- 2:13:27Just go ahead rightclick and then open
- 2:13:29this with the live server. If you cannot
- 2:13:32see this option then just head over to
- 2:13:34the extensions and just get the live
- 2:13:37server extension. Let me show you that
- 2:13:40pretty quickly. It's going to be this
- 2:13:41one. Install it and then you should be
- 2:13:44able to see it. So right click, press
- 2:13:46this and here we go. This is the end
- 2:13:49result. And I think UI is way better
- 2:13:52than what I expected. And like we didn't
- 2:13:55give any kind of reference at all. It
- 2:13:57has built it by itself. And notice how
- 2:13:59it is following the system design that
- 2:14:03we currently have. So it didn't build
- 2:14:05something like in the red color or
- 2:14:07purple or really anything. But instead
- 2:14:10it like it is following the blue color
- 2:14:12theme that we have in the mobile
- 2:14:14application. Now if you wanted to you
- 2:14:16can of course as usual you can follow up
- 2:14:19and improve the design. I don't want to
- 2:14:21waste any time but here you can tell we
- 2:14:23have the terms of services under the
- 2:14:27terms endpoint or URL I would say.
- 2:14:32Now here you can tell there are a bunch
- 2:14:33of different uh placeholder fields.
- 2:14:36That's because AI cannot really guess
- 2:14:39what is the legal name of your business,
- 2:14:42you know, privacy policy URL and things
- 2:14:44like that because this is still not
- 2:14:46deployed. So these are some um
- 2:14:49placeholders that you would like to
- 2:14:50actually read and fix. But other than
- 2:14:52these, you don't really need to change
- 2:14:54anything else. This is exactly what I
- 2:14:56have done when I was building my own
- 2:14:58mobile application. And I think like
- 2:15:01this is the old name. Um sorry, this is
- 2:15:03the old name. Previously it was called
- 2:15:05bulky AI but recently I have update the
- 2:15:08name but it is still under the old
- 2:15:10domain which is fine. So here I have a
- 2:15:12terms of services if you if you scroll
- 2:15:16to the bottom here you can tell like I
- 2:15:19just put the details about my business
- 2:15:21you know where I'm from things like
- 2:15:22that. And now it's time to build the
- 2:15:25privacy policy. And for this again I
- 2:15:28have the prompt. You'll just go ahead
- 2:15:30get this entire thing. Let's paste this
- 2:15:33in. And now it should also build the
- 2:15:37privacy policy. Once this is done, I'll
- 2:15:40just be right back. All right. So after
- 2:15:43some time, this has also been
- 2:15:44implemented. Here you can tell in the
- 2:15:46footer we have this link. Again, there
- 2:15:48are a bunch of different placeholders
- 2:15:50that you would like to read and update
- 2:15:52just before you publish your app to the
- 2:15:54app store. And then you would like to
- 2:15:57kind of like deploy this because
- 2:15:59currently this is running on your local
- 2:16:01machine. Now I'll show you how to deploy
- 2:16:03it in a second. But first let's go back
- 2:16:05to our list. Now we have built the
- 2:16:08privacy policy and terms of services. On
- 2:16:10top of this you also want to have a
- 2:16:12support URL because this is a field that
- 2:16:15Apple will ask you in the Apple
- 2:16:18dashboard when you want to deploy it.
- 2:16:20And this is going to be by the way under
- 2:16:22the Apple store connect. So we can
- 2:16:25actually visit that like app store
- 2:16:28connect. Sorry not Apple store. It
- 2:16:30should be app store connect.
- 2:16:34So this is something that I go into in
- 2:16:36detail in my school community but
- 2:16:39basically [snorts] in simple terms this
- 2:16:41is going to be the place where you will
- 2:16:43publish your app and they ask for a
- 2:16:46support URL. Now let's go ahead and
- 2:16:47build it as well. I'll just say also add
- 2:16:50a support page. Please keep it simple
- 2:16:55and super quick to build. like I don't
- 2:16:59want to wait 10 minutes. So I'll just
- 2:17:02say don't test only build.
- 2:17:06Now usually I wouldn't say this but this
- 2:17:09uh this is just because this is a
- 2:17:11tutorial I'll say don't test it just
- 2:17:13build so that we don't waste any time.
- 2:17:16And now while this is building let's go
- 2:17:18ahead and see cloudflare. This is where
- 2:17:20we will deploy our application. Sorry.
- 2:17:23This is where we will deploy our privacy
- 2:17:25policy and in general the landing page.
- 2:17:29So this is completely free to get
- 2:17:31started with. Just go ahead and sign up
- 2:17:33with your GitHub account. This is what I
- 2:17:36have done. And you will just go into VS
- 2:17:38Code under Codex cloud whatever you're
- 2:17:41using. You will just say go ahead and
- 2:17:44deploy this to Cloudflare pages. Okay.
- 2:17:47And looks like support page has been
- 2:17:49completed. Let me double check. We have
- 2:17:52the support page here. The only thing
- 2:17:54that you need to update is the support
- 2:17:56email, which is something pretty easy to
- 2:17:58do. If you don't know how to do it, just
- 2:18:00talk with Codex.
- 2:18:02It'll um basically it'll walk you
- 2:18:05through the entire process. Okay. So,
- 2:18:07with that said, what you would like to
- 2:18:09do for deployment, just going here and
- 2:18:11saying something like deploy the
- 2:18:17legal folder. Right? So, we have the
- 2:18:19legal folder. I'll just say deploy this
- 2:18:21to Cloudflare
- 2:18:24pages. And Cloudflare has a tool called
- 2:18:28Wrangler, which is a CLI tool that
- 2:18:30allows you to publish your app without
- 2:18:33touching the browser. So from the
- 2:18:35terminal, it can use this tool and
- 2:18:38deploy your app. So I'll just say use
- 2:18:41Wrangler and I already
- 2:18:44have the setup and login. If you don't
- 2:18:48have, you can say go ahead and set this
- 2:18:51up for me or just tell me the process
- 2:18:53how I can set this up. Okay, so I'm
- 2:18:56going to run this and after I believe
- 2:18:59couple of minutes, this should be
- 2:19:01deployed. All right, so it was super
- 2:19:03quick. Here you can tell it took 1
- 2:19:05minute and 20 seconds. And if you press
- 2:19:07the link here, you can tell our landing
- 2:19:10page is live. Now we can use this URL in
- 2:19:13the App Store Connect dashboard. So you
- 2:19:16can add this link as your privacy
- 2:19:18policy.
- 2:19:20This link for the terms of services and
- 2:19:22then
- 2:19:24/sup support. Let me just find it.
- 2:19:29This for the support URL. All right. So
- 2:19:32this is how you build the legal pages
- 2:19:34and deploy it to internet. The only
- 2:19:37thing left for you to do is filling
- 2:19:39filling in these placeholders. And
- 2:19:43literally that's it. Now, with that, I
- 2:19:45think I'm going to leave this lesson
- 2:19:46right here. Let's go ahead and visit VS
- 2:19:50Code.
- 2:19:51And as usual, we're going to stage
- 2:19:53everything and commit our changes.
- 2:20:02All right, so this is where we left.
- 2:20:04Now, in this section, I'd like to talk
- 2:20:06about something called error tracking
- 2:20:08and monitoring, which sounds pretty
- 2:20:10complex, but it's actually pretty easy
- 2:20:12to implement. And it's really, really
- 2:20:14important to understand, especially if
- 2:20:16you're building apps. Um, for us to be
- 2:20:20able to understand it, first we need to
- 2:20:22see the problem and then the solution.
- 2:20:24Then I'll show you how to integrate it.
- 2:20:26So, let's just see the problem first.
- 2:20:28Now, let's say you built your own
- 2:20:30application, right? You deployed to App
- 2:20:32Store. everything is working in your own
- 2:20:35device and even in the simulator. But
- 2:20:37you cannot really just assume that this
- 2:20:39is going to work for every single one of
- 2:20:41your users. Now like it or don't like it
- 2:20:44in real applications, there are always
- 2:20:47some kind of edge cases and like there
- 2:20:50will always be some problems that you
- 2:20:52need to fix. And now you need to be
- 2:20:54notified anytime your users are getting
- 2:20:56some errors. Now let's take a look at
- 2:20:58the diagrams that I have prepared. So
- 2:21:01here you know like what happens when
- 2:21:04your users face some errors. Do you
- 2:21:06think they will send you an email or do
- 2:21:09you think they will delete the
- 2:21:10application and leave a one-star review
- 2:21:13with a really bad comment? Well 99% of
- 2:21:16the time this is what's going to happen
- 2:21:18because they don't even know who you
- 2:21:20are, right? So how would they know your
- 2:21:22email? So they'll never try to send you
- 2:21:25an email explaining the issue. they'll
- 2:21:27just delete the app, leave a one-star
- 2:21:29review, and they'll say something like,
- 2:21:32I don't know, like profile screen
- 2:21:33doesn't work. I'm trying to see my
- 2:21:35profile image, but it is not even
- 2:21:37visible. I am deleting this app.
- 2:21:39Something like that. Right? So, that's
- 2:21:41the problem that you need to kind of
- 2:21:44fix. Anytime there is an error, you need
- 2:21:46to get an email automatically seeing the
- 2:21:50error, the user, and how to fix it. So,
- 2:21:54that's the beauty of Sentry. This is
- 2:21:56where Sentry comes in. We're going to
- 2:21:58fix it by using Sentry, which is
- 2:22:00completely free to get started with. So,
- 2:22:03think of it like the watch tower of your
- 2:22:06application. Now, it is much more than
- 2:22:08just error tracking and monitoring, but
- 2:22:11here are some of the things that I can
- 2:22:13highlight. So, it's going to catch the
- 2:22:15errors. It's going to show us the
- 2:22:17structured logs, which is like
- 2:22:18console.log, but it is structured. That
- 2:22:22means you know it is searchable and it
- 2:22:24is persisted in the cloud. Then there
- 2:22:26are session replace which means that
- 2:22:28it's going to take video recording
- 2:22:30anytime there is an error. So let's say
- 2:22:33your user presses button and it has
- 2:22:35failed. So you will have the video
- 2:22:38recording of that in your sentry
- 2:22:40dashboard then it helps with performance
- 2:22:43such as traces and bottlenecks and as I
- 2:22:46have already mentioned you're going to
- 2:22:48get realtime alerts. Now, by default,
- 2:22:50it's going to work with your email, but
- 2:22:52if you wanted to, you can set this up
- 2:22:54with Slack, I believe, Discord, and even
- 2:22:57Microsoft Teams.
- 2:23:00Okay, so this is completely free to get
- 2:23:02started with. If you use the link in the
- 2:23:04description, you're going to get $80
- 2:23:06extra free credits, which is pretty
- 2:23:09generous. So, go ahead and sign up with
- 2:23:11that link, and then you'll be in the
- 2:23:13Sentry dashboard. So, initially probably
- 2:23:16you will not have any projects. So just
- 2:23:19go ahead and say create a project. From
- 2:23:21here you can select your repository.
- 2:23:24Let's say you don't have a repository on
- 2:23:26GitHub which is completely fine. So this
- 2:23:28is optional right. Um then you would
- 2:23:31select your platform. In this case it's
- 2:23:33going to be react native and then give
- 2:23:35it a project name like anything codex
- 2:23:38gram. This is what I'm going to leave.
- 2:23:40And then we'll say create the project.
- 2:23:42Now I'm going to select my repository.
- 2:23:44And as soon as I select it, it is going
- 2:23:46to automatically detect that it is a
- 2:23:49React Native project. So here I just
- 2:23:51search for my repository. I can select
- 2:23:53it. And now it's going to auto detect
- 2:23:56that this is a React Native project.
- 2:23:59I'll leave everything as it is, but I'll
- 2:24:01update the project name. I'll say Codex
- 2:24:03Gramm even though you can call it
- 2:24:05anything really. Then you can also
- 2:24:08update the alert frequency. I'll just
- 2:24:10leave everything as default. And here
- 2:24:12you can tell you can connect it to
- 2:24:14Slack, Discord, and Microsoft Teams. But
- 2:24:17for now, we'll just leave it as email,
- 2:24:20which is pretty comfortable, especially
- 2:24:23if you're just building it by yourself,
- 2:24:25like if you don't have a team. Okay. So,
- 2:24:28with that said, now this is what you're
- 2:24:29going to get, which is called Sentry
- 2:24:31Wizard. Now, you can run this
- 2:24:33automatically, sorry, by default, or you
- 2:24:36can just copy the instructions and paste
- 2:24:39it to AI. Now, if you wanted to again,
- 2:24:43you can just open up a new terminal,
- 2:24:45copy this entire thing, and run it. But
- 2:24:47I'll just get the instructions. And I
- 2:24:51will paste it right here in my Codex
- 2:24:54session.
- 2:24:56So, let me go ahead and open up a new
- 2:24:59chat
- 2:25:02and maybe I'll try to zoom in.
- 2:25:06I'll paste this in. It explains
- 2:25:08everything and it even provides the DSN
- 2:25:11which is a connection string. Basically,
- 2:25:15it'll allow us to connect to this
- 2:25:17specific project.
- 2:25:19Anytime you create a new project, by the
- 2:25:21way, you'll get a different DSN. Okay.
- 2:25:24So, with this, I'll go ahead and run it.
- 2:25:27This will set up Sentry and then
- 2:25:29hopefully we should be able to test this
- 2:25:31out. Now, while this is building it,
- 2:25:33there are a couple of different features
- 2:25:35of Sentry that I would recommend you to
- 2:25:38set up. Like the first one is going to
- 2:25:42be sentry logs. So, let's just go ahead
- 2:25:44and say Sentry Logs React Native.
- 2:25:48I would visit the documentation and then
- 2:25:50I would just copy the entire page and
- 2:25:53ask, you know, Codex or Cloud, whatever
- 2:25:56you're using. I'll just say setup sentry
- 2:25:59logs for my project and it is actually
- 2:26:02pretty simple. It is just a one line
- 2:26:04change and like if you're interested you
- 2:26:07can pause the video and read this
- 2:26:10documentation which they explain
- 2:26:12everything in detail but let me try to
- 2:26:14pretty quickly go over it. So to be able
- 2:26:16to understand what sentry logs is here I
- 2:26:20have prepared this comparison between
- 2:26:22console.log versus sentry logs. So here
- 2:26:26as you already know console.log lives on
- 2:26:29user's device only right so it's going
- 2:26:32to disappear when the application
- 2:26:33closes. It is plain text and it has no
- 2:26:36connection to errors like it is super
- 2:26:39simple for simple projects for
- 2:26:42debugging. But on the other side logs
- 2:26:45are sent to sentry servers which means
- 2:26:48it is saved on the cloud. It is
- 2:26:51persisted and searchable. That means you
- 2:26:54can you can literally query anything and
- 2:26:57to be able to query them there are some
- 2:26:59texts. So it is structured and it is
- 2:27:02linked to the traces errors and replays.
- 2:27:06Now here is how to use it. Like you can
- 2:27:08have different logs for debugging
- 2:27:11purposes you know just for information
- 2:27:13logs, warnings, errors and even
- 2:27:16something like fatal which is you know
- 2:27:20really really important and that is like
- 2:27:22kind of like a problem that needs to be
- 2:27:24fixed immediately. So to give you an
- 2:27:27example database connection failing is
- 2:27:30something fatal that you need to fix.
- 2:27:34Okay. So you can just pause the video
- 2:27:36and read this if you're interested,
- 2:27:38which I would highly highly recommend.
- 2:27:40This is one of those things that people
- 2:27:42don't really care, but as a app owner, I
- 2:27:46think this is one of the most important
- 2:27:48topics so that like you can get the
- 2:27:52email and immediately solve it before
- 2:27:55your application has really bad
- 2:27:57reviewing.
- 2:27:59Okay, so with this, let's take a look at
- 2:28:01the VS code. I think this is still
- 2:28:06setting this up. Once it is done, I'll
- 2:28:08just be right back. All right. So,
- 2:28:09within the 6 minutes, this has been
- 2:28:11installed and set it up correctly. Now,
- 2:28:14one thing that I want to mention is that
- 2:28:16Sentry is a native module. So, once you
- 2:28:19install it or once you set this up, you
- 2:28:21need to rebuild your application. So, as
- 2:28:25you already know, rebuilding means you
- 2:28:27need to just say MPX expo run iOS in
- 2:28:31your terminal, right? So just copy this,
- 2:28:33kill your application from your terminal
- 2:28:36which is this one and then rerun it and
- 2:28:39then your application will be live once
- 2:28:42again. Now with this I'm going to go
- 2:28:44ahead and paste this into actually not
- 2:28:47this one sorry I'm going to get this
- 2:28:50copy page
- 2:28:52um for sentry logs and I'll just say go
- 2:28:56ahead and set up sentry logs. Let's say
- 2:28:58this is dogs for sentry logs
- 2:29:02set up for me. All right. So, as you can
- 2:29:06tell, this has been set it up pretty
- 2:29:07quickly in less than 1 minute. Now, on
- 2:29:10top of this, what I have asked is this.
- 2:29:13I said, go ahead and create me a sentry
- 2:29:15test page under the settings and create
- 2:29:18some errors and logs when we press those
- 2:29:20buttons. So this is going to simulate
- 2:29:23real world issues so that I can see them
- 2:29:25in my sentry dashboard and explore. So
- 2:29:28after two minutes it was able to build
- 2:29:30this screen called Sentry test. And now
- 2:29:33we can press these buttons which is
- 2:29:36going to create bunch of different
- 2:29:37errors that kind of like simulate a real
- 2:29:40world implementation right or a real
- 2:29:43real world use case I would say. Now
- 2:29:45let's go ahead and run some of them.
- 2:29:48like anytime you press them, they're
- 2:29:50going to catch the errors, right? It's
- 2:29:52going to throw an error and we're going
- 2:29:54to catch it with this sentry. So here,
- 2:29:56I'll just press couple of times. And now
- 2:29:58let's go ahead select our project. In
- 2:30:01this case, it's going to be this one.
- 2:30:03And go under the issues. Like here, you
- 2:30:06can tell 10 seconds ago, we got all
- 2:30:09these errors.
- 2:30:11And at the same time you're going to get
- 2:30:12the email in real time so that you can
- 2:30:15see what is going on, what is broken and
- 2:30:17then you can jump into your codebase and
- 2:30:19fix them. Now if you press any of them
- 2:30:21you're going to get the whole details
- 2:30:23about the error about the user like
- 2:30:26what's the
- 2:30:28um you know what's the operating system
- 2:30:30they're using? What is the device that
- 2:30:32they have? So on and so forth. I'll just
- 2:30:34leave you to explore it. You can scroll
- 2:30:36to the bottom and basically check almost
- 2:30:39every single detail. Then you can go
- 2:30:41under the explore and take a look at the
- 2:30:43logs as well. Here you can tell there
- 2:30:45are bunch of different logs that are
- 2:30:47generated. And now since in our project
- 2:30:51we only have one user currently you
- 2:30:54might not be able to see the importance
- 2:30:56of logs but just imagine you have like
- 2:30:591,000 users or like even 10,000 users
- 2:31:02then logs will be really really handy
- 2:31:05where you can basically debug everything
- 2:31:07about your project. So overall that's
- 2:31:10the basics of Sentry. This is how we can
- 2:31:12set this up. And there's also Sentry
- 2:31:15tracing. Let's double check. I'll just
- 2:31:17say Sentry Tracing React Native in the
- 2:31:21exact same way. You can go ahead and
- 2:31:22copy this page, paste it into Codex or
- 2:31:25Cloud, whatever, whatever you are using.
- 2:31:27And then it's going to set this up. You
- 2:31:30can read what this is for mostly for
- 2:31:32performance. And like this is something
- 2:31:35that I have set it up in my actual
- 2:31:37application. Okay. So, I'll just leave
- 2:31:39it as a challenge if you wanted to
- 2:31:41implement. And with this, I think we can
- 2:31:43commit our changes and leave this
- 2:31:45section right here. Well, actually, I
- 2:31:48just realized there is one more
- 2:31:49component that I'd like to show you,
- 2:31:52which is going to be a feedback element.
- 2:31:54So, let's go ahead and search for Sentry
- 2:31:58React Native feedback.
- 2:32:01So, with this component, you can
- 2:32:03basically you can basically get feedback
- 2:32:06from your users. So I'm just going to go
- 2:32:08ahead press this one. So like this is
- 2:32:12what you will see what your users will
- 2:32:14get where they can add their full name,
- 2:32:16email, and you know the feature that
- 2:32:19they would request. So I'm going to go
- 2:32:21ahead copy this entire page and I'll
- 2:32:24just say
- 2:32:25under the settings screen,
- 2:32:29add a nice feedback button
- 2:32:34with sentry.
- 2:32:37Once this is done, I'll just be right
- 2:32:38back. So, it took around 2 minutes and
- 2:32:41here we go. Now, if you press this
- 2:32:43button, we got the component. Let's go
- 2:32:45ahead and add a, you know, a suggestion
- 2:32:48or a feedback. I'll just give it my
- 2:32:50name. Let's say this is my email. I
- 2:32:54think I need to copy it like this.
- 2:33:05Let's just say, "Hey, please fix the
- 2:33:08profile screen."
- 2:33:16Now, in your sentry dashboard, if you
- 2:33:18visit issues and user feedback, you're
- 2:33:20going to see that we got that feedback,
- 2:33:22right? So, we have the username, the
- 2:33:25detail, and if you press that, you'll be
- 2:33:27able to see everything else. And if you
- 2:33:30cannot really find it at the time that
- 2:33:32you're watching this video, you can just
- 2:33:34go to the search bar and search for the
- 2:33:37user feedback. Just press it and it's
- 2:33:39going to take you to this screen. All
- 2:33:42right. So overall, that's it for the
- 2:33:44Sentry integration. There is one more
- 2:33:46thing that I want to do. When we press
- 2:33:49these buttons, let's actually go ahead
- 2:33:51and link them to the actual URL. Right?
- 2:33:54So I'm going to say when we press
- 2:33:57privacy policy in terms of services link
- 2:34:02it to the actual deployed
- 2:34:06let's say URLs.
- 2:34:08All right. So within the next 1 minute
- 2:34:10this has been all right. So in 1 minute
- 2:34:13it's been implemented. Let's go ahead
- 2:34:14and press this. As you can tell it is
- 2:34:17taking us to the actual URL. Now,
- 2:34:19instead of opening opening this up in
- 2:34:22Safari, I'll just say, can you open this
- 2:34:24up within the app? Like a sheet would
- 2:34:27come from the bottom and we would see
- 2:34:29the website. So, I'll just say So, that
- 2:34:31was a super simple fix. As you can tell,
- 2:34:34when you press now, it just opens up
- 2:34:36within the app. Same for the terms of
- 2:34:39services. Okay, so I think that's it for
- 2:34:43the entire project or at least for this
- 2:34:45section. Let's go ahead and commit
- 2:34:48everything.
- 2:34:53I'll stage everything. Let's get a
- 2:34:54commit message and then we're going to
- 2:34:56commit this. So this is my commit
- 2:34:58message. I'll commit and let's say sync
- 2:35:01this up. All right. So that's pretty
- 2:35:03much the entire application that we have
- 2:35:05built. So from here on out, all you need
- 2:35:08to do is just going and talking with
- 2:35:10your AI agents so that they can improve
- 2:35:13the UI design. I'm not going to try to
- 2:35:15do it even though I have tried to like
- 2:35:18off camera just make the homepage look a
- 2:35:21little bit more cleaner. Here's my
- 2:35:23prompt. But yeah, as I said, at this
- 2:35:25point you would like to just have a
- 2:35:28couple of different follow-ups. I don't
- 2:35:29know, maybe generate more design
- 2:35:32references and then ask them to kind of
- 2:35:34like implement it until you like the end
- 2:35:38result. So, with all that said, I think
- 2:35:40I'm going to leave this tutorial right
- 2:35:42here. I hope you enjoyed it and learned
- 2:35:43something new from it. If so, don't
- 2:35:45forget to like and subscribe.
About this transcript
This page contains the full transcript of Build your own Mobile App with Codex GPT-6 Astra - Full iOS and Android Course by freeCodeCamp.org, generated from the public captions YouTube serves with the video. The transcript has 25,939 words across 3,605 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.