YouTube2Text

Build your own Mobile App with Codex GPT-6 Astra - Full iOS and Android Course — Transcript

by freeCodeCamp.org · 25,939 words · 3,605 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Learn to build and publish a real
  2. 0:01Instagramst style mobile app from
  3. 0:04scratch using codecs and GPT6 Astra.
  4. 0:08Brock will guide you through the
  5. 0:09complete development life cycle,
  6. 0:11covering everything from generating UI
  7. 0:13designs and setting up a backend to App
  8. 0:17Store deployment. You'll master not just
  9. 0:20the code, but the exact AI prompting
  10. 0:22workflows needed to turn an idea into a
  11. 0:26finished product. Welcome to the
  12. 0:28complete Codex tutorial on how to build
  13. 0:30a real mobile application using AI. In
  14. 0:34this course, I'm going to show you the
  15. 0:35exact workflow that I used to go from an
  16. 0:38idea all the way to a working mobile
  17. 0:41application. And just for some context,
  18. 0:43recently I have used this exact same
  19. 0:46workflow to build my own mobile
  20. 0:48application and publish it to the app
  21. 0:50store. So everything I'm going to show
  22. 0:52you in this video actually works. Just
  23. 0:54before we jump into coding, let me show
  24. 0:56you the project that we're going to
  25. 0:58build in this tutorial. So this is a
  26. 1:00social media application just like
  27. 1:02Instagram. If you want to use it, first
  28. 1:04you need to be authenticated. And here
  29. 1:07in our case, we have two different
  30. 1:08options. I'll go ahead and log in with
  31. 1:11my Google account.
  32. 1:13So once you're authenticated, you'll be
  33. 1:15redirected to the home screen. And here
  34. 1:18we have four different tabs which are
  35. 1:20home, messages, explore, and profile.
  36. 1:24And notice how we have the iOS liquid
  37. 1:26glass effect. And I'm going to show you
  38. 1:28how to build it without writing too much
  39. 1:31code. And now in the home screen, you
  40. 1:33can see the posts of the user that you
  41. 1:36already follow. And here you can also
  42. 1:38post stories. So let's go ahead and
  43. 1:40select something from our library. If
  44. 1:43you wanted to, you can also get it from
  45. 1:44your camera. But here I'll just select
  46. 1:47something from the library. So I'll go
  47. 1:49ahead and maybe post this image.
  48. 1:53Let's publish.
  49. 1:55This is going to upload it in the
  50. 1:56background. And once it is done, we will
  51. 1:59be able to view it. So here,
  52. 2:02here we go. So the stories works just
  53. 2:06like in Instagram. If you want to pause
  54. 2:08it, you can tap and hold it. And if you
  55. 2:10want to go to the next one, you would
  56. 2:12just press. And you can delete your
  57. 2:14stories if you are the owner. Now you
  58. 2:16can also posts,
  59. 2:19right? So you can create posts. Let's go
  60. 2:21ahead and publish something. I'll select
  61. 2:24this image and we can add a caption.
  62. 2:26Let's just say this weekend trip
  63. 2:31and let's post it. So here we go. It's
  64. 2:33posted and we can see it immediately in
  65. 2:35the home screen. You can like it and you
  66. 2:38can even add comments. So, let's go
  67. 2:40ahead and just say something like, I
  68. 2:42don't know, something test
  69. 2:45and post it. Now, it's going to be right
  70. 2:47here. You can like the comments. You can
  71. 2:49sort them. Here we have couple of
  72. 2:51different options and you can even
  73. 2:53bookmark the posts. So, that's it for
  74. 2:55the home screen. We also have realtime
  75. 2:58messages. So, here you can tell we have
  76. 3:00couple of different past chats, but they
  77. 3:02are all fake data that I created for the
  78. 3:05sake of this demo. Here I'm going to put
  79. 3:07the actual footage from the tutorial
  80. 3:10where I actually test this out from my
  81. 3:12phone. So I literally sent a message in
  82. 3:15real time and everything works in both
  83. 3:18of these accounts. And other than
  84. 3:21messages, we have the explore screen
  85. 3:23where you can see random posts from
  86. 3:25other people with a really good UI
  87. 3:27design. You can like them and if you
  88. 3:29press them, that's going to take you to
  89. 3:31the actual post. And from here you'll be
  90. 3:34able to see the other accounts and
  91. 3:36follow them or even unfollow them if you
  92. 3:39already follow. Here you can search for
  93. 3:42people, posts or even topics. Then
  94. 3:45eventually we have the profile screen
  95. 3:48where you can see your posts, even
  96. 3:50videos, bookmarks, and the tag posts. So
  97. 3:54you can also edit your profile here.
  98. 3:56Let's just say for the bio I'll put
  99. 3:59something like I don't know let's put
  100. 4:02YouTuber and then I'll save. As soon as
  101. 4:04I save here you can tell the profile has
  102. 4:07been updated. On top of this you can
  103. 4:09also change the profile image and we
  104. 4:11have the settings screen. Now here we
  105. 4:14have bunch of different buttons and
  106. 4:16links but the most important ones are
  107. 4:18the privacy policy and terms of
  108. 4:21services. Here you can tell we actually
  109. 4:23link it with a real real URL and we link
  110. 4:27it right here. Now this is something
  111. 4:29that you must implement. If you don't
  112. 4:31implement it, Apple will reject your
  113. 4:33application and I'm going to teach you
  114. 4:35how to do it later in the course. Then
  115. 4:37we also have the delete account option.
  116. 4:40Again, this is one of those things that
  117. 4:42if you don't implement your application
  118. 4:45will get rejected. And we even have a
  119. 4:47feedback button where users can
  120. 4:50literally send us some feedback like
  121. 4:53here they can put their name. I already
  122. 4:55filled this in but you know you can just
  123. 4:57put John your email and then if you want
  124. 5:00to have a feature request or I don't
  125. 5:03know any kind of bugs here you can tell
  126. 5:05you know please fix the edit profile
  127. 5:09feature it doesn't work and then you can
  128. 5:11send the feedback and I'm going to show
  129. 5:13you how you can collect those feedbacks
  130. 5:16later in the video. Now on top of the
  131. 5:18mobile application we're going to build
  132. 5:20a landing page with a really nice
  133. 5:22looking UI design. Here you can tell we
  134. 5:24have some demo images and I'm going to
  135. 5:26show you how to create them and use them
  136. 5:29for your future projects. And at the
  137. 5:32very bottom we have the privacy policy
  138. 5:35and terms of services links. Again,
  139. 5:37these are the things that you don't
  140. 5:39really want to skip. So that's the
  141. 5:41entire project that we're going to build
  142. 5:43in this video. Now, this is not one of
  143. 5:45those random vibe coding tutorials where
  144. 5:47we just open Codex and say, "Build me an
  145. 5:50application and hope everything somehow
  146. 5:52works." Instead, I'm going to show you
  147. 5:54the entire process step by step. We are
  148. 5:56going to start with an idea. Then we
  149. 5:58will plan the application properly,
  150. 6:00figure out all the features that we
  151. 6:02would need, generate a complete UI
  152. 6:04design, and then use Quadex to actually
  153. 6:07implement everything. By the end of this
  154. 6:09tutorial, you should have a clear
  155. 6:11understanding of all the tools that you
  156. 6:13would need to build a modern application
  157. 6:16using AI. You will also know what to do
  158. 6:18when you get stuck. Because one of the
  159. 6:20biggest problems when you're coding with
  160. 6:22AI is not necessarily the coding itself.
  161. 6:25It is knowing what to ask. So throughout
  162. 6:28this course, I'll show you how I deal
  163. 6:30with it, how I give Codex more context,
  164. 6:33and how I get it actually help me solve
  165. 6:35the problem. I will also share the
  166. 6:37prompts that I personally use. This
  167. 6:39includes the prompts that I use for
  168. 6:42planning an application, generating the
  169. 6:44UI design, implementing the screens, and
  170. 6:47even creating things like privacy policy
  171. 6:50and terms of services. And these things
  172. 6:53are actually important if you want to
  173. 6:55publish your app. Depending on what your
  174. 6:57application does and what kind of user
  175. 6:59data that you're collecting, Apple can
  176. 7:02require things like a privacy policy,
  177. 7:04terms of service, delete account
  178. 7:06feature, and other information. If you
  179. 7:09miss something that is required for your
  180. 7:11application, you can easily get rejected
  181. 7:13during the app store review. These are
  182. 7:15usually the things you would learn the
  183. 7:17hard way after building your first
  184. 7:19application, but I'll try to cover all
  185. 7:21of them in this tutorial so you know
  186. 7:23what to look out for before you submit
  187. 7:25your application. It is also important
  188. 7:27to mention that when people submit their
  189. 7:30application to the app store for the
  190. 7:32first couple of times they get rejected
  191. 7:34which is normal but in my case I never
  192. 7:36got rejected by Apple. My app literally
  193. 7:39got accepted in the first submission
  194. 7:41because this workflow covers everything.
  195. 7:44So you don't really miss any important
  196. 7:45detail. And just one more thing that all
  197. 7:48the tools that we're going to use in
  198. 7:50this course are completely free to get
  199. 7:52started with. So you don't need a credit
  200. 7:54card to follow along. and the complete
  201. 7:56source code for the application will
  202. 7:58also be available for free. I will leave
  203. 8:01the link in the description. My goal
  204. 8:03with this course is helping you to
  205. 8:05understand the entire workflow so that
  206. 8:07after finishing this video, you can take
  207. 8:09your own idea and actually know how to
  208. 8:12turn it into a real mobile application
  209. 8:15using Codex. So, we're going to go from
  210. 8:17idea to planning to UI design and
  211. 8:20finally getting the app ready to
  212. 8:22publish. Now with all that being said,
  213. 8:24let's not waste any time and get started
  214. 8:27with the course. Now just before we get
  215. 8:30started, I quickly want to mention that
  216. 8:32we have a school community and within
  217. 8:34the school community I have basically
  218. 8:36documented the entire journey of
  219. 8:39building my own application and
  220. 8:41publishing it to app store. Here you can
  221. 8:44tell everything took exactly 14 days
  222. 8:47because the day zero is kind of like
  223. 8:49crash course. So everything took around
  224. 8:5214 days to submit it to the app store
  225. 8:55and then we start with marketing and new
  226. 8:59classes will be coming every single day.
  227. 9:01So this is a community for those of you
  228. 9:03that are interested to see the entire
  229. 9:05process like having payments, you know,
  230. 9:08we have monthly, yearly plans, maybe
  231. 9:11even some weekly plans. Then how do you
  232. 9:14get through the entire submission
  233. 9:16process or something like how to
  234. 9:18implement push notifications? And this
  235. 9:21is not just a course, but it's a live
  236. 9:23community. Here you can tell everyone is
  237. 9:25sharing their own process like
  238. 9:27motivating each other, so on and so
  239. 9:29forth. And actually, one of our students
  240. 9:32has already published their app on the
  241. 9:34app store. And just for the record, this
  242. 9:36is his app and he built it with me
  243. 9:39within our community in exactly 14 days.
  244. 9:42And just to give you some insights, like
  245. 9:44when you press one of these classes, we
  246. 9:47have specific videos for that day. And
  247. 9:50you can always come back and double
  248. 9:52check these lessons if you're
  249. 9:53interested. So, if you want to join, I'm
  250. 9:55going to leave the link in description.
  251. 9:57And hopefully I'll see you inside.
  252. 10:00All right. So, as usual, we are going to
  253. 10:02start from absolute scratch. First off,
  254. 10:05in my case, I'm using VS Code as my code
  255. 10:07editor, but you can really use anything
  256. 10:10that you want. That could be cursor, I
  257. 10:12don't know, it could be windsurf, really
  258. 10:15anything that you wish, but I would
  259. 10:16recommend you to use VS code so that we
  260. 10:19have the exact same environment. Now,
  261. 10:22for this, you can visit
  262. 10:23codevvisisualstudio.com
  263. 10:25and then press this button. Now, in my
  264. 10:28case, I'm using Mac, but if you're on
  265. 10:29Windows, you're going to see a related
  266. 10:31button, and you can just install it for
  267. 10:34Windows as well. And once again, um, in
  268. 10:37this tutorial, I'm using Mac, but if
  269. 10:39you're using Windows, everything will be
  270. 10:41almost exactly the same, so you can
  271. 10:44follow along without any issues. The
  272. 10:46other thing that you must have is
  273. 10:48NodeJS. If you don't have it already,
  274. 10:51just visit node.js.org, or press the
  275. 10:54download button. Leave everything as it
  276. 10:56is. Like by default, it's going to
  277. 10:58select your environment, you know, your
  278. 11:00operating system, and then install it.
  279. 11:04Okay. So, I'll just assume that you have
  280. 11:06both of them. Then head over to your
  281. 11:09desktop, create an empty folder. In my
  282. 11:12case, I call this as Codex Gram, which
  283. 11:15is like Instagram, but I put Codex. You
  284. 11:18can call this anything that you wish.
  285. 11:19And then just open it up in VS Code. So
  286. 11:22basically just drag and drop it right
  287. 11:24here. It's going to open this up. Okay.
  288. 11:27So once you have it now we can start
  289. 11:29building a mobile application. Now what
  290. 11:32I'll be doing is first creating a boiler
  291. 11:36plate. And for this we'll be using Expo.
  292. 11:39So if you don't know already, let's go
  293. 11:41ahead and visit expo.dev. This is
  294. 11:44literally the best way to start a mobile
  295. 11:46application as of 2026. Literally, they
  296. 11:50have everything that you would need from
  297. 11:52building the app to publishing it to App
  298. 11:54Store and Play Store. This is what I
  299. 11:57used to build and publish my app to App
  300. 12:00Store, you know, just to let you know.
  301. 12:02And this is completely free to get
  302. 12:04started with. But if you're serious
  303. 12:06about publishing your app to the App
  304. 12:08Store, then probably you would like to
  305. 12:10go with at least $20 per month plan. Uh
  306. 12:14but yeah, for now, you don't really need
  307. 12:16to pay anything at all. Now with this um
  308. 12:19we'll go ahead and visit expo.dev/doccks
  309. 12:24which is the documentation and we need
  310. 12:26to copy this command. Now technically we
  311. 12:28can just ask cloud or codex to run this
  312. 12:32for us but here I'd like to run it
  313. 12:34manually to show you what we're going to
  314. 12:36get and like it's going to be a bit
  315. 12:38easier to do it by ourselves. So paste
  316. 12:42this in to your terminal and put dot at
  317. 12:45the end which means create an expo
  318. 12:48application under the current folder.
  319. 12:50Right? This is what that means. So it's
  320. 12:53going to create everything right here.
  321. 12:56First we're going to get a question. At
  322. 12:59the time that I'm recording this video
  323. 13:01it is seck 57. But if you're watching it
  324. 13:04in the future this will be incremented.
  325. 13:06That's not a problem at all. Just go
  326. 13:07ahead and press enter. And this will get
  327. 13:11couple of different files and folders
  328. 13:13which is basically a simple mobile
  329. 13:16application. And we can run it in a
  330. 13:18simulator just in a second once this is
  331. 13:22completed. Now I am on Mac. My simulator
  332. 13:24is going to be an iOS simulator. But if
  333. 13:27you're on Windows, you can install an
  334. 13:30Android um simulator. Right. So here
  335. 13:33I'll go ahead and run my simulator.
  336. 13:38And by the way, with the latest
  337. 13:39features, like as of now that I'm
  338. 13:41recording the video with Expo, you can
  339. 13:45be on Windows but still build it for
  340. 13:48iOS. Like you can literally run an iOS
  341. 13:51simulator on Windows. Just check their
  342. 13:54documentation. Um, you'll be able to see
  343. 13:57it. It is pretty new, so I'm not going
  344. 13:59to get into it, but just know that
  345. 14:01something like that existed. Okay, so
  346. 14:03here I have my simulator. I have some
  347. 14:06previous projects that I created in the
  348. 14:08past, but we are going to go ahead and
  349. 14:10start from scratch. So here it says you
  350. 14:13can start this app by running these
  351. 14:15commands for Android, iOS, and even for
  352. 14:18web.
  353. 14:19Here I'll go ahead and just say MPX expo
  354. 14:22or MPXO start. This will give us a QR
  355. 14:25code as well as a open terminal where if
  356. 14:29you press I, it is going to open this
  357. 14:32app in your simulator. So let me
  358. 14:34actually put them side by side.
  359. 14:42Okay. So it looks like something has
  360. 14:43failed. I'll press I once again.
  361. 14:50It is trying to open this. I don't know
  362. 14:53why I'm getting an error. Usually it
  363. 14:55should open it immediately. But now
  364. 14:57that's not a problem at all. I'll just
  365. 14:59go ahead and you know ask cloud or codex
  366. 15:03to explain what is happening here. And
  367. 15:05speaking of cloud and codex, if you
  368. 15:08would like to use cloud, you need to
  369. 15:11install this extension within the VS
  370. 15:13code. So cloud code for VS code and make
  371. 15:16sure you get the verified one. And then
  372. 15:19if you would like to use Codex, this is
  373. 15:21what I'll be doing in this tutorial even
  374. 15:23though I have subscription for both of
  375. 15:24them. Codex has a recent model called
  376. 15:28GPD6 Astra and I'd like to use it in
  377. 15:32this tutorial. So go ahead and get Codex
  378. 15:34if you have subscription or cloud or
  379. 15:37really anything that you wanted to have.
  380. 15:39And by the way, one thing that I want to
  381. 15:41mention is that the goal of this
  382. 15:43tutorial is not getting the exact same
  383. 15:45end result. So the goal here is
  384. 15:48understanding the workflow to build
  385. 15:50mobile apps by yourself. So, it's fine
  386. 15:53if at the end of this video you have a
  387. 15:56different app than what I have. I mean,
  388. 15:58the functionalities will probably be the
  389. 16:00same, but UI design could be different.
  390. 16:03Code could be a bit different, and
  391. 16:05that's because AI doesn't really give
  392. 16:07the exact same end result every single
  393. 16:10time. Okay? So, that's one thing to keep
  394. 16:12in mind. It's completely fine if you
  395. 16:14don't have the exact same end result
  396. 16:16that I have right here. And other than
  397. 16:19this, like I see a lot of people get
  398. 16:21kind of like depressed because of AI
  399. 16:23where it can almost build anything now.
  400. 16:26But I've been always like I've always
  401. 16:29been on this side where I'm just trying
  402. 16:31to find the opportunity where you know
  403. 16:34it helps me to build an app pretty
  404. 16:36quickly so that I can focus on marketing
  405. 16:38and you know focus on different things.
  406. 16:41Now since AI can build anything which is
  407. 16:44not really true at the moment um even
  408. 16:47though I think it's going to be at some
  409. 16:49point but at the moment it's not really
  410. 16:51true. It cannot build anything. It can
  411. 16:53build something to start with but as the
  412. 16:56projects get larger and larger it kind
  413. 16:58of sucks. So I think it's still
  414. 17:00important to know the fundamentals of
  415. 17:03programming but if you wanted to build a
  416. 17:05simple project I don't know an MVP I
  417. 17:08think AI can help. And with this
  418. 17:11tutorial, hopefully you will learn how
  419. 17:13to build an MVP.
  420. 17:15Okay, so with that said, I would
  421. 17:17definitely recommend you to get a $20 a
  422. 17:21month plan in one of these, either
  423. 17:23Cloud, Codex, or Cursor. I think for
  424. 17:27now, my favorite could be Codex. Even
  425. 17:30though I've been using Cloud for a very
  426. 17:32long time with the latest model they
  427. 17:34have, which is GPT6, I think you can go
  428. 17:37with Codex just to test this out. And I
  429. 17:40think Codex is cheaper than cloud or
  430. 17:43cursor. Okay, so with that said, now
  431. 17:45let's jump back into VS Code. Go ahead
  432. 17:49and get this extension. And I think I
  433. 17:51need to restart the extension.
  434. 17:54And you'll just press twice to this
  435. 17:58empty area. From here, you can get Cloud
  436. 18:00or Codeex. Let's say you're using Cloud.
  437. 18:03This is the interface that you will
  438. 18:05have. Now we can talk with cloud and you
  439. 18:08can you know update the model. Let me
  440. 18:11actually maximize this like you can
  441. 18:13update the mode and initially we'll use
  442. 18:15the plan mode. I'm going to get into
  443. 18:17that and you can update the model you
  444. 18:19know you can add the effort etc. And we
  445. 18:23have similar thing for codex. This is
  446. 18:25what I'll be using. So just go ahead and
  447. 18:28press add. Now here you can again change
  448. 18:31the model. The latest one at the time
  449. 18:33that I'm recording this video is this
  450. 18:35one. And you can update the effort as
  451. 18:38well.
  452. 18:40So here I'll just give the full axis so
  453. 18:42that I don't really get um
  454. 18:48so one thing I want to mention is that
  455. 18:50here the extra high and even like ultra
  456. 18:55you go is better but it's going to be
  457. 18:57taking much more time than it should. So
  458. 19:00here, usually I would go with medium or
  459. 19:03high. If I'm building something a
  460. 19:06feature that is not really that
  461. 19:08important, but if I'm trying to build
  462. 19:10something that should work exactly as I
  463. 19:12want, then I would probably go with
  464. 19:14extra high or even ultra. But just know
  465. 19:17that it will take much more time if you
  466. 19:19go with one of these. So in this
  467. 19:21tutorial, I think to start with, I'll go
  468. 19:23with medium. And here for the
  469. 19:26permissions, I'll just give the full
  470. 19:27access so that it doesn't really ask me
  471. 19:29questions all the time. So here I
  472. 19:32basically say, hey Codex, whatever you
  473. 19:34would like to do, just do it. Don't ask
  474. 19:36me.
  475. 19:38U just be careful with it. But usually
  476. 19:41you'll just give the full access
  477. 19:42anyways. Okay. Now to start with, first
  478. 19:46thing I'll be doing is opening up my
  479. 19:49terminal with Ctrl J. And I think now
  480. 19:52application is running. We had an error,
  481. 19:55but it just fixed by itself. Here you
  482. 19:58can tell if you press R, it's going to
  483. 20:01reload the app. And we have this default
  484. 20:04project coming from Expo. Now, of
  485. 20:06course, we're going to delete
  486. 20:08everything. And let's actually do it.
  487. 20:10You would like to open up your terminal.
  488. 20:12So, kill this with Ctrl C. Clear this
  489. 20:15up. And there's a command that we can
  490. 20:17run. So, it's going to be mpm run reset-
  491. 20:21project. This is going to basically take
  492. 20:23all these folders and files that we
  493. 20:26don't really need and it's going to
  494. 20:27delete them. So now we have some
  495. 20:29components that we don't really need,
  496. 20:31some constants, hooks, so on and so
  497. 20:34forth. So just go ahead and run this.
  498. 20:36Then press enter once again. Here you
  499. 20:38can tell everything has been deleted and
  500. 20:41it has put it under an example folder
  501. 20:43which I don't really need. So I'm going
  502. 20:45to delete that one as well. Now let's
  503. 20:47run this app with MPX Expo.
  504. 20:51This is what we had initially. Right?
  505. 20:53Now, if you press R, it's going to
  506. 20:55reload it. And notice how we have much
  507. 20:58more simpler application. Right? This is
  508. 21:01literally just one screen with a simple
  509. 21:04text. Okay. Now, with this in mind,
  510. 21:07let's go ahead and plan a project. And
  511. 21:10in this tutorial, I'd like to use sorry,
  512. 21:13I'd like to build a social media
  513. 21:15application kind of like Instagram, but
  514. 21:18of course much more simpler than that.
  515. 21:21All right, so I have accidentally paused
  516. 21:22the video, but I was just saying that we
  517. 21:24would like to build an Instagram clone
  518. 21:27that is much more simpler, right? So
  519. 21:30we'll have maybe things like posting
  520. 21:32photos, commenting, having a profile
  521. 21:35screen, things like that. Um, and here's
  522. 21:38the workflow that we're going to be
  523. 21:40using. This is what I used to build my
  524. 21:42own mobile application as well. And I'll
  525. 21:45try to break it down as we go through
  526. 21:47this course. So, the very first thing
  527. 21:49that you need to do is planning your
  528. 21:52project. This is a step that a lot of
  529. 21:54beginners just skip. They immediately
  530. 21:56jump into coding because they're like
  531. 21:59really excited. But it almost always
  532. 22:02fails because if you don't plan
  533. 22:04everything then at some point AI will
  534. 22:07start guessing even like at the start.
  535. 22:10So what you'd like to do is kind of like
  536. 22:12giving the AI the context what kind of
  537. 22:15project that you would like to have you
  538. 22:17know like define your idea goals
  539. 22:19features pages user flow and text tag so
  540. 22:23that it doesn't really guess all these
  541. 22:25tools and features and for this I have a
  542. 22:29really really good prompt that is
  543. 22:31working every single time so I'm going
  544. 22:33to leave this in the description just go
  545. 22:36ahead and copy this entire thing and you
  546. 22:38can pause the video and read it.
  547. 22:40Basically, I'll try to simplify it. We
  548. 22:43ask AI to interview us about every
  549. 22:46single thing about this project so that
  550. 22:49it doesn't really guess anything and we
  551. 22:51are on the same page.
  552. 22:53Okay. So, once again, you can read this
  553. 22:55entire thing if you're interested, but
  554. 22:58I'm just going to copy this and go into
  555. 23:00cloud, sorry, into VS Code and into
  556. 23:03Codex. Here, you would like to select
  557. 23:05the mode. Let me find it. It should be
  558. 23:09plan mode. And to select plan mode, you
  559. 23:12need to press this plus. And then go
  560. 23:14ahead press the plan mode. Now paste the
  561. 23:17prompt first. And then here we say we
  562. 23:20are about to describe you the project.
  563. 23:23And here now I'll just go ahead and
  564. 23:25explain everything. Once I have it, I'll
  565. 23:27just be right back. So here I have
  566. 23:29paused the video and try to explain it
  567. 23:31to Codex. And here is my entire prompt.
  568. 23:34So here I said I want to build a simple
  569. 23:37Instagram style social media application
  570. 23:40using clerk for authentication and
  571. 23:42convex for the backend and database. I'm
  572. 23:45going to get into both of these
  573. 23:46technologies but basically this is the
  574. 23:48text tag to get started with. And then
  575. 23:51here I said users should be able to sign
  576. 23:54up and log in with Google or Apple. They
  577. 23:57should be able to create images or
  578. 24:00videos as posts, follow and unfollow,
  579. 24:03you know, like and comment. You can read
  580. 24:05the rest. And there's also sending
  581. 24:08direct messages, right? And they can
  582. 24:10also view and edit their profile. And
  583. 24:13here I say the app should have four main
  584. 24:16tabs which are going to be home,
  585. 24:18messages, explore, and profile. Now
  586. 24:21talking about tabs, let's go ahead and
  587. 24:24take a look at the native tabs in Expo.
  588. 24:27I'll just say native tabs and visit it
  589. 24:30in the expo documentation. Just scroll
  590. 24:32to the bottom. So these are the tabs.
  591. 24:34This is what I mean by tabs. And native
  592. 24:37tabs are giving this iOS liquid glass
  593. 24:41effect. Okay? So you don't really need
  594. 24:43to restyle it or generate it from
  595. 24:46scratch. There is a component called
  596. 24:48native tabs and it's going to give you
  597. 24:51all these features out of the box. If
  598. 24:55you're interested, you can take a look
  599. 24:56at the entire documentation. But this is
  600. 24:59something that we would like to use in
  601. 25:02here. Let's actually also say
  602. 25:06something like we will use native tabs
  603. 25:11and also for styling let's say
  604. 25:16we want to use something like native
  605. 25:19wind. So native wind is basically
  606. 25:21tailwind CSS but for react native okay
  607. 25:25for mobile application. Okay so you got
  608. 25:28the point. First off, you're going to
  609. 25:30get the plan prompt from right here,
  610. 25:33right? And then you would like to
  611. 25:35describe your project.
  612. 25:38Um, this is exactly what I have done. Of
  613. 25:40course, this should be a lot more
  614. 25:42detailed if you can, but for this demo
  615. 25:44purposes, I think that's fine. And here
  616. 25:47we'll go ahead and run this. This will
  617. 25:50ask a couple of different questions in
  618. 25:53like couple of different batches. First,
  619. 25:55we're going to get maybe like four
  620. 25:57questions. We'll answer all of them and
  621. 25:59then we're going to get another batch of
  622. 26:01four and then another one until AI has
  623. 26:05every single thing the entire context
  624. 26:08once we have it plan will be ready then
  625. 26:10we can actually start building the
  626. 26:13project
  627. 26:15and instead of building immediately what
  628. 26:18I'd like to do is generating the UI
  629. 26:20design depending on that plan that we
  630. 26:23generated and I'm going to get into that
  631. 26:26again I'll give you some prompts to
  632. 26:28generate the UI design. Okay, so I am
  633. 26:31back in VS Code. Here we got the very
  634. 26:34first batch of questions. We have three
  635. 26:36different questions. Here it says, who
  636. 26:38is V14 and what counts as a successful
  637. 26:42first release. Now, most of the time you
  638. 26:45would like to go with the recommended
  639. 26:47answer, but there will be some places
  640. 26:49where you'd like to actually choose a
  641. 26:52different like different answers than
  642. 26:54recommended and even sometimes add your
  643. 26:57own description. But in this case, I'll
  644. 27:00just say this should be just a working
  645. 27:02demo and I'll go with the recommended
  646. 27:04option. Then here it says like should we
  647. 27:08build it for both iOS and Android? Here
  648. 27:10I only want to have it for iOS first.
  649. 27:13So, I'm going to say, you know, like
  650. 27:15just go ahead and select this option. If
  651. 27:17you wanted to, you can select this one
  652. 27:19as well, but this is the one that I'll
  653. 27:21have. And then let's say public to
  654. 27:25members. Yes, everyone should be able to
  655. 27:27use it as long as they are signed in.
  656. 27:31Okay, so now AI will keep these answers
  657. 27:34in memory and then it's going to ask us
  658. 27:36another batch of questions. So, I think
  659. 27:39I'll just go through and answer every
  660. 27:41single one of them. Once it is done,
  661. 27:43I'll just be right back. And instead of
  662. 27:45answering them off camera here, I'll
  663. 27:47just do it right here so that you can
  664. 27:49see the type of questions that I'm
  665. 27:51getting. For image creations, let's just
  666. 27:54say single upload only so that we can
  667. 27:57keep it simple. So, here it says what
  668. 28:00users should see once they sign up. will
  669. 28:02say they have to choose a username and
  670. 28:05then here I'll just say home header
  671. 28:07button
  672. 28:11what comment and deletion behavior do
  673. 28:13you want for the demo let's just have
  674. 28:16flat comments and own deletion you can
  675. 28:18go a lot more complex but for the
  676. 28:21initial version that's not really what
  677. 28:23you would like to do so here again you
  678. 28:26can read the question this will be my
  679. 28:28answer
  680. 28:30and then it says what media limits are
  681. 28:32accept acceptable for this demo. Let's
  682. 28:33just say images up to 10 megabytes and
  683. 28:36video up to 30 seconds and 50 mgabytes.
  684. 28:41We don't really want to allow too large
  685. 28:43images and videos at the start.
  686. 28:50Um here it says can v1 exclude push
  687. 28:53notifications. Yeah, absolutely. We
  688. 28:55don't really want to have payments push
  689. 28:56notifications for initial version. I'll
  690. 29:00just say yes. trusted demo. We don't
  691. 29:02really want to build something really
  692. 29:04complex from the start. And this is what
  693. 29:06I have done with my own mobile app as
  694. 29:09well. Like instead of building every
  695. 29:11single feature from the start, I
  696. 29:14basically um started with the simple
  697. 29:17version which is V1 right. Just an MVP.
  698. 29:20So I said at least users should be able
  699. 29:23to take a photo and calculate their
  700. 29:26calories with AI. Once I had it, then I
  701. 29:30added bunch of more features, right? You
  702. 29:33don't really want to build everything
  703. 29:34from the start. From my experience, this
  704. 29:36has been working really nice. And this
  705. 29:39is what I would recommend. I would say
  706. 29:42um here we'll just say we'd like to
  707. 29:44build our own custom native screen
  708. 29:47instead of using the cleric UI because
  709. 29:49I'd like to show you how to generate
  710. 29:51something from the UI design that we're
  711. 29:54going to get from AI. Okay. So I'll go
  712. 29:57with this option
  713. 29:59and we would like to use convex
  714. 30:01throughout the project. Let's say online
  715. 30:04first and there should be retries as
  716. 30:06well. So here I have another question
  717. 30:09about the theme. Instead of answering
  718. 30:11any of these like I'll just put my own
  719. 30:13kind of like description or I'll just
  720. 30:15try to explain something like for now
  721. 30:19only light mode and I'm going to say for
  722. 30:22colors I'll provide a design reference
  723. 30:28later at some point
  724. 30:31because we don't really want it to use
  725. 30:33some you know like a color palette like
  726. 30:36blue it says but I don't really want to
  727. 30:38have it later at some point. I'll
  728. 30:40provide a pre-made design. So, I'll just
  729. 30:43say use that one.
  730. 30:49So, let's say it should be tap to play I
  731. 30:53think. Yeah, it is recommended. I'll
  732. 30:54just go with this one.
  733. 30:57Now, there is something called
  734. 30:58development build. And let me try to
  735. 31:00explain pretty quickly before I answer
  736. 31:03this. So, here you can tell we are
  737. 31:05running our application, right? But it
  738. 31:08is within the expo go. So this is the
  739. 31:11tool that expo provides you but this is
  740. 31:14for testing purposes right. This is for
  741. 31:17learning purposes. When you're building
  742. 31:19an actual application then you would
  743. 31:22like to create a development build
  744. 31:24because within this you cannot really
  745. 31:26have every single feature or some native
  746. 31:29modules doesn't really run within the
  747. 31:32expo. Okay. So once again in simple
  748. 31:35terms this is for testing purposes for
  749. 31:38learning demos. If you want to build a
  750. 31:40real project then you'd like to use
  751. 31:42something called development build. And
  752. 31:45basically what this does in simple terms
  753. 31:47is that it's going to take your
  754. 31:49application right and instead of running
  755. 31:51it within the expo go it will create
  756. 31:54this kind of a standalone application.
  757. 31:56Okay. And we're going to see it. I know
  758. 31:59that this sounds confusing for the first
  759. 32:01time for beginners, but I think that's
  760. 32:04completely fine. We'll see how that
  761. 32:06work. So, you would like to use a
  762. 32:07development build if you are building a
  763. 32:10real project.
  764. 32:12So, that's how I can explain it in
  765. 32:14simple terms. So, we have more
  766. 32:16questions. I'll just go ahead and choose
  767. 32:18the recommended ones
  768. 32:22so that we don't really waste too much
  769. 32:23time. But I think you're able to see the
  770. 32:26workflow. You will have all these
  771. 32:28questions so that AI doesn't really
  772. 32:31guess any feature but instead you are
  773. 32:33the one that deciding all of these. Now
  774. 32:36here it says what should a brand new
  775. 32:38user see when they follow no one. So
  776. 32:41basically when you sign up for the first
  777. 32:43time you know you are not following
  778. 32:45anyone and what you what should you see
  779. 32:47on the screen. So here you can go with
  780. 32:50the empty state. I'll just say seated
  781. 32:53demo content which means basically add
  782. 32:56some you know fake content or you know
  783. 32:58test accounts so that they can see some
  784. 33:01posts. I think this is going to be
  785. 33:03better especially for this tutorial. If
  786. 33:05I was building this as a real project I
  787. 33:08would probably go with the honest empty
  788. 33:10states. But here I'm going to select
  789. 33:12this one. And here it says should
  790. 33:15messages include unread indicators?
  791. 33:18Um, I think for now we'll just leave it
  792. 33:20as bare chat list. Maybe at some point
  793. 33:24we can add these features but for now
  794. 33:26we'll just leave it simple and choose
  795. 33:28this option. And here it says will you
  796. 33:31able to so this is the other question
  797. 33:34that I just got and this will be my
  798. 33:36answer here. I'll say for now we will
  799. 33:39just use clerk authentication with
  800. 33:41public key and this is something that
  801. 33:44we're going to get into. Basically,
  802. 33:45clerk will give you an environment
  803. 33:47variable and it's going to be our public
  804. 33:50key that we can use in development. I'll
  805. 33:53go ahead and submit this as well. Off
  806. 33:55camera, I have answered some more
  807. 33:57questions. And here's the entire thing.
  808. 33:59You can pause the video and read it. If
  809. 34:02you're building a real project, this is
  810. 34:04exactly what I would do. And here now it
  811. 34:07says, "Ready for me to turn this into an
  812. 34:09implementation plan." Here I'll just say
  813. 34:12for now go ahead and create this under a
  814. 34:15file a markdown file called plan.md
  815. 34:19kind of like readme.md. But here I
  816. 34:22should be able to at least see it.
  817. 34:25So here I'll just say for now create a
  818. 34:30plan MD file with all the details
  819. 34:36so that later we can you know implement
  820. 34:40this step by step. So I'm going to run
  821. 34:44this. It will create that plan MD file
  822. 34:46and after this I'm going to leave this
  823. 34:48lesson right here. In the next lesson
  824. 34:50we're going to get started with the UI
  825. 34:52design. And for this once again I'll
  826. 34:55provide a prompt that will help us to
  827. 34:58generate really nice looking UI designs.
  828. 35:01And once we have the design then we'll
  829. 35:03go into codex and we're going to break
  830. 35:05it into features like first we're going
  831. 35:07to build the authentication and then you
  832. 35:10know let's say the database connection
  833. 35:12so on and so forth and I'm going to get
  834. 35:14into that in the next lesson. For now
  835. 35:17let's just wait for this to create the
  836. 35:19plan.
  837. 35:24So here it says this is the entire plan.
  838. 35:26It is trying to still write it. Once it
  839. 35:28is done, I believe we're going to get
  840. 35:30the plan MD file. All right. So here we
  841. 35:34have the entire plan. You can take a
  842. 35:36look at it. You will also have your own
  843. 35:37plan. Here it says, do you want me to
  844. 35:40implement this? And I say for now only
  845. 35:42create the file later. I'll ask for
  846. 35:46implementation.
  847. 35:48So here turns out it can't create the
  848. 35:50plan. MD while we are in the plan mode.
  849. 35:53So here it says just deactivate it. If
  850. 35:55you press this plan mode is gone. And
  851. 35:58here I'll just say I or I'll just say do
  852. 36:02it now.
  853. 36:04So within the next 2 minutes it has
  854. 36:06created the plan.md with the entire
  855. 36:09details.
  856. 36:11You will have the exact same thing
  857. 36:13depending on the context that you given
  858. 36:15to AI. Okay. So I think we can end this
  859. 36:19section right here. But just before we
  860. 36:21do so, what I'd like to do is committing
  861. 36:23everything and publishing it to GitHub.
  862. 36:26Now, I'm going to go ahead and close
  863. 36:28this. If you wanted to, you can ask AI
  864. 36:30to do it for you, but for the first
  865. 36:32time, I'll just do it manually here. Uh,
  866. 36:35first off, let's go into GitHub. If you
  867. 36:38don't have an account, go ahead and
  868. 36:40create one. It's completely free to get
  869. 36:42started with. And then just press new,
  870. 36:45create a new repository. Then you will
  871. 36:47be on this screen. You need to give it a
  872. 36:50name here. In my case, I think I'll go
  873. 36:52with something like so. I think I'll go
  874. 36:55with this name. And for now, I'm going
  875. 36:57to make it private, but at the time that
  876. 36:59you are watching this video, it's going
  877. 37:01to be public and free. But for now,
  878. 37:03we'll go with private. Yeah. Other than
  879. 37:05this, you can leave everything as it is
  880. 37:07and create the repository.
  881. 37:10Now, it's going to give us a command,
  882. 37:12which is this part. We're going to copy
  883. 37:14it and paste it into our terminal. So
  884. 37:16I'm going to first copy this and go into
  885. 37:19VS code. First I'm going to stage
  886. 37:22everything. So under this tab,
  887. 37:25press this button where it says stage
  888. 37:27all the changes and then let's create a
  889. 37:30commit message by pre by pressing this
  890. 37:33button. So AI will create the message.
  891. 37:37Technically you can type anything but it
  892. 37:40is just better to use this feature of
  893. 37:42AI. And now we're going to commit this.
  894. 37:45And let's try to publish the branch, I
  895. 37:47would say. But first, we need to, I
  896. 37:49think, go into our terminal, kill this,
  897. 37:54clear this up, and then paste this in
  898. 37:56that we just copied. Now, what this does
  899. 37:59is basically taking all these local
  900. 38:02changes that we have in our laptop, in
  901. 38:04our machine, and push it to the
  902. 38:08to the repo that we just created. So
  903. 38:11notice how once this is done
  904. 38:13successfully, you'll be able to reload
  905. 38:15this and see everything
  906. 38:18like they are literally right here.
  907. 38:21Okay, so we had all these local changes.
  908. 38:23They are now live on GitHub.
  909. 38:27Okay, so I think I'm going to leave this
  910. 38:29lesson right here. Remember this is one
  911. 38:32of the most important steps when you're
  912. 38:34building an application. So I think you
  913. 38:37should spend a lot of time while
  914. 38:39planning your application. So instead of
  915. 38:41just jumping into coding immediately,
  916. 38:44you should you should spend a lot of
  917. 38:45time and talk with AI just like what we
  918. 38:49have done in this lesson. Okay. So with
  919. 38:51this I'm going to see you in the next
  920. 38:53lesson where we will generate the UI
  921. 38:55design. All right. So this is where we
  922. 38:57left in the previous lesson. We have
  923. 38:59planned our project. Now it is time to
  924. 39:01get started with the UI design. Now for
  925. 39:04this I already have bunch of different
  926. 39:06prompts that I used that give me really
  927. 39:08really nice looking designs and now
  928. 39:10we're going to use a similar thing. So
  929. 39:12here we have one design for AI trip
  930. 39:15planner application. We have another one
  931. 39:18for recipe app and this is the prompt
  932. 39:20that I used to get that design. Same
  933. 39:22thing for a dating app. Then the actual
  934. 39:25UI design for my mobile application and
  935. 39:28then at the end for the dental
  936. 39:30application UI design. You can find this
  937. 39:33link in the description. I'm going to
  938. 39:35leave it. Um, let's scroll to the top
  939. 39:38and basically I'm going to copy this
  940. 39:40entire prompt. But now remember this is
  941. 39:43for the trip planner application but we
  942. 39:46are building for something like a social
  943. 39:48media application. So what we'll be
  944. 39:50doing is first copying this prompt going
  945. 39:53into chat GPT or Gemini whatever you're
  946. 39:56using paste the prompt and then we'll
  947. 39:59say depending on our plan which is right
  948. 40:02here. So copy it we'll say depending on
  949. 40:05our plan give us a prompt like this one
  950. 40:09and once we have the prompt we will
  951. 40:10paste it into a new chat that will
  952. 40:13generate the image for us. So, I'm going
  953. 40:15to go ahead paste this in, which is my
  954. 40:18plan.
  955. 40:20And then here, I can say something like,
  956. 40:23depending on the plan that I have, I
  957. 40:26want you to generate me a prompt like
  958. 40:28this that will generate a UI design.
  959. 40:34Okay.
  960. 40:36Once again, basically it's going to read
  961. 40:38our plan and depending on the plan, it
  962. 40:40will give us a prompt like this so that
  963. 40:43we can go into a new chat and generate
  964. 40:46an image. And there is a new model that
  965. 40:49GPT just released which is image
  966. 40:532.5. It looks really really nice. I
  967. 40:56already tried this out. Um let's just
  968. 40:58say create image. And then once we have
  969. 41:02the prompt, I'm going to copy it and
  970. 41:04paste it. But looks like this is trying
  971. 41:06to generate the image. Well, not really.
  972. 41:09It wasn't an image. So, it was a prompt
  973. 41:12just like what we asked. So, I'm going
  974. 41:14to go ahead copy this entire thing
  975. 41:19like up until here. And I'm going to
  976. 41:21paste it right here.
  977. 41:26All right. So, after some time, this is
  978. 41:28the end result that I got from GPT. I
  979. 41:30think the UI itself is looking pretty
  980. 41:32clean and crisp. But there are a couple
  981. 41:34of different things that I didn't really
  982. 41:36like, which is the icon. So here
  983. 41:39instead, I'd like to have a camera icon.
  984. 41:42And I will also say that, you know, this
  985. 41:44is the design system. I wanted to
  986. 41:46upscale it. Here is my prompt. You can
  987. 41:49do a similar thing. So I said, "This is
  988. 41:51a good start, but I want you to update
  989. 41:53the logo from the sea letter to a camera
  990. 41:57icon. similar to Instagram but a little
  991. 41:59bit different. So do not copy it
  992. 42:01exactly. Also upscale the design system
  993. 42:04as a separate image. So I'm going to go
  994. 42:06ahead and run this. Now once we have the
  995. 42:10design system, we'll go into VS Code.
  996. 42:13Let's create a folder called design. And
  997. 42:16within this, we're going to have the
  998. 42:18design system. We'll attach it. And we
  999. 42:21will also have each of these screens
  1000. 42:24upscaled one by one. So this is my
  1001. 42:27workflow. Let me show you that. So we
  1002. 42:29will generate the full UI design which
  1003. 42:32is kind of like what we have done right
  1004. 42:34here. Right? And then we're going to
  1005. 42:36upscale each screen like one screen at a
  1006. 42:39time. Let's say first we will upscale
  1007. 42:41the authentication and then I don't know
  1008. 42:44like the onboarding profile so on and so
  1009. 42:46forth. And we are going to build them
  1010. 42:49one by one. I think we can start with
  1011. 42:51the authentication screen. And I believe
  1012. 42:55right here we should have the oath
  1013. 42:58screen. Let me try to zoom in. Yeah, but
  1014. 43:01like this doesn't really good. Uh this
  1015. 43:04doesn't really look that good. I think
  1016. 43:06this text is unnecessary.
  1017. 43:08But yeah, like we'll just try to follow
  1018. 43:12up with the GPT couple of more times
  1019. 43:14until we get something that we actually
  1020. 43:16like. Now, this is the thing about AI.
  1021. 43:19Most people just try to get the best
  1022. 43:21result in the first shot and if they
  1023. 43:23don't get it, they kind of like give up.
  1024. 43:25They're like AI sucks. It's not really
  1025. 43:28good. But dude, like it's just AI at the
  1026. 43:31end of the day. You need to follow up
  1027. 43:32couple of more times, give it a
  1028. 43:34reference, you know, so you can get
  1029. 43:37something that you actually like. In
  1030. 43:39this case, I didn't really like the
  1031. 43:40authentication screen design. So I'm
  1032. 43:43going to follow up in a second. All
  1033. 43:45right. So after some time this is the
  1034. 43:47image that I got here. You can tell the
  1035. 43:50logo has been updated and then I think
  1036. 43:53we also have the design system which is
  1037. 43:55kind of like upscaled. So we can copy
  1038. 43:57this and paste it into VS code in a
  1039. 44:00second. But here I think you know as I
  1040. 44:03already told you I didn't like the
  1041. 44:05authentication UI screen. So here you
  1042. 44:08can tell this is my prompt. I just said
  1043. 44:10give me a different variation and
  1044. 44:12upscale that image. also upscale the
  1045. 44:15design system. So, for some reason,
  1046. 44:17initially I didn't see this one. Um, but
  1047. 44:20yeah, I'm going to go ahead and copy
  1048. 44:22this image
  1049. 44:24and I'll paste it right here and let's
  1050. 44:27just say design system reference.
  1051. 44:32Now, the reason that we generated this
  1052. 44:34and also the entire design is because
  1053. 44:38like our AI agent can take a look at it
  1054. 44:41and see all the components, all the
  1055. 44:43colors like fonts, literally everything
  1056. 44:46that it needs because here it's going to
  1057. 44:48be harder to find it and it doesn't
  1058. 44:50really include everything. And now I'm
  1059. 44:53going to copy this image as well. Let's
  1060. 44:55go into VS Code. I'm going to paste it
  1061. 44:57right here. And let's say this is the
  1062. 45:00oath screen design or you can just say
  1063. 45:05reference as well. This is what I
  1064. 45:06usually like to call it. Now with this
  1065. 45:09we can literally go ahead and ask AI to
  1066. 45:12build this design. And for this again I
  1067. 45:15have a kind of like a special loop that
  1068. 45:17I'm going to show you in the incoming
  1069. 45:19minutes. But for now that's the
  1070. 45:21authentication screen. After
  1071. 45:23authentication what we can create. Let's
  1072. 45:25take a look at it.
  1073. 45:29um we can create the profile screen or
  1074. 45:32the home screen, but for now I'm just
  1075. 45:34going to copy this entire image. So I
  1076. 45:37was just saying that I'm going to copy
  1077. 45:38this image and I'll go into VS Code
  1078. 45:41right here. I'm going to paste this and
  1079. 45:43I'll say the design reference or let's
  1080. 45:46just say app design reference. Okay,
  1081. 45:51now this is the entire design, right?
  1082. 45:53This is the design system and this is
  1083. 45:56the authentication screen. Anytime that
  1084. 45:58we want to build one screen at a time,
  1085. 46:01we'll be using you know this kind of
  1086. 46:04images. We are going to upscale every
  1087. 46:06single screen. Now you might be asking
  1088. 46:08how can we get this demo image so that
  1089. 46:10we can use it in the authentication
  1090. 46:12screen. Well that's a nice question.
  1091. 46:14What I'll be doing is going into GPT and
  1092. 46:19I'll say
  1093. 46:22I want you to generate me the demo image
  1094. 46:24that you're using in the authentication
  1095. 46:27screen.
  1096. 46:31Okay. So it's going to generate that
  1097. 46:32image so we can use it later in the
  1098. 46:36authentication screen. So I don't know
  1099. 46:39why but initially it has generated this
  1100. 46:41image which is something that I don't
  1101. 46:43really like because this is what we'd
  1102. 46:45like to use in the authentication
  1103. 46:47screen. So I took this screenshot. If
  1104. 46:49you're on Mac it's going to be command
  1105. 46:51shift control and 4. Okay. So command
  1106. 46:55control shift and 4 is going to allow
  1107. 46:58you to take the screenshot and then just
  1108. 47:01paste it right here. So I said I I meant
  1109. 47:04this one and then I also said you know
  1110. 47:07make the background to be transparent so
  1111. 47:10that it matches the white background of
  1112. 47:12the application.
  1113. 47:14Okay. So basically we don't really want
  1114. 47:16to have this background on the image.
  1115. 47:19So this is the end result that I got.
  1116. 47:22I'm just going to copy it and paste it
  1117. 47:25right here. Let's actually put it under
  1118. 47:27the assets images. Ctrl +V and let's say
  1119. 47:33oath demo image. Later in the video,
  1120. 47:37we'll be using it and I'll show you how
  1121. 47:38to attach it to the Codex chat. Okay, so
  1122. 47:43that's my design workflow in simple
  1123. 47:46terms. Now, I could have made this a lot
  1124. 47:49longer than this. I can explain every
  1125. 47:51single detail like how we can create
  1126. 47:54every single screen, how we can upscale
  1127. 47:56them, but that's really the basic gist
  1128. 47:59of it. Now, you need to do the same
  1129. 48:01thing over and over again to generate
  1130. 48:04all these images. And actually, like
  1131. 48:07later in the video, you're going to see
  1132. 48:08that we don't really need to create all
  1133. 48:10of them at some point because we're
  1134. 48:13going to have enough design references
  1135. 48:15and Cloud will be able to build the
  1136. 48:17other screens just by looking at this
  1137. 48:20image. Okay. So, with this in mind, I
  1138. 48:23think I'm going to end this section
  1139. 48:24right here. This has been like 10 minute
  1140. 48:27lesson, I believe, or something like
  1141. 48:29that. 10 to 15 minutes. I'm going to go
  1142. 48:32ahead and stage everything. We only have
  1143. 48:35some images and we're going to say get a
  1144. 48:38commit message.
  1145. 48:41Once we have the commit message, we're
  1146. 48:43going to go ahead and commit and we're
  1147. 48:45going to say sync this up. Basically,
  1148. 48:47it's going to take these local changes
  1149. 48:49and push it to our GitHub account. Let
  1150. 48:52me actually show you that.
  1151. 48:56So, it was called as Codex Graham. So,
  1152. 48:59I'm going to visit that repo. And here
  1153. 49:01you can tell we just got those changes
  1154. 49:03just now.
  1155. 49:05Okay. So with this I believe I'm going
  1156. 49:08to see you in the next lesson. All
  1157. 49:10right. So in the previous lesson we have
  1158. 49:12generated the design for authentication
  1159. 49:15screen. Now let's go ahead and see how
  1160. 49:17we can take this and convert it into
  1161. 49:19reality. So there is a loop that I
  1162. 49:22always use which is basically we ask
  1163. 49:25cloud to take a screenshot from the
  1164. 49:28simulator. Right? So let's say this is
  1165. 49:30our authentication screen. We say take a
  1166. 49:33screenshot and compare it to the end
  1167. 49:35result until they're identical. Go ahead
  1168. 49:38and do it, right? So this is like a
  1169. 49:41loop. First we say go ahead and build
  1170. 49:44the authentication screen. And here is
  1171. 49:46the workflow. Take a screenshot from the
  1172. 49:49simulator and compare it to the actual
  1173. 49:51design. And if it is identical, just
  1174. 49:54stop. If it is not, then keep going.
  1175. 49:57Right? So this is like a loop. It is
  1176. 49:59going to run a couple of times and once
  1177. 50:01it is done once it is identical we'll
  1178. 50:04just say okay um I was saying once it is
  1179. 50:07identical just move on with the next
  1180. 50:09feature or the next screen whatever that
  1181. 50:11is okay so with this in mind let's go
  1182. 50:14ahead and talk with claude
  1183. 50:16sorry with codex in this case I'm not
  1184. 50:19using claude but you got the point here
  1185. 50:22I think I'll just open up a new chat
  1186. 50:27and here I'll just try to explain it.
  1187. 50:29All right, so I just paused the video
  1188. 50:31and explained it. You can pause the
  1189. 50:33video and read it. Basically, this is
  1190. 50:35exactly what I just explained. And I'm
  1191. 50:36going to go ahead and run this. And let
  1192. 50:39me just double check if I'm running the
  1193. 50:41application. I think I don't. So, I'm
  1194. 50:44just going to say MPX Expo.
  1195. 50:49And I'll press R or you should press I
  1196. 50:52if it is not running in the simulator.
  1197. 50:55Now, it is right here as you can tell.
  1198. 50:57Now while this is trying to build it, we
  1199. 50:59can create the we can create the clerk
  1200. 51:02application. So clerk is going to be the
  1201. 51:05authentication service that we'll be
  1202. 51:07using. It is completely free to get
  1203. 51:09started with and you don't really need
  1204. 51:10to pay anything like you don't even need
  1205. 51:13to put in your credit card information.
  1206. 51:16So just go ahead and create an account
  1207. 51:18and then right here you can create a new
  1208. 51:20application. In my case I have bunch of
  1209. 51:23different apps but let's let's start
  1210. 51:25from scratch. Let's give it a name. I'll
  1211. 51:27just say Codex Creme. You can call this
  1212. 51:30anything. And then just add the sign-in
  1213. 51:32options that you would like to have. In
  1214. 51:34my case, I'm going to disable the email,
  1215. 51:37but I'll just have Google as well as
  1216. 51:39Apple. Now, one thing that I want to
  1217. 51:41mention, if you include like if you
  1218. 51:44include something like Google
  1219. 51:46authentication, then you have to have
  1220. 51:48Apple authentication as well, right? So
  1221. 51:51basically Apple tells you that if you
  1222. 51:54include any other social integrations
  1223. 51:57for the authentication then you have to
  1224. 51:59have Apple as well otherwise your
  1225. 52:02application will be rejected and we'll
  1226. 52:04go ahead and activate both of them in
  1227. 52:06clerk dashboard and we'll say create the
  1228. 52:09application.
  1229. 52:12Okay, so here they have bunch of
  1230. 52:14different SDKs lit literally for
  1231. 52:16everything. But in our case, we're going
  1232. 52:18to get the expo SDK. Now you can copy
  1233. 52:22the prompt and just let AI to set this
  1234. 52:25up. And this is actually what I'll be
  1235. 52:27doing. But if you would like to see the
  1236. 52:29entire manual setup, then just press
  1237. 52:31here. Then you can go through it. What
  1238. 52:34I'll be doing is just getting the
  1239. 52:36environment variable. So I'm going to
  1240. 52:37copy it and I'm going to go right here.
  1241. 52:41create the env file
  1242. 52:46and I'll just paste this in. So we have
  1243. 52:48a publishable key. Basically with this
  1244. 52:51key we can connect to this application
  1245. 52:55that we just created. You can think of
  1246. 52:57it in that way. And I think I'm going to
  1247. 53:00copy this prompt. But I'd like to
  1248. 53:02implement authentication a bit later in
  1249. 53:04the video. For now let's just set up the
  1250. 53:07UI design. and I'll just be right back
  1251. 53:09once this is completed. All right, so
  1252. 53:11after around 4 minutes, we got the end
  1253. 53:14result. I think this is looking pretty
  1254. 53:16similar to the design that we attached.
  1255. 53:19Let me just actually find it.
  1256. 53:23Okay, so it is almost identical. Like we
  1257. 53:26have the three dots which is right here,
  1258. 53:28icon, logo, um literally everything.
  1259. 53:33What I'd like to get rid of is maybe
  1260. 53:35this text. I think it is just
  1261. 53:38unnecessary. So I can search for it and
  1262. 53:40delete it myself.
  1263. 53:43A social app trusted testers. So let's
  1264. 53:47find it.
  1265. 53:52And I'll just delete this text. I think
  1266. 53:54it is unnecessary.
  1267. 53:56But other than this, I think this looks
  1268. 53:58pretty clean, especially for the version
  1269. 54:01one. Maybe later at some point we can
  1270. 54:04update it. Um, but yeah, for now I'll
  1271. 54:07just leave it as it is. Now, let's go
  1272. 54:09ahead and get this prompt. I'm going to
  1273. 54:12copy it and then I'll paste it right
  1274. 54:14here. And I'll say implement. So, I just
  1275. 54:19said implement authentication with
  1276. 54:21clerk. And here's the entire
  1277. 54:22documentation.
  1278. 54:25And again, I'll just be right back once
  1279. 54:27this is done because currently if you
  1280. 54:29press, nothing happens.
  1281. 54:31But now Codex will implement it and it
  1282. 54:35should work out. All right. So here you
  1283. 54:37can tell it has built it and now it's
  1284. 54:39even using my computer and testing out
  1285. 54:42by itself. Like this is Codex. It has
  1286. 54:45clicked to it and now I think it's going
  1287. 54:47to go ahead and say continue or cancel.
  1288. 54:51Like it's literally testing this out.
  1289. 54:54Now, what I'll be doing is basically
  1290. 54:56just stopping this process because I
  1291. 54:58believe it is already implemented
  1292. 55:00successfully. I'll just go ahead and
  1293. 55:02test this out. So, I'm going to press
  1294. 55:04this button and let's say continue. I
  1295. 55:06already have an account that I signed in
  1296. 55:08in the past. Um, like what is going on?
  1297. 55:11Let's just say cancel. And
  1298. 55:15wait, I think I'm just going to close
  1299. 55:17this first. And okay, so I believe like
  1300. 55:21here you can tell we got the Codex
  1301. 55:23Graham and this is the development
  1302. 55:26build. This is something that I have
  1303. 55:28briefly mentioned in the past but I
  1304. 55:30never told you how we can get this. So I
  1305. 55:33think you know as you can tell Codex has
  1306. 55:35already got the development build but
  1307. 55:38let's say you don't really know how to
  1308. 55:40do it. I'll try to explain pretty
  1309. 55:42quickly. So first off there is something
  1310. 55:44called expo dev client. This is a
  1311. 55:46package that you can take a look at it
  1312. 55:48or a module.
  1313. 55:50You would copy this, okay, and paste it
  1314. 55:53into your terminal. MPX expo install
  1315. 55:57expo client. Once you have this, you
  1316. 55:59would go into your terminal and let's
  1317. 56:01say you would just open up a new
  1318. 56:05terminal. Okay? And then you would say
  1319. 56:06mpx expo run iOS or Android if you're
  1320. 56:11building it for Android. So in my case,
  1321. 56:14it's going to be iOS. And looks like
  1322. 56:16Codex has already run it. If you take a
  1323. 56:18look at it right here, I have an iOS
  1324. 56:22folder, right? If you run it with
  1325. 56:24Android,
  1326. 56:26then you would have the Android folder
  1327. 56:28as well.
  1328. 56:30And what this is basically this is the
  1329. 56:33entire application, right? But it is
  1330. 56:36built under the iOS folder. So this is a
  1331. 56:39development build. Now we can see it is
  1332. 56:41right here. Okay? So it is much more
  1333. 56:43than this but we can keep it like this
  1334. 56:45to explain it simply.
  1335. 56:48Okay. So from here on out whenever I
  1336. 56:51want to run my application I'll just run
  1337. 56:53it from here. I'm not going to go ahead
  1338. 56:55and open up the XOGO application because
  1339. 56:58as I said that's that was for testing
  1340. 57:00purposes for small applications.
  1341. 57:04Okay. I hope that this makes sense. Now,
  1342. 57:06we'll go ahead and just say continue
  1343. 57:10with Google.
  1344. 57:12And before I say continue, if you press
  1345. 57:15Ctrl D, you're going to get the
  1346. 57:17developer developer tools. And here you
  1347. 57:20can toggle the tools button, which is
  1348. 57:23this one. This is just for development
  1349. 57:26purposes. You will not see this if you
  1350. 57:28publish your app to the app store. Okay.
  1351. 57:31So, here you can toggle the state. You
  1352. 57:33can have the fast refresh, reload, go
  1353. 57:36home, basically everything.
  1354. 57:39And now we'll just say continue with
  1355. 57:40Google and we'll test out if the
  1356. 57:42authentication will work.
  1357. 57:47So this takes some time, but
  1358. 57:50I don't know why. I'll try to control D
  1359. 57:53and reload.
  1360. 58:02Okay,
  1361. 58:03now we'll try to sign up
  1362. 58:06because if you currently take a look at
  1363. 58:08it under the users, we don't really have
  1364. 58:10any account. Oh, I think we have and I
  1365. 58:13believe that's because Codex has test
  1366. 58:16this out in the background. Um, but
  1367. 58:19yeah, right here now we just logged in.
  1368. 58:22We can sign out as well and we'll be
  1369. 58:25right here. Okay, so that's the
  1370. 58:28authentication. It is implemented in
  1371. 58:30simple terms. You can also test out with
  1372. 58:32Apple, but since Google is working like
  1373. 58:35this is also working 100%, but I'm just
  1374. 58:38not going to test this out. Um, with
  1375. 58:40this, what I have done off camera is
  1376. 58:43that I went into GPT into the same chat
  1377. 58:46history. This is where we left. I said
  1378. 58:49upscale the home screen, profile, and
  1379. 58:51chat screens. generate each of them as a
  1380. 58:55separate image. So, we have the chat
  1381. 58:57screen, we have the home, and we have
  1382. 59:00the profile screen. So, I'm going to
  1383. 59:02copy every single one of these images
  1384. 59:05and go into VS Code. Let's maximize the
  1385. 59:08screen
  1386. 59:10under the design. I'm going to paste.
  1387. 59:13Oops. I'm going to paste this one.
  1388. 59:17Let's call this as home screen
  1389. 59:20reference.
  1390. 59:21And let's go into GPT. Basically, I'll
  1391. 59:24do the same thing for the other screens.
  1392. 59:30This is going to be chat screen
  1393. 59:33reference. And then finally, I believe
  1394. 59:36the profile screen.
  1395. 59:47Okay. Now the other thing that I have
  1396. 59:50done is basically generating more
  1397. 59:52screen. I said upscale the explore
  1398. 59:55screen which is this one. Um it is this
  1399. 59:58one. Then I said the edit profile sheet
  1400. 1:00:01comment sheet and I said generate every
  1401. 1:00:04single one of them as a separate image.
  1402. 1:00:08So here you can tell we have the
  1403. 1:00:09comments. So these are needed for GPT or
  1404. 1:00:14CEX to copy it. So, what you would like
  1405. 1:00:17to do is copying them and pasting it
  1406. 1:00:19right here.
  1407. 1:00:21I'll say explore screen
  1408. 1:00:26reference. Now, I'm going to get the
  1409. 1:00:28other images as well, but here I think
  1410. 1:00:31I'd like to go into Codex and I'll say
  1411. 1:00:34just like in the authentication screen,
  1412. 1:00:37I want you to build the home screen
  1413. 1:00:39where we have that loop. Right? So, I'll
  1414. 1:00:41try to explain it.
  1415. 1:00:44Let me show you that pretty quickly.
  1416. 1:00:46Okay. So, I'll just say put yourself
  1417. 1:00:48into this loop once again and build the
  1418. 1:00:51home screen. For now, we don't have a
  1419. 1:00:53database. We don't have any data. So,
  1420. 1:00:55I'll just say create some test or some
  1421. 1:00:58fake data just like one of these and
  1422. 1:01:01build the UI. So, I just pause the video
  1423. 1:01:04and get my prompt. And here, if you
  1424. 1:01:06wanted to reference an image, which is
  1425. 1:01:09home screen, you can just say add and
  1426. 1:01:11then add the file name. So that's going
  1427. 1:01:14to be home screen rev.png.
  1428. 1:01:17I'll go ahead and run this. Once this is
  1429. 1:01:19done, I'll just be right back. So
  1430. 1:01:21currently it has built and it is still
  1431. 1:01:24within that loop. Like it's literally
  1432. 1:01:26trying to compare it to the end result
  1433. 1:01:28and trying to fix the issues. And
  1434. 1:01:31currently I can see like there is one
  1435. 1:01:33issue right here. Um, it should fix that
  1436. 1:01:36kind of like overflow. It should look
  1437. 1:01:38like this. Um, so yeah, I'll just wait
  1438. 1:01:41for this to be completed. Once it is
  1439. 1:01:43done, I'll just be right back. But this
  1440. 1:01:46looks identical. Like literally the
  1441. 1:01:48exact same end result. All right, so GPT
  1442. 1:01:51is done with it, but still there are
  1443. 1:01:53some issues that it didn't really fix,
  1444. 1:01:55which is something that you shouldn't
  1445. 1:01:57really get mad at because it is AI at
  1446. 1:01:59the end of the day. You should take the
  1447. 1:02:01screenshots and follow up. This is what
  1448. 1:02:03I do. Like I would literally take a
  1449. 1:02:05screenshot and then paste it right here.
  1450. 1:02:08And instead of um adding couple of
  1451. 1:02:11updates or a couple of fixes in one
  1452. 1:02:14prompt, what I do is asking for one fix
  1453. 1:02:17at a time. So here I just took the
  1454. 1:02:20screenshot and I'll say fix this
  1455. 1:02:22overflow.
  1456. 1:02:27Okay. So once this is done and then I'll
  1457. 1:02:29follow up. I'll say um use the native
  1458. 1:02:33tabs for these tabs, right? Once again,
  1459. 1:02:36native tabs are something that we have
  1460. 1:02:39in expo. You can double check this will
  1461. 1:02:41give us the iOS liquid glass effect.
  1462. 1:02:46If you wanted to, you can copy the
  1463. 1:02:47entire page as markdown. This will get,
  1464. 1:02:50you know, the entire page as a
  1465. 1:02:52documentation
  1466. 1:02:55and you can paste it right here.
  1467. 1:02:56Actually, this is what I'll be doing.
  1468. 1:02:58I'll say
  1469. 1:03:00let's say something like convert tabs to
  1470. 1:03:04native tabs. And here is the
  1471. 1:03:09entire documentation and then you would
  1472. 1:03:12paste this. Now I'm going to run this
  1473. 1:03:14but let's first wait for this to be
  1474. 1:03:16completed and I think it is already
  1475. 1:03:18done.
  1476. 1:03:20Now you know GPD is trying to use my
  1477. 1:03:23simulator and test this out. Okay. So
  1478. 1:03:27here you can tell I think here we don't
  1479. 1:03:30really have an overflow but the image is
  1480. 1:03:32not really
  1481. 1:03:34like can you see the image has the black
  1482. 1:03:37background which is something that we
  1483. 1:03:39can fix. This is some hardcoded test
  1484. 1:03:42data anyways. Okay. So I'll go ahead and
  1485. 1:03:45run this now. In a couple of minutes the
  1486. 1:03:48tabs should be converted to native tabs.
  1487. 1:03:51All right. So after 5 minutes it was
  1488. 1:03:53able to build the native tabs. As you
  1489. 1:03:55can tell, it is looking really really
  1490. 1:03:57clean compared to the previous version.
  1491. 1:04:00Now, there was kind of like an issue
  1492. 1:04:02here. You can tell the background was
  1493. 1:04:04kind of like gray, but now it is
  1494. 1:04:06transparent. That's because I asked it.
  1495. 1:04:09So, here I took the screenshot and I
  1496. 1:04:11said native tabs looks as I wanted, but
  1497. 1:04:15remove the gray background. So, the rest
  1498. 1:04:17of the application is visible. Right?
  1499. 1:04:20Previously, here I had some gray
  1500. 1:04:22background here. you can tell. Um, but
  1501. 1:04:26now we don't really have it. As you can
  1502. 1:04:28tell, it just fixed it under 1 minute.
  1503. 1:04:31So, with this, I hope you are able to
  1504. 1:04:33see my workflow. Now, in the exact same
  1505. 1:04:35way, I'll go ahead and build the profile
  1506. 1:04:37screen, you know, explore screen and
  1507. 1:04:39even the messages screen. Here, I think
  1508. 1:04:42I added couple of more images of camera.
  1509. 1:04:45So, we had the profile home. I have
  1510. 1:04:49added the edit profile reference, right?
  1511. 1:04:52this screen. I have added the comment
  1512. 1:04:55screen as well and I believe the chat
  1513. 1:04:57screen. Okay, so these are some of the
  1514. 1:05:00screens that I I have added off camera.
  1515. 1:05:03Other than this, I haven't updated
  1516. 1:05:04anything in the codebase. Now I'll go
  1517. 1:05:07ahead and just say now do the exact same
  1518. 1:05:10thing for the profile screen. Once it is
  1519. 1:05:12done, I'll just be right back. So just
  1520. 1:05:14for the record, here is my prompt. I
  1521. 1:05:17said now build the profile screen. use
  1522. 1:05:19that loop and here is the reference
  1523. 1:05:21image that I just attached.
  1524. 1:05:24All right, so in 6 minutes it was able
  1525. 1:05:27to build and test that out. This is the
  1526. 1:05:29profile screen. Now I just said build
  1527. 1:05:32the edit profile and here is the
  1528. 1:05:34reference image. So I'm going to run
  1529. 1:05:35this once it is done. I'll be right
  1530. 1:05:37back. Now you might be asking why don't
  1531. 1:05:40we implement anything now. Well, that's
  1532. 1:05:42because I think it's always better to
  1533. 1:05:44have the entire the entire UI design and
  1534. 1:05:48then it's going to be really easy to
  1535. 1:05:50replace everything with the actual data.
  1536. 1:05:53For now, like this is my workflow. I'm
  1537. 1:05:55trying to get the UI design as much as
  1538. 1:05:58possible. And once I wanted to implement
  1539. 1:06:01the actual back end, all I need to do is
  1540. 1:06:04just replacing this data with the actual
  1541. 1:06:07data. Okay, so we're going to set up
  1542. 1:06:09convex in the incoming sections. But for
  1543. 1:06:12now, let's just go ahead and build most
  1544. 1:06:14of the UI design. All right, so after
  1545. 1:06:17some time, here we go. It's also been
  1546. 1:06:18built. But I think having the sign out
  1547. 1:06:21here doesn't make any sense. That's what
  1548. 1:06:23we have in our UI design. So I cannot
  1549. 1:06:25really blame Codex. But I'll just say
  1550. 1:06:28delete the sign up button from here.
  1551. 1:06:30Maybe we should have it under the
  1552. 1:06:32settings. So basically when we press
  1553. 1:06:34this button there should be some kind of
  1554. 1:06:37setting screen and I'm going to get into
  1555. 1:06:39that and I'm going to get into that a
  1556. 1:06:41little bit later in the video. So for
  1557. 1:06:43now I'll just say delete the sign up
  1558. 1:06:46button from edit profile screen.
  1559. 1:06:52And also what I'll be doing is taking a
  1560. 1:06:55screenshot from right here. I'll just
  1561. 1:06:58say replace the three dots with a
  1562. 1:07:02settings icon. Later we will build that
  1563. 1:07:06page.
  1564. 1:07:11Okay. Now it says I have removed the
  1565. 1:07:13sign up button. Yes, it is not here. And
  1566. 1:07:16now we should update this part as well.
  1567. 1:07:19Now while it is trying to update it,
  1568. 1:07:21let's go ahead and say build the explore
  1569. 1:07:24page. We already have something here but
  1570. 1:07:27it is not the design like this is
  1571. 1:07:30something Codex generated for fun in the
  1572. 1:07:33past. Um basically I would like to get
  1573. 1:07:36this one.
  1574. 1:07:39So I'm just going to reference this.
  1575. 1:07:41Let's say explore screen reference.
  1576. 1:07:45Let's say build the explore screen.
  1577. 1:07:51And here you can tell this has been
  1578. 1:07:52updated to settings and we will
  1579. 1:07:55implement it a bit later in the video.
  1580. 1:07:57All right. So after some time the
  1581. 1:07:59explore screen is ready. Here you can
  1582. 1:08:01tell we're going to replace them with
  1583. 1:08:03the actual data a bit later in the
  1584. 1:08:05video. And after explore screen I just
  1585. 1:08:08added the chat screen reference. And
  1586. 1:08:10when I said build the screen as well. So
  1587. 1:08:13we have a fake account or a chat. If we
  1588. 1:08:16press that, we have the actual details
  1589. 1:08:19where we can send the message. This is
  1590. 1:08:21something again we're going to get into
  1591. 1:08:23the details and the implementation a bit
  1592. 1:08:26later in the video. But with this, I
  1593. 1:08:28think we can leave this section right
  1594. 1:08:31here where we built the entire UI design
  1595. 1:08:34from the authentication screen to the
  1596. 1:08:36profile and basically everything that we
  1597. 1:08:39we would need for the version one.
  1598. 1:08:43Now just before I commit my changes and
  1599. 1:08:45end this section there is one thing that
  1600. 1:08:47I want to talk about. Let's go into the
  1601. 1:08:49workflow that we had so far. So we have
  1602. 1:08:51built our plan. We have generated the UI
  1603. 1:08:54design. We break it into features like
  1604. 1:08:57authentication and UI design. So far we
  1605. 1:08:59have only built these right. So you're
  1606. 1:09:02going to build one feature at a time.
  1607. 1:09:04That's what we have done. We built the
  1608. 1:09:06authentication screen and then we have
  1609. 1:09:09built the rest of the page. um sorry
  1610. 1:09:11rest of the design we did like a selfch
  1611. 1:09:14check we manually tested most of the
  1612. 1:09:16things if they're working or not and it
  1613. 1:09:19turns out everything has passed but now
  1614. 1:09:21we need to run an AI code review this is
  1615. 1:09:24at least what I do as a part of my
  1616. 1:09:26workflow because it looks like
  1617. 1:09:29everything is working but in my codebase
  1618. 1:09:31there could be a lot of different
  1619. 1:09:32security issues that I cannot really
  1620. 1:09:34see. So for that reason I want to have
  1621. 1:09:37an AI that can you know like scan my
  1622. 1:09:41entire codebase and see if I have any
  1623. 1:09:44issues or if I'm not following any
  1624. 1:09:46conventions so on and so forth. Now for
  1625. 1:09:49this there are bunch of different tools
  1626. 1:09:51and one of the free tools that you can
  1627. 1:09:52get started with is going to be code
  1628. 1:09:55rabbit. It's completely free to sign up
  1629. 1:09:57and you'll get like 2 weeks of free
  1630. 1:09:59trial and I already have an account. So
  1631. 1:10:02just go ahead and log in with your
  1632. 1:10:04GitHub account. Then you would like to
  1633. 1:10:06visit u this section where you have
  1634. 1:10:09repositories. So once you're here, you
  1635. 1:10:11can go ahead and add your repositories
  1636. 1:10:13manually or you can sync all of them at
  1637. 1:10:16once. This is what I have done. I
  1638. 1:10:18basically have all my repositories in
  1639. 1:10:20the code rabbit dashboard. Now anytime
  1640. 1:10:23you would like to use code rabbit for
  1641. 1:10:25the AI code review, you need to send a
  1642. 1:10:27pull request or you can do like on the
  1643. 1:10:30main branch as well. But I'd like to
  1644. 1:10:32create separate branches. And if you
  1645. 1:10:34don't know what that means, let me try
  1646. 1:10:36to explain pretty quickly.
  1647. 1:10:39So just imagine this is the timeline,
  1648. 1:10:41right? And you're building features
  1649. 1:10:43every single next day. Okay? So today
  1650. 1:10:46you started with the authentication.
  1651. 1:10:48Next you added the UI design. Next you
  1652. 1:10:51add the you know messaging feature. And
  1653. 1:10:54now you would like to add the video
  1654. 1:10:56calling feature, right? But you don't
  1655. 1:10:58really know if it is going to break or
  1656. 1:11:00if your teammates will accept it or not.
  1657. 1:11:03So you say instead of me updating the
  1658. 1:11:05code directly, right? Instead of me
  1659. 1:11:07updating the actual branch, let me go
  1660. 1:11:10ahead and create a testing branch,
  1661. 1:11:12right? And then here I'll add some
  1662. 1:11:14changes like I'm going to add the audio
  1663. 1:11:15calling and then video calling and then
  1664. 1:11:18you're going to commit them. Now let's
  1665. 1:11:20say you like the actual end result then
  1666. 1:11:23you can send a pull request and you can
  1667. 1:11:25say if you're working with your
  1668. 1:11:26teammates you can say something like
  1669. 1:11:28here I have built the video calling
  1670. 1:11:31feature can you please accept my request
  1671. 1:11:34and if they accept it now your changes
  1672. 1:11:36will be added into the actual actual
  1673. 1:11:39branch which is what we call either main
  1674. 1:11:42or master.
  1675. 1:11:46Now, let's say your team actually like
  1676. 1:11:48this feature, they can accept it and
  1677. 1:11:50then later at some point you can delete
  1678. 1:11:52this branch and like you don't really
  1679. 1:11:54need it anymore and your changes are
  1680. 1:11:57right here. Or let's say they didn't
  1681. 1:11:59really like it. They say this is
  1682. 1:12:01breaking our code or I don't know we
  1683. 1:12:03don't want to have video calling feature
  1684. 1:12:05something like that. They're going to
  1685. 1:12:06reject your pull request and then you
  1686. 1:12:08can basically go ahead and you know
  1687. 1:12:10delete this branch as if nothing has
  1688. 1:12:12happened. All right, so that's the
  1689. 1:12:14general idea behind it. If you're a
  1690. 1:12:16beginner, like if you have never seen
  1691. 1:12:18this before, it might feel a little bit
  1692. 1:12:20abstract, but like that's the general
  1693. 1:12:22idea behind it. You create separate
  1694. 1:12:25branches, right? And you can add more
  1695. 1:12:27features, then at some point just take
  1696. 1:12:29it back or push it to the main branch.
  1697. 1:12:33So just imagine like you are 10
  1698. 1:12:35different people in a project. Everyone
  1699. 1:12:38can create their own branches and work
  1700. 1:12:40on different features, right? eventually
  1701. 1:12:43everything will be merged to the main
  1702. 1:12:46branch. Okay, so I hope that's not
  1703. 1:12:48really confusing. Now let's go into VS
  1704. 1:12:51Code and see how we can create a
  1705. 1:12:53separate branch and commit our changes.
  1706. 1:12:56So first off, I'll maximize the screen
  1707. 1:12:58and I'm going to press command shiftp or
  1708. 1:13:01if you're on Windows that's going to be
  1709. 1:13:03control shiftp. Then here you can say
  1710. 1:13:06toggle status bar visibility
  1711. 1:13:08from right here. I think excuse
  1712. 1:13:11[clears throat] me I'm going to select
  1713. 1:13:14create new branch by default I'm on
  1714. 1:13:16master as you can tell in your case this
  1715. 1:13:18might be main which is fine it is the
  1716. 1:13:20same thing um just go ahead and say
  1717. 1:13:23create a new branch and then let's give
  1718. 1:13:25it a name I'll just say oath and let's
  1719. 1:13:28say UI design
  1720. 1:13:31all right so currently we created this
  1721. 1:13:33branch right now let's try to commit our
  1722. 1:13:35changes
  1723. 1:13:37so you'll go right here scroll to the
  1724. 1:13:40top
  1725. 1:13:41stage everything by pressing this
  1726. 1:13:44button.
  1727. 1:13:45Let's get a commit message.
  1728. 1:13:48So that's the message AI generated for
  1729. 1:13:50me. I'll go ahead and commit this. Okay.
  1730. 1:13:53And then we'll say publish this branch.
  1731. 1:13:55Now if you go and take a look at your
  1732. 1:13:57source code
  1733. 1:14:00like just go ahead and reload.
  1734. 1:14:06So this is still taking some time. Uh
  1735. 1:14:08now we should have this new branch right
  1736. 1:14:12it is right here for 4 4 seconds ago.
  1737. 1:14:14I'll go ahead and say create a pull
  1738. 1:14:16request. Now if you scroll to the bottom
  1739. 1:14:19you'll be able to see how many lines of
  1740. 1:14:22changes you have. You know like this is
  1741. 1:14:24the amount of new additions and these
  1742. 1:14:26are the deletions. And then you can
  1743. 1:14:28scroll and see every single change that
  1744. 1:14:30you have. Now instead of so instead of
  1745. 1:14:32reviewing them manually, we'll just let
  1746. 1:14:34AI to scan every single line and tell us
  1747. 1:14:37what are the things that we can fix.
  1748. 1:14:39I'll just say create the pull request.
  1749. 1:14:42If you have set it up this correctly,
  1750. 1:14:45right, you should be able to get a code
  1751. 1:14:48review in a couple of minutes. All
  1752. 1:14:50right, so initially this is what you're
  1753. 1:14:51going to see and it's going to take
  1754. 1:14:53couple of minutes. Once it is done, um
  1755. 1:14:55you'll get the feedback from code
  1756. 1:14:58rebbit. And once it is done, I'll just
  1757. 1:15:00be right back. All right. So after 10
  1758. 1:15:02minutes, the code review is ready. Now
  1759. 1:15:05we can scroll to the bottom and see
  1760. 1:15:07every single suggestions that we have.
  1761. 1:15:09So since we didn't really implemented
  1762. 1:15:11anything important in our code other
  1763. 1:15:13than UI design, we don't really have
  1764. 1:15:16that big of issues. But here you can
  1765. 1:15:19tell we have a minor suggestion and then
  1766. 1:15:23another one. Yeah, I think currently we
  1767. 1:15:25only have two. And if you want to fix
  1768. 1:15:27them, you can obviously copy the prompt
  1769. 1:15:30and paste it to AI. And you can also
  1770. 1:15:32like see the problem why this is a
  1771. 1:15:35suggestion like what code rabbit thinks
  1772. 1:15:38and how can you fix them. Right now just
  1773. 1:15:41imagine you have a 10 different
  1774. 1:15:43suggestions. you don't really want to
  1775. 1:15:45copy every single one of them one by
  1776. 1:15:47one. So you can scroll to the top and
  1777. 1:15:50you can just get the prompt for all
  1778. 1:15:52review comments for AI agents. Right? So
  1779. 1:15:55I'm going to copy this and let's go back
  1780. 1:15:57into VS Code
  1781. 1:16:01and like right here I'll paste my
  1782. 1:16:04prompt.
  1783. 1:16:07So this will go ahead and fix those
  1784. 1:16:09issues. And once it is done, we can add
  1785. 1:16:13another commit and then you know send it
  1786. 1:16:16as a pull request once again. So
  1787. 1:16:19currently we are right here. So we
  1788. 1:16:21created our commit, we sent the pull
  1789. 1:16:23request, right? And before we say merge
  1790. 1:16:26the pull request.
  1791. 1:16:29Um we would like to run these fixes.
  1792. 1:16:33So here you can tell within the next 1
  1793. 1:16:35minute everything has been fixed. Let's
  1794. 1:16:37go ahead and stage these and we're going
  1795. 1:16:40to create a new commit. You don't really
  1796. 1:16:42need to create a new pull request. So
  1797. 1:16:45I'll just say sync the changes.
  1798. 1:16:48If you scroll to the top now you're
  1799. 1:16:50going to have that we'll have the two
  1800. 1:16:52commits. Initially we had one. It just
  1801. 1:16:55reloaded by itself. Now we can scroll to
  1802. 1:16:58the bottom and just say you know merge
  1803. 1:17:00this pull request. Now, code rabbit will
  1804. 1:17:03try to give you another review because
  1805. 1:17:05you just had a new commit, but we don't
  1806. 1:17:08really need to wait for it because these
  1807. 1:17:11were the suggestions that came from code
  1808. 1:17:13rabbit.
  1809. 1:17:16Okay. So, I'll go ahead and confirm the
  1810. 1:17:18merge. Basically, we say yes, we are
  1811. 1:17:20accepting this. Now, your changes will
  1812. 1:17:22be on the master branch. Okay. I'll try
  1813. 1:17:26to visualize it and show you every
  1814. 1:17:28single step. creating the branch, adding
  1815. 1:17:31the commit, sending the pull request,
  1816. 1:17:33and merging it. Now, with this,
  1817. 1:17:36everything is done. You can go back to
  1818. 1:17:38your master branch. Just select this one
  1819. 1:17:42and then press this button. Right, we're
  1820. 1:17:44just going to sync this up. Oh, wait. We
  1821. 1:17:48have a MV change. How come?
  1822. 1:17:53Wait, what's the change here?
  1823. 1:18:00I think we have the secret key. This is
  1824. 1:18:03something that Codex added behind the
  1825. 1:18:06scenes. It's not really that important
  1826. 1:18:08for now. Just go ahead and press this
  1827. 1:18:09button. You probably don't have this. I
  1828. 1:18:13don't know. Uh just go ahead press this
  1829. 1:18:14button and this is going to sync it up.
  1830. 1:18:17Basically, it'll get the latest changes
  1831. 1:18:19and update your codebase with it. All
  1832. 1:18:22right. So, this is where we left. Now
  1833. 1:18:24that we have most of the UI design
  1834. 1:18:26ready, it is time to get started with
  1835. 1:18:28the actual functionalities. So we should
  1836. 1:18:30be able to create posts, you know, like
  1837. 1:18:33them, comment, send messages, so on and
  1838. 1:18:36so forth. For this, we're going to need
  1839. 1:18:38a back end and basically a database. And
  1840. 1:18:41for this, we can use Convex, which is
  1841. 1:18:43completely free to get started with. You
  1842. 1:18:46don't really need to pay anything. Here
  1843. 1:18:47you can tell they have a really really
  1844. 1:18:50generous free plan and I already have an
  1845. 1:18:53account. If you don't go ahead and sign
  1846. 1:18:56up then log in with your GitHub account
  1847. 1:18:58and then you will go into VS code. Now
  1848. 1:19:01you can ask AI to implement it for you.
  1849. 1:19:04But what I'll be doing is just setting
  1850. 1:19:06it up setting it up by myself so that
  1851. 1:19:09you can see the process instead of just
  1852. 1:19:11you know blindly vibe coding. Okay. So
  1853. 1:19:15here I don't know what is happening with
  1854. 1:19:17the terminal UI. Okay, now it's fixed.
  1855. 1:19:20Now from here on out you almost always
  1856. 1:19:23want to have two different terminals. In
  1857. 1:19:26one of them you're going to run the expo
  1858. 1:19:28application with MPX expo and with the
  1859. 1:19:32other terminal you would like to run
  1860. 1:19:35convex. Okay, which is our back end. So
  1861. 1:19:38here go ahead and just type mpm install
  1862. 1:19:41convex first. This is going to install
  1863. 1:19:43the package and then we are going to run
  1864. 1:19:46mpx convex def. So just wait for it.
  1865. 1:19:54This will install the package.
  1866. 1:20:00Okay. So this is taking a bit longer
  1867. 1:20:02than it should. While this is
  1868. 1:20:04installing, I have done something in the
  1869. 1:20:06background which is basically generating
  1870. 1:20:09a different logo. And because I didn't
  1871. 1:20:12really like this one, so I went into GPT
  1872. 1:20:15here. I'll show you the steps. So this
  1873. 1:20:18is where we left, right? I I just said
  1874. 1:20:21generate a grid of nine of icons for
  1875. 1:20:23this app that I can choose from. And I
  1876. 1:20:26didn't really like any of them. Let's
  1877. 1:20:28say if I like this one, I would say
  1878. 1:20:30upscale the option five. But clearly I
  1879. 1:20:34didn't like any of them. So I just said
  1880. 1:20:35give me a completely different style and
  1881. 1:20:38vibe. again a grid of nine. From here, I
  1882. 1:20:41like the option six. I just said upscale
  1883. 1:20:43this and make it in the blue theme. This
  1884. 1:20:46is what it gave me. Even though it's not
  1885. 1:20:48the same thing, I still really like this
  1886. 1:20:51one. And then I just said, you know,
  1887. 1:20:52remove the background. So, this is one
  1888. 1:20:55of the other processes that I just
  1889. 1:20:56wanted to show you. If you want to get a
  1890. 1:20:59different variation of something, just
  1891. 1:21:01ask for a grid of nine instead of asking
  1892. 1:21:04nine different times. So from here,
  1893. 1:21:06let's say you like this one. You'll just
  1894. 1:21:08say upscale this for me. [snorts] So
  1895. 1:21:10with that in mind, you'd like to copy
  1896. 1:21:11this image or the logo, right?
  1897. 1:21:15I'll just go into my assets and I'll
  1898. 1:21:18just paste it. Actually, under the
  1899. 1:21:20images, I'll say Ctrl +V and I'll be
  1900. 1:21:23using it in a second. So for now, we
  1901. 1:21:25have the convex installed. Let's clear
  1902. 1:21:27this up. You'll say MPX convex
  1903. 1:21:32def. So initially it might ask you to
  1904. 1:21:36log in if you're running it for the
  1905. 1:21:37first time. But I have already logged in
  1906. 1:21:40right and um this is going to be the
  1907. 1:21:43next question that you're going to get
  1908. 1:21:44if you are logged in. Um we would like
  1909. 1:21:47to create a new project. So I'll just
  1910. 1:21:49select this one. Let's give it a name.
  1911. 1:21:51I'll just say codex gram. It is taking
  1912. 1:21:54from the folder name. So I'll just press
  1913. 1:21:56tab and I'll press enter. If you wanted
  1914. 1:21:59to you can type something else to update
  1915. 1:22:01this name. Uh, but I'll leave it as it
  1916. 1:22:03is. And we would like to deploy it on
  1917. 1:22:05the cloud. Just go ahead and press
  1918. 1:22:07enter.
  1919. 1:22:09And we would like to set up convex AI
  1920. 1:22:12files such as agents.md
  1921. 1:22:14and some skills. Basically, this will
  1922. 1:22:17teach AI how to work with convex in the
  1923. 1:22:20best way possible.
  1924. 1:22:24Okay. So this will create couple of
  1925. 1:22:26different files and actually most of
  1926. 1:22:29them will be under a folder called
  1927. 1:22:31convex. Okay. So our entire backend code
  1928. 1:22:35will be under right here right and like
  1929. 1:22:38we'll have schema we'll have different
  1930. 1:22:41mutations queries and if you don't know
  1931. 1:22:44what that means is basically you have
  1932. 1:22:46queries to fetch data like getting the
  1933. 1:22:49posts and to create something you would
  1934. 1:22:52have mutations like creating a comment
  1935. 1:22:55creating a post or deleting a post
  1936. 1:22:59deleting a comment updating things like
  1937. 1:23:01that. So for this AI will create some
  1938. 1:23:05mutations for us. Okay, I'm only
  1939. 1:23:08explaining this if you're just a vibe
  1940. 1:23:10coder and watching it up up until now.
  1941. 1:23:13Um I think these
  1942. 1:23:16these would be helpful just to know.
  1943. 1:23:19Okay. So with this from here on out
  1944. 1:23:21always have this terminal open and you
  1945. 1:23:23can rename it just by pressing enter or
  1946. 1:23:26press right say rename. I'll just say
  1947. 1:23:29convex. And you can rename this one as
  1948. 1:23:31well. You can say expo mobile, whatever
  1949. 1:23:33you'd like to call.
  1950. 1:23:36Okay. Now, with this, what I'll be doing
  1951. 1:23:38is going into
  1952. 1:23:40a new chat. First off, I'll just say use
  1953. 1:23:43the logo that I have right here.
  1954. 1:23:47So, I'm going to call this as logo.png.
  1955. 1:23:52And I'll just say use this logo.png png
  1956. 1:23:56as my brand logo in this app. We can say
  1957. 1:24:00something like replace the current one
  1958. 1:24:03with this one.
  1959. 1:24:06All right. So, within 50 seconds, as you
  1960. 1:24:09can tell, icons have been updated within
  1961. 1:24:11this application. Now, here I'm going to
  1962. 1:24:14maximize the screen and here is my
  1963. 1:24:16prompt. You can pause the video and read
  1964. 1:24:19it, but I basically say now that we have
  1965. 1:24:21authentication and most of the UI design
  1966. 1:24:24ready, just go ahead and read my plan.md
  1967. 1:24:27so that you know what kind of features
  1968. 1:24:29we want to build. And then I say just go
  1969. 1:24:32ahead and start implementing the post
  1970. 1:24:34creation, likes, comments, and follows.
  1971. 1:24:38And then I say, let me know if I need to
  1972. 1:24:40set up anything from the clerk or convex
  1973. 1:24:43dashboard. Okay, so this is what you
  1974. 1:24:46wouldd like to do at the end. Just say,
  1975. 1:24:49you know, like let me know if there is
  1976. 1:24:50anything that I need to do manually from
  1977. 1:24:53any of these dashboards.
  1978. 1:24:56And I'll run this. Let's see what we're
  1979. 1:24:58going to get back. So, while it is
  1980. 1:25:01building, I just got asked a question.
  1981. 1:25:03It says, is the Convex integration
  1982. 1:25:06enabled in your clerk dashboard? If not,
  1983. 1:25:08it says go under the integrations and
  1984. 1:25:11find the convex. So here I'll go ahead
  1985. 1:25:14and find my project. Go under the
  1986. 1:25:17configure and then you can just search
  1987. 1:25:19for integration. So go ahead and press
  1988. 1:25:22this. It is under the developers. And
  1989. 1:25:24then right here go ahead and turn this
  1990. 1:25:26on for convex.
  1991. 1:25:29And then go back into VS code here.
  1992. 1:25:31Let's say it is enabled. All right. So
  1993. 1:25:34after 20 minutes, looks like everything
  1994. 1:25:36has been implemented just like as we
  1995. 1:25:39requested. And it says you don't really
  1996. 1:25:41need to add anything, you know, like
  1997. 1:25:44nothing you need to do from the
  1998. 1:25:45dashboard. And here you can tell if you
  1999. 1:25:48remember, we said that user has to first
  2000. 1:25:52set up a username to be able to use this
  2001. 1:25:54application. So here it says first off,
  2002. 1:25:57go ahead and add a username. Here I'll
  2003. 1:25:59just try to put my name
  2004. 1:26:02and let's put the last name. I'll say
  2005. 1:26:04continue. It's going to create the
  2006. 1:26:06profile. For now, we don't really have
  2007. 1:26:08any data. That's why everything is
  2008. 1:26:11empty, right? The UI is
  2009. 1:26:14UI is filled in with empty state. Okay,
  2010. 1:26:17let's go ahead and create a post here.
  2011. 1:26:19I'll just try to select something from
  2012. 1:26:21my gallery. Um, let's go ahead and
  2013. 1:26:24select this one. And here I'll say
  2014. 1:26:26something like this weekend trip.
  2015. 1:26:33And let's put a three dots. I was going
  2016. 1:26:35to say and I'll say publish.
  2017. 1:26:39So here we had the indicator and looks
  2018. 1:26:42like this has been uploaded. We can
  2019. 1:26:43double check by going into our Convex
  2020. 1:26:46dashboard. I'll try to log in now. Once
  2021. 1:26:49you log in, go ahead and select the
  2022. 1:26:51current application and make sure you're
  2023. 1:26:53under the development. From here, I'll
  2024. 1:26:55just say files. Here you can tell we
  2025. 1:26:57have a file that has just been uploaded.
  2026. 1:27:01Now, usually you can hover over this and
  2027. 1:27:03see the end result.
  2028. 1:27:05I'll try to install it. Let's see.
  2029. 1:27:10Okay, here you can tell that's the image
  2030. 1:27:12that's been uploaded to Convex. Now,
  2031. 1:27:15with this I think we can also take a
  2032. 1:27:17look at the data. Here you can tell we
  2033. 1:27:20have bunch of different tables like
  2034. 1:27:22uploads, profiles.
  2035. 1:27:25This is the only user profile that we
  2036. 1:27:27have. Now, you might be wondering how do
  2037. 1:27:29we get this user right here. Right? And
  2038. 1:27:32I think that's because we have
  2039. 1:27:34configured the convex integration in
  2040. 1:27:37clerk. So it is like set it up already
  2041. 1:27:40automatically. Now let's try to test out
  2042. 1:27:43some more features I'm going to like.
  2043. 1:27:46Here we go. I'll try to add a comment.
  2044. 1:27:49Maybe we have a UI glitch here that we
  2045. 1:27:52can fix. I'll just say test comment. And
  2046. 1:27:56actually at the same time I'll just take
  2047. 1:27:58a screenshot.
  2048. 1:28:01go into codeex
  2049. 1:28:05and I'll say you fix the comment
  2050. 1:28:08section.
  2051. 1:28:10It should be
  2052. 1:28:13a bit more spaced out from the bottom
  2053. 1:28:20and then I'll try to post. Here we go.
  2054. 1:28:23It is right here. Now UI is not really
  2055. 1:28:26that great. Um, I'll try to kind of like
  2056. 1:28:28format it. And what I'll be doing is
  2057. 1:28:30actually taking a screenshot and I'll go
  2058. 1:28:33under GPT right here. I'll paste in and
  2059. 1:28:38then I'll say something like
  2060. 1:28:41this is the current UI that I have for
  2061. 1:28:43the post detail screen. I want you to
  2062. 1:28:46give me three different variations of
  2063. 1:28:49this UI. Um try to keep it simple and
  2064. 1:28:53make sure it is matching with the blue
  2065. 1:28:55color palette that we have already. Um
  2066. 1:28:58yeah just give me three different
  2067. 1:29:00variations.
  2068. 1:29:06So this will give me that three
  2069. 1:29:08variations and from from those three
  2070. 1:29:11images I'll try to choose one and we'll
  2071. 1:29:14ask Codex to implement it for us.
  2072. 1:29:18Okay. So in the background it's going to
  2073. 1:29:19go ahead and implement it. And let's
  2074. 1:29:22see. Okay, that has been fixed as you
  2075. 1:29:25can tell. In 30 seconds it is done. Now
  2076. 1:29:28I can tell something like delete. If you
  2077. 1:29:32say cancel, nothing happens obviously.
  2078. 1:29:34But if you delete comment should be
  2079. 1:29:36gone. Here you can tell everything
  2080. 1:29:37updates automatically. Now one thing to
  2081. 1:29:40mention about convex is that everything
  2082. 1:29:43is real time out of the box. So here
  2083. 1:29:46just imagine you write a comment and you
  2084. 1:29:48have another simulator running right
  2085. 1:29:50here. If they are looking right here on
  2086. 1:29:53this post as soon as you post like they
  2087. 1:29:56will see this comment on that other
  2088. 1:29:58simulator in real time. They don't need
  2089. 1:30:00to reload the application. Now one of
  2090. 1:30:03the other things that I'll ask Codex is
  2091. 1:30:06to add some seated data. If you don't
  2092. 1:30:09know what that means, it's basically
  2093. 1:30:10some hard-coded test data so that we can
  2094. 1:30:13see how the rest of the application look
  2095. 1:30:16like. So currently under the explorer,
  2096. 1:30:18we only have one post. But how would it
  2097. 1:30:21look like if we had like 20 different
  2098. 1:30:24posts, right? So I'm going to say add
  2099. 1:30:26some seated data. That would be helpful
  2100. 1:30:30for me to see
  2101. 1:30:32the rest of the app with a lot of data.
  2102. 1:30:36So probably this part is not really that
  2103. 1:30:39important but I'll just add it anyways
  2104. 1:30:41and let's run it. All right. So it took
  2105. 1:30:44around 10 minutes and here we go. We
  2106. 1:30:46have now 24 fictional profiles. This
  2107. 1:30:49amount of photos, you know, likes and
  2108. 1:30:52comments. If you visit the explorer,
  2109. 1:30:53you'll be able to see all these posts,
  2110. 1:30:56different accounts. And if you press
  2111. 1:30:58them, you're going to get the details
  2112. 1:31:00with likes, comments, and you can also
  2113. 1:31:03like or comment.
  2114. 1:31:06So we have the home screen. This is how
  2115. 1:31:07that look like. We have the profile.
  2116. 1:31:10We're following
  2117. 1:31:12this amount of accounts and sorry all
  2118. 1:31:16the accounts are actually following us
  2119. 1:31:18because this is the amount of profiles
  2120. 1:31:20that have been created and we are
  2121. 1:31:22following 12 of them. So I think that's
  2122. 1:31:25a really nice start and we can go ahead
  2123. 1:31:27and try to visit some accounts and
  2124. 1:31:30actually try to follow them. Notice how,
  2125. 1:31:33you know, UI is not the best, but we can
  2126. 1:31:35always follow up and put CEX into a
  2127. 1:31:40loop, which is something that I'll get
  2128. 1:31:41into in the incoming sections, but for
  2129. 1:31:44now, I think we can follow and unfollow.
  2130. 1:31:49Um, here I'll just say unfollow. I don't
  2131. 1:31:51know why, but it takes some time
  2132. 1:31:55because I think it is running on the
  2133. 1:31:57background. This is something that we
  2134. 1:31:58can make a bit faster as well.
  2135. 1:32:02Okay. So, with this I think with this I
  2136. 1:32:04think I'll just take a quick break and
  2137. 1:32:06then I'll just be right back.
  2138. 1:32:09All right. So now let's go ahead and
  2139. 1:32:11implement the chat messaging. Currently
  2140. 1:32:14everything that you see on the screen is
  2141. 1:32:16completely fake. Like this data is
  2142. 1:32:18hardcoded. So here I'll just say
  2143. 1:32:20implement the chat messaging and let's
  2144. 1:32:22go ahead and reference this screen. So
  2145. 1:32:26I'm going to say chat screen
  2146. 1:32:29ref.png.
  2147. 1:32:30Now when it comes to the this screen, it
  2148. 1:32:34doesn't really look that good. So for
  2149. 1:32:35this, I'll also provide some references.
  2150. 1:32:38Now to generate a different reference
  2151. 1:32:40for this screen, I took a screenshot. I
  2152. 1:32:43went into GPT and then I just said give
  2153. 1:32:46me a grid of three for this UI and then
  2154. 1:32:49I just said make sure that it is
  2155. 1:32:50matching with the rest of the design
  2156. 1:32:52system. So it gave me three different
  2157. 1:32:55variations. This is the one that I
  2158. 1:32:57actually like. So here I just said, you
  2159. 1:32:59know, upscale the variegation third.
  2160. 1:33:03And here we go. We have it. Now I'm
  2161. 1:33:05going to copy this image. Let's go ahead
  2162. 1:33:08and paste it right here under the
  2163. 1:33:10design. [sighs]
  2164. 1:33:11I'm going to say something like messages
  2165. 1:33:14tab reference.
  2166. 1:33:19And let's try to shrink the left hand
  2167. 1:33:21side. And here I'll also add the
  2168. 1:33:25messages tab reference. And then let's
  2169. 1:33:29say put yourself into a loop. So you can
  2170. 1:33:34pause the video and read my prompt. But
  2171. 1:33:37this is something that we have done
  2172. 1:33:38multiple times at this point. I'll go
  2173. 1:33:40ahead and run this and I'll just be
  2174. 1:33:42right back once this is done.
  2175. 1:33:45All right. So in my case, this took
  2176. 1:33:47around 17 minutes. It has actually built
  2177. 1:33:50it pretty quickly, but then it takes
  2178. 1:33:51some time to test out every single thing
  2179. 1:33:54just to make sure that this feature is
  2180. 1:33:57working as expected. Now, what you see
  2181. 1:33:59here is still fake data. And I asked
  2182. 1:34:02because when I checked the database, let
  2183. 1:34:05me actually display it. I didn't really
  2184. 1:34:07see any messages and I'm like, what is
  2185. 1:34:09going on? Right?
  2186. 1:34:11So, I just went into VS Code. I said
  2187. 1:34:13when we send a message does it get saved
  2188. 1:34:16to the database or all of this data are
  2189. 1:34:19still hardcoded and it says both of them
  2190. 1:34:22exists basically since they are like
  2191. 1:34:25demo accounts. What you see here is fake
  2192. 1:34:28data but it says if you want to actually
  2193. 1:34:30test this out go ahead and sign up with
  2194. 1:34:33a different account and everything
  2195. 1:34:35should be working out as expected which
  2196. 1:34:37is something that I'm going to test out
  2197. 1:34:39a bit later in the video. But for now,
  2198. 1:34:41there is one thing that I have done off
  2199. 1:34:43camera that I'd like to show you pretty
  2200. 1:34:45quickly.
  2201. 1:34:47Um, so first off, let me show you the
  2202. 1:34:50post detail screen. This is currently
  2203. 1:34:52what we have. And I didn't really like
  2204. 1:34:55this that much. So I went into GPT.
  2205. 1:35:00Let me show you that exact part. So here
  2206. 1:35:03I took this screenshot and I said this
  2207. 1:35:05is the current UI, which I don't really
  2208. 1:35:07like. So I said give me three different
  2209. 1:35:09variations and it almost gave me the
  2210. 1:35:11exact same thing. So what I have done is
  2211. 1:35:14attaching the design system and I said
  2212. 1:35:16give me those three different variations
  2213. 1:35:19depending on our UI sorry our design
  2214. 1:35:22system. And from here I try to upscale
  2215. 1:35:26the second variation which is this one.
  2216. 1:35:30Like this is the one that I liked most.
  2217. 1:35:32So here at the very end you'll see that
  2218. 1:35:34I said upscale this second version. So
  2219. 1:35:38I'm going to copy it. Go into VS code
  2220. 1:35:40under the design.
  2221. 1:35:43Paste this in. And let's call this as
  2222. 1:35:47post detail
  2223. 1:35:49ref.
  2224. 1:35:53And then I'll put my simulator right on
  2225. 1:35:56the side. And I'll just say, you know,
  2226. 1:35:58go ahead update the post screen just
  2227. 1:36:01like this one. And one thing I realized
  2228. 1:36:03is that I don't really want to copy
  2229. 1:36:05everything exactly as is because I think
  2230. 1:36:08this header part is looking better than
  2231. 1:36:10what what we have right here. So what
  2232. 1:36:12I'd like to do is actually copy this um
  2233. 1:36:16bottom part and paste it right here.
  2234. 1:36:19I'll say only update this part. Right.
  2235. 1:36:22So here I'll take the screenshot.
  2236. 1:36:28So here's my prompt. You can pause the
  2237. 1:36:30video and read it. I tried to basically
  2238. 1:36:33explain what I just said. And I'm going
  2239. 1:36:35to run this. Once this is done, I'll
  2240. 1:36:37just be right back. All right. So within
  2241. 1:36:39the next 10 minutes, it was ready here.
  2242. 1:36:41You can tell the actions, the comments,
  2243. 1:36:43almost everything is identical to what
  2244. 1:36:46we have right here. I'm pretty happy
  2245. 1:36:48with how that ended up. So I'll just not
  2246. 1:36:51follow up with any other improvements
  2247. 1:36:54when it comes to this screen if you
  2248. 1:36:56wanted to. You can of course do it
  2249. 1:36:57anytime you want. Now we can add more
  2250. 1:37:00features and I think I'm going to get
  2251. 1:37:03into that in the next sections. But for
  2252. 1:37:06now what I'd like to do is running this
  2253. 1:37:09application in my actual phone. Right?
  2254. 1:37:11So instead of running it only in
  2255. 1:37:13simulator, I'll go ahead and install
  2256. 1:37:15this development build in my actual
  2257. 1:37:18phone.
  2258. 1:37:19>> [snorts]
  2259. 1:37:19>> Now, there are two different ways of
  2260. 1:37:21doing it. The first one is connecting
  2261. 1:37:24your phone with a USB cable to your Mac,
  2262. 1:37:27right? And then you would run this
  2263. 1:37:29command. Now, I'll just open up my
  2264. 1:37:32terminal and let's go under the Expo
  2265. 1:37:34terminal. Let's clear this up. Let me
  2266. 1:37:37maximize the screen. You would say MPX
  2267. 1:37:40expo run iOS just like previously. This
  2268. 1:37:43is what we have done. But at the end,
  2269. 1:37:45you would say d- device. Now, if you
  2270. 1:37:49have your phone connected with USB
  2271. 1:37:51cable, you're going to see it right here
  2272. 1:37:54in one of the options. So, mine is not
  2273. 1:37:57connected, but since I have done it in
  2274. 1:37:59the past, it shows me this. And the
  2275. 1:38:02other way of running this is that you
  2276. 1:38:05would use Expo EAS. If you don't know
  2277. 1:38:08what that is, let's go ahead and double
  2278. 1:38:10check. So, I'll just say Expo EAS.
  2279. 1:38:14So, Expo application services. This is a
  2280. 1:38:17service that allows you to run a
  2281. 1:38:20development build in your phone. This
  2282. 1:38:22allows you to, you know, publish your
  2283. 1:38:25app to the App Store, Play Store,
  2284. 1:38:27literally every single service that you
  2285. 1:38:29can ever imagine. Now, you don't really
  2286. 1:38:32need to learn everything from absolute
  2287. 1:38:34scratch. Just go ahead and explain it to
  2288. 1:38:37Codex or Cloud for this current use
  2289. 1:38:40case, and it's going to give you all the
  2290. 1:38:42steps. Now, of course, I would say if
  2291. 1:38:44you're interested or if you are serious
  2292. 1:38:46about mobile development, just pause the
  2293. 1:38:49video and go ahead read this entire
  2294. 1:38:51page, take a look at the documentation,
  2295. 1:38:54and then come back. But if you're just
  2296. 1:38:56here to test things out, then you can
  2297. 1:38:58just go into Codex or cloud and ask for
  2298. 1:39:02the,
  2299. 1:39:03you know, the instructions. And by the
  2300. 1:39:06way, what you see here on the screen is
  2301. 1:39:08for Apple developer program. Basically,
  2302. 1:39:11this is something that you need to apply
  2303. 1:39:13if you want to publish your app to the
  2304. 1:39:15app store. Apple wants you to pay $99
  2305. 1:39:18per year for this program. And you know,
  2306. 1:39:21if you live outside of US with, you
  2307. 1:39:24know, in a country with lower local
  2308. 1:39:27purchase, then this price will be
  2309. 1:39:29discounted for you. So, I think you'll
  2310. 1:39:31get something in between 20 to $25
  2311. 1:39:36[snorts] or really, you know, it's going
  2312. 1:39:38to depend on the country that you live
  2313. 1:39:40in. So, I'm from Turkey. When I applied,
  2314. 1:39:42I paid something between between this
  2315. 1:39:45amount, but you know, if you're in a
  2316. 1:39:47different country, it could be even
  2317. 1:39:49lower than this or a bit higher than
  2318. 1:39:52this. So, I don't know, maybe it could
  2319. 1:39:53be $50 or maybe even like $10. I don't
  2320. 1:39:57know. Uh but this is something to keep
  2321. 1:39:59in mind if you actually want to publish
  2322. 1:40:03your app. This is something that you
  2323. 1:40:05have to apply and unfortunately this is
  2324. 1:40:07not something that I came up with. Uh
  2325. 1:40:09this is something that Apple wants you
  2326. 1:40:12to apply and pay for. Okay, just keep
  2327. 1:40:15this in mind. This is something that I
  2328. 1:40:17wanted to mention. You can always double
  2329. 1:40:19check just before publishing your app.
  2330. 1:40:22Okay, so with that said, now I'll go
  2331. 1:40:23into Codex. I'm going to kill this
  2332. 1:40:25terminal by the way. Here I'll say I'd
  2333. 1:40:28like to get a development build and
  2334. 1:40:30install it in my phone and I'll say I
  2335. 1:40:33want to use EAS right expo application
  2336. 1:40:36services. So I'll say what I need to do
  2337. 1:40:39give me everything step by step.
  2338. 1:40:41Basically you need to run a command in
  2339. 1:40:43your terminal. I already know what that
  2340. 1:40:45is but here I'll just act as if I don't
  2341. 1:40:47know it and I'll try to show you what
  2342. 1:40:50what you should do in these type of
  2343. 1:40:52scenarios. Okay. So here you can tell
  2344. 1:40:55this is my prompt. You can read it if
  2345. 1:40:57you're interested. I'm going to run this
  2346. 1:40:59and we're going to get a prompt or a
  2347. 1:41:02command that we can run in our terminal.
  2348. 1:41:05And this will create also a file called
  2349. 1:41:08EAS.json.
  2350. 1:41:10Currently, we don't really have it, but
  2351. 1:41:12we're going to get that. And it is like
  2352. 1:41:14the configuration file that EAS need.
  2353. 1:41:19Okay. So, I'll just wait for this to be
  2354. 1:41:22completed. And once again, remember
  2355. 1:41:24there are two different ways that we
  2356. 1:41:25talked about. The first one is running
  2357. 1:41:28this command with the device flag and
  2358. 1:41:31plug in your iOS to your Mac, right? And
  2359. 1:41:36I mean iPhone, not iOS. But you got the
  2360. 1:41:38point. That was the first way. The
  2361. 1:41:40second way is using EAS. This is what
  2362. 1:41:42I'll be using. And in this way, you'll
  2363. 1:41:44be able to see the entire process. All
  2364. 1:41:47right. So, here we go. We have all the
  2365. 1:41:49instructions. This is the things that
  2366. 1:41:51you would run for the very first time.
  2367. 1:41:53But since I have already built different
  2368. 1:41:55mobile applications, I already have the
  2369. 1:41:58device connections and you know I
  2370. 1:42:00already logged into EAS initialized it
  2371. 1:42:03etc. So what I would do is scrolling to
  2372. 1:42:06the bottom and then I just said give me
  2373. 1:42:08the command to get a development build
  2374. 1:42:11on the cloud. So I'm going to run this.
  2375. 1:42:13But once again, if you're doing it for
  2376. 1:42:15the very first time, you need to log in
  2377. 1:42:17in it and create that connection to your
  2378. 1:42:20device. So everything that it gives you
  2379. 1:42:23here will be correct. And you can always
  2380. 1:42:25follow up and say, you know, like I am a
  2381. 1:42:28complete beginner. I have never done
  2382. 1:42:30this before. So tell me all the steps
  2383. 1:42:32that I need to do. Okay?
  2384. 1:42:36So this is just something to keep in
  2385. 1:42:37mind. In my case, I want to get it for
  2386. 1:42:40iOS. But if you want to get it for
  2387. 1:42:42Android, leave everything as it is, but
  2388. 1:42:44update this part as Android.
  2389. 1:42:47Now I'll go into my terminal. I'll paste
  2390. 1:42:50this in.
  2391. 1:42:52And it'll ask me a couple of different
  2392. 1:42:53questions. Um, looks like this has
  2393. 1:42:56failed. Says invalid version. I'll just
  2394. 1:43:00copy this and paste it right here.
  2395. 1:43:04So after I just paste this to CEX, it
  2396. 1:43:07has given me the solution. Basically, it
  2397. 1:43:09has fixed the cache and then it says
  2398. 1:43:11rerun this. This is exactly what I have
  2399. 1:43:14done. I basically rerun this command.
  2400. 1:43:17Now, I'm going to get bunch of different
  2401. 1:43:18questions. You're going to get the same
  2402. 1:43:21questions. Just go ahead and press enter
  2403. 1:43:23a couple of different times until it
  2404. 1:43:25starts to build.
  2405. 1:43:28All right. So, as you can tell now, it
  2406. 1:43:29is uploading to the EAS. You can always
  2407. 1:43:33go into your actual dashboard. Let's
  2408. 1:43:35actually see it. I'll visit expo.dev.
  2409. 1:43:38dev
  2410. 1:43:40and here I have already logged into my
  2411. 1:43:43account here. You can tell these are the
  2412. 1:43:45previous projects that I created. Now we
  2413. 1:43:47just got the latest one just now and if
  2414. 1:43:51you press this you can see that we have
  2415. 1:43:54a development build that is getting
  2416. 1:43:57created right we are getting this build.
  2417. 1:44:00So once it is done we should be able to
  2418. 1:44:02install it to our actual phone. So in my
  2419. 1:44:05case it has failed which is completely
  2420. 1:44:07normal and here is the fix. You would go
  2421. 1:44:10right here and let's find the step that
  2422. 1:44:13it has failed for the first time. Like
  2423. 1:44:16it was going successfully right here. It
  2424. 1:44:18has failed. So I'll just press this
  2425. 1:44:19button which will get me the logs which
  2426. 1:44:22is basically the details. If you don't
  2427. 1:44:24know what that means, I'm going to paste
  2428. 1:44:26this in and I'll say like you don't need
  2429. 1:44:29to even say anything, but I'll just say
  2430. 1:44:31my dev build failed and
  2431. 1:44:36here are the logs. Hopefully, this
  2432. 1:44:40should give us a fix. Once it is fixed,
  2433. 1:44:42we are going to rerun this. All right,
  2434. 1:44:45so here we can tell that this has been
  2435. 1:44:46fixed. It says go ahead and rerun this
  2436. 1:44:49command. But I also realized that we
  2437. 1:44:51have a lot of different changes. Now, as
  2438. 1:44:53far as I know that we have to commit
  2439. 1:44:56these to get a EAS build, but I'll just
  2440. 1:44:59double check. I'll say I have
  2441. 1:45:02uncommitted changes. Do I have to commit
  2442. 1:45:07them beforehand?
  2443. 1:45:11Like I believe we have to commit them
  2444. 1:45:13because EAS would get a snapshot. Um,
  2445. 1:45:16but looks like it says no. Okay, so
  2446. 1:45:20that's fine. Maybe I'm just wrong. I'm
  2447. 1:45:23going I'm going to go ahead and clear
  2448. 1:45:25this up. I'll paste this and again I'll
  2449. 1:45:27press enter a couple of different times.
  2450. 1:45:29We're going to get a new development
  2451. 1:45:32build.
  2452. 1:45:35Like you should be able to see the new
  2453. 1:45:37build right here. So here you can tell
  2454. 1:45:39we have the build again. It is getting
  2455. 1:45:42built. Let's just wait if it is going to
  2456. 1:45:44fail or not. I'll just be right back.
  2457. 1:45:48All right. So after a couple of minutes,
  2458. 1:45:50the process will be ended successfully
  2459. 1:45:52and you're going to get a QR code. Now I
  2460. 1:45:55just scanned this in my phone and this
  2461. 1:45:57is what I got. Basically it has
  2462. 1:45:59installed the application and if you
  2463. 1:46:01press that you're going to get this UI.
  2464. 1:46:03So here you can tell we have the logo,
  2465. 1:46:05the name and it is trying to find the
  2466. 1:46:08development server. Now let's say you
  2467. 1:46:10are confused and you don't know how to
  2468. 1:46:12run the app because it doesn't run it by
  2469. 1:46:15default. You can just say now in my
  2470. 1:46:17terminal I have a QR code. How do I run
  2471. 1:46:21this? Like what do I do? So here are the
  2472. 1:46:24steps that you will do. First off scan
  2473. 1:46:26the QR code. It's going to install the
  2474. 1:46:28build and then under the settings
  2475. 1:46:31privacy and security you need to have
  2476. 1:46:34the developer mode if this is prompted.
  2477. 1:46:36If not it's okay. Then you need to just
  2478. 1:46:39go ahead and run this on your Mac. So
  2479. 1:46:42basically scroll right here and run this
  2480. 1:46:44command. Now even after running this
  2481. 1:46:47command if you see the exact same end
  2482. 1:46:49result then go ahead run the same
  2483. 1:46:52command with the tunnel flag. So this is
  2484. 1:46:56what I'll be doing.
  2485. 1:46:59I will run this and then at the same
  2486. 1:47:02time I'm just checking my phone.
  2487. 1:47:07So I'll open up the application.
  2488. 1:47:11So currently you don't see but I have my
  2489. 1:47:13phone. is right here. I'll try to
  2490. 1:47:16actually visit this app. Okay. So here
  2491. 1:47:20again I have the same UI but this time I
  2492. 1:47:24will fill this in with a value. So here
  2493. 1:47:27you can tell it says it should start
  2494. 1:47:28with HTTP and you can find it right
  2495. 1:47:32here. So after the URL just copy this
  2496. 1:47:34part okay up until the direct included.
  2497. 1:47:39So copy this and then go into your phone
  2498. 1:47:42then just paste it.
  2499. 1:47:47So I just pasted it. As you can tell it
  2500. 1:47:49is trying to build and let me open up my
  2501. 1:47:52camera and actually show you that.
  2502. 1:47:59Okay. So here you can tell I am in the
  2503. 1:48:01loading screen. Currently it is loading
  2504. 1:48:03and our application is live.
  2505. 1:48:07So here you can tell that's the
  2506. 1:48:09authentication screen. Like literally
  2507. 1:48:12everything is right here. I'll go ahead
  2508. 1:48:14and try to log in with my Google
  2509. 1:48:16account. Here it says continue.
  2510. 1:48:19And then let me just log in with one of
  2511. 1:48:22my accounts.
  2512. 1:48:30Okay. So here it says you need to put in
  2513. 1:48:32a username.
  2514. 1:48:35Let me just put something like my phone.
  2515. 1:48:40I'll continue. And
  2516. 1:48:43let's see what we're going to get. Okay,
  2517. 1:48:46so our feed is empty because we don't
  2518. 1:48:48really follow anyone. But if we go under
  2519. 1:48:50the explore screen here, you can tell we
  2520. 1:48:53have literally everything. So it is
  2521. 1:48:55working just like as our simulator.
  2522. 1:48:59I'll try to go ahead and send messages.
  2523. 1:49:03But first, let me try to add these
  2524. 1:49:06accounts.
  2525. 1:49:08All right. So, here in my phone, I went
  2526. 1:49:11under the explorer and right here, I
  2527. 1:49:13search for this account, which is this
  2528. 1:49:16one. Right. So, I'll try to follow him
  2529. 1:49:18now. And as soon as I press the follow,
  2530. 1:49:21notice how this updates automatically,
  2531. 1:49:25right? So, everything is working in real
  2532. 1:49:26time. I'll try to unfollow.
  2533. 1:49:29Um, I can't press. I just pressed and
  2534. 1:49:33notice how it's been updated. I'll try
  2535. 1:49:35to press again and just watch here.
  2536. 1:49:40It is updating in real time. Now let's
  2537. 1:49:42go ahead and send a message. I'll go
  2538. 1:49:45under the messages
  2539. 1:49:47in my phone. Let me just send a message
  2540. 1:49:50to this user. I'll say hey.
  2541. 1:49:53And as you can tell in real time, we
  2542. 1:49:56just got the message. And here I'll say
  2543. 1:49:59like I'm texting again. I'll say how are
  2544. 1:50:03you doing?
  2545. 1:50:05Like as soon as I send
  2546. 1:50:08it is right here and let's send a
  2547. 1:50:10message from here as well. If I send it
  2548. 1:50:14in real time so everything is working as
  2549. 1:50:16expected.
  2550. 1:50:19Now other than the messages everything
  2551. 1:50:21else is also working in real time. So
  2552. 1:50:23here notice how we have only one like
  2553. 1:50:26from my phone. and I'll try to like it
  2554. 1:50:28and as soon as I like notice how it is
  2555. 1:50:30getting updated. I'll try to add a
  2556. 1:50:32comment. So I'll just say hey as soon as
  2557. 1:50:35I post it is right here. So that's the
  2558. 1:50:38beauty of convex. All right. So with
  2559. 1:50:40this I think I'm going to leave this
  2560. 1:50:42lesson right here. Now we can improve
  2561. 1:50:45the UI a lot and this is something that
  2562. 1:50:47we can do in the incoming lessons and
  2563. 1:50:50also we can add things like privacy
  2564. 1:50:52policy, terms of services, a settings
  2565. 1:50:55screen, so on and so forth. So these are
  2566. 1:50:57the things that I'll leave for the
  2567. 1:50:58incoming sections. But for now, let's
  2568. 1:51:00just go ahead and commit our changes and
  2569. 1:51:04basically end this lesson. Now, I think
  2570. 1:51:07the beauty of this lesson or the key
  2571. 1:51:09takeaway here is that you have learned
  2572. 1:51:12how to get a development build and how
  2573. 1:51:15to install it in your actual phone.
  2574. 1:51:18Okay, so we'll go ahead and
  2575. 1:51:21even like kill everything.
  2576. 1:51:25I'm going to stage every single change
  2577. 1:51:28and I'll get a commit message. Now, if I
  2578. 1:51:31was building it as my real project, what
  2579. 1:51:33I would do is again running a code
  2580. 1:51:36review
  2581. 1:51:38just like here in our workflow by
  2582. 1:51:40creating a pull request. But in this
  2583. 1:51:42case, I'll just go ahead and commit this
  2584. 1:51:44on the master branch so that we don't
  2585. 1:51:46really waste any time.
  2586. 1:51:50So, I'll sync this up. And here you can
  2587. 1:51:53tell I have a popup from the Code Rebbit
  2588. 1:51:55extension, which is something that you
  2589. 1:51:57can get for free in VS Code. Just go
  2590. 1:52:00ahead and search for it which will be
  2591. 1:52:02code rabbit.
  2592. 1:52:05So you can install this and it will work
  2593. 1:52:07out of the box. Okay. So with this
  2594. 1:52:11hopefully Okay. So with this hopefully
  2595. 1:52:13I'll see you in the next lesson. All
  2596. 1:52:15right. So this is where we left off
  2597. 1:52:17camera. I have done some small things
  2598. 1:52:19and I'd like to walk you through it like
  2599. 1:52:21what I have implemented in the
  2600. 1:52:23background. So first off in the explore
  2601. 1:52:25screen we didn't really had this UI
  2602. 1:52:27previously. It was just the images only.
  2603. 1:52:30Now what I said is basically I give the
  2604. 1:52:33reference image and I said put yourself
  2605. 1:52:35into that loop until you know we have
  2606. 1:52:38the exact same end result. And we have
  2607. 1:52:40used this loop multiple times. So I'm
  2608. 1:52:42not going to explain what is going on
  2609. 1:52:43here. So it took around 13 minutes and
  2610. 1:52:46it was ready. This was oneshotted
  2611. 1:52:49without any issues. Now there are a
  2612. 1:52:51couple of different things that we need
  2613. 1:52:52to update such as the icon. it should
  2614. 1:52:55match with the, you know, the updated
  2615. 1:52:57icon that we have right here. And also,
  2616. 1:52:59when you press this, the icon changes.
  2617. 1:53:02This is something that we can fix a bit
  2618. 1:53:04later in the video.
  2619. 1:53:06Okay. So, other than this, I said do the
  2620. 1:53:08exact same thing for the home screen,
  2621. 1:53:11but do not change the icon here. You can
  2622. 1:53:13read my prompt. And I also said
  2623. 1:53:16implement the stories feature. And
  2624. 1:53:18actually it is working like I have
  2625. 1:53:20already test this out and I have posted
  2626. 1:53:22something on my story and let's actually
  2627. 1:53:25test it once again. Here you can press
  2628. 1:53:27the button and select something from
  2629. 1:53:29your library or you can choose it from
  2630. 1:53:32sorry you can take it from your camera.
  2631. 1:53:34So here I'll go ahead and maybe post
  2632. 1:53:37this one.
  2633. 1:53:39Now one thing I'd like to say before I
  2634. 1:53:41publish this in the very first version
  2635. 1:53:44we were able to write a caption in this
  2636. 1:53:47story. So I said go ahead and delete
  2637. 1:53:49that feature from the stories. And I
  2638. 1:53:52also said you know allow us to take the
  2639. 1:53:56photo from camera not only from library
  2640. 1:53:59and then I think I said in the post
  2641. 1:54:01creation keep the caption but also add
  2642. 1:54:04the camera option. Okay. So I'll go
  2643. 1:54:06ahead and publish this. This will take
  2644. 1:54:09some time but here we go. If you press
  2645. 1:54:12here now we have two different stories
  2646. 1:54:15just like in Instagram. You can go back
  2647. 1:54:17forward and if you press again if there
  2648. 1:54:20there are more stories it's going to go
  2649. 1:54:22to the next one. Okay. So that was the
  2650. 1:54:25very first thing that I have done and I
  2651. 1:54:27think I run one more thing which is the
  2652. 1:54:30profile screen. So again I just said you
  2653. 1:54:32know put yourself into that loop and
  2654. 1:54:35build the profile screen. Now here
  2655. 1:54:38notice I didn't say put yourself into
  2656. 1:54:41that loop and and the reason for that is
  2657. 1:54:44like every single time I don't want to
  2658. 1:54:47explain this entire thing. Let me show
  2659. 1:54:49you. So every single time I don't really
  2660. 1:54:52want to say put yourself into a loop
  2661. 1:54:54where you take a screenshot from
  2662. 1:54:56simulator and compare it to the
  2663. 1:54:58reference image and keep building until
  2664. 1:54:59it's identical. So like you need to
  2665. 1:55:02create some kind of reusable component
  2666. 1:55:05or a skill in this case and I'll show
  2667. 1:55:08you how I have generated it. So you
  2668. 1:55:11don't really need to type this every
  2669. 1:55:12single time. Okay. Now for this I'll
  2670. 1:55:15just go into
  2671. 1:55:17my like how do we call it the file
  2672. 1:55:20explorer and under the cloud we have
  2673. 1:55:23skills right under the agents we also
  2674. 1:55:25have skills. Now the difference between
  2675. 1:55:27them this one is only for cloud but this
  2676. 1:55:30is for literally any other thing like
  2677. 1:55:33codex cursor you name it for everything
  2678. 1:55:36but this is for only cloud now I have
  2679. 1:55:38added it in both of them just in case if
  2680. 1:55:40you're using cloud or codex uh but yeah
  2681. 1:55:43basically under the agents we have
  2682. 1:55:46skills if you scroll to the bottom I
  2683. 1:55:49created this file
  2684. 1:55:51sorry folder and then the file called
  2685. 1:55:53skill.md
  2686. 1:55:56And let me show you the file content. So
  2687. 1:55:59this is something that I have generated
  2688. 1:56:01with codeex. Basically I said every
  2689. 1:56:04single time I don't really want to type
  2690. 1:56:06this, right? So I said create me a skill
  2691. 1:56:09and put it under the agents folder as
  2692. 1:56:12well as the cloud folder. So this is
  2693. 1:56:14literally what I have said like I went
  2694. 1:56:16here and then I said I don't want to
  2695. 1:56:19type this every single time. Can you
  2696. 1:56:21please create me a skill? And this is
  2697. 1:56:24exactly what is happening in the
  2698. 1:56:26background. So you're going to take this
  2699. 1:56:29entire file and put it in your codebase
  2700. 1:56:31if you really wanted to or I would say
  2701. 1:56:34just take this as a challenge and go
  2702. 1:56:36ahead and ask for Codex to generate the
  2703. 1:56:39same thing for you.
  2704. 1:56:42Okay. Um, so once you have this, you can
  2705. 1:56:46create a new chat and just say something
  2706. 1:56:48like, you know, make sure profile screen
  2707. 1:56:50looks like this image and just send the
  2708. 1:56:54prompt. You don't need to say, you know,
  2709. 1:56:56put yourself into that loop because
  2710. 1:56:58since this is a skill, it'll be already
  2711. 1:57:02attached to the, you know, at the
  2712. 1:57:04beginning of the conversation. Let me
  2713. 1:57:06try to kind of like visualize it. So,
  2714. 1:57:09let's say this is your first chat. You
  2715. 1:57:11say go ahead and build me a profile
  2716. 1:57:13screen and then it says okay I'll build
  2717. 1:57:15it and then you say something else and
  2718. 1:57:17and then it'll do something else right
  2719. 1:57:19now here at the beginning of the chat
  2720. 1:57:22the session that skill will be loaded
  2721. 1:57:24automatically so that's the beauty of
  2722. 1:57:26creating a skill and here I just left a
  2723. 1:57:29comment kind of like how can we make
  2724. 1:57:32this loop reusable well you would create
  2725. 1:57:34a skill explaining everything and the
  2726. 1:57:37beauty of this is that you don't really
  2727. 1:57:39need to type everything by and you will
  2728. 1:57:41just explain it to Codex or Claude or
  2729. 1:57:43whatever and then you'll just say create
  2730. 1:57:45me this skill. Okay, so I hope that
  2731. 1:57:48helps. Now with this I have the profile
  2732. 1:57:50screen. It is also looking pretty
  2733. 1:57:53similar to the end result.
  2734. 1:57:56Now here I said go ahead and delete the
  2735. 1:57:58search icon as you can tell and I also
  2736. 1:58:01said replace this with the settings icon
  2737. 1:58:04and we are going to build a settings
  2738. 1:58:06screen right here. Now here we can edit
  2739. 1:58:09our profile, share the profile and sign
  2740. 1:58:13out. Now I think I'll just say delete
  2741. 1:58:16the edit profile button from here. Also
  2742. 1:58:19the share profile, we don't really need
  2743. 1:58:20them, but what we need is delete account
  2744. 1:58:24and sign up buttons. Now you might be
  2745. 1:58:26asking why do we need the delete account
  2746. 1:58:28button? Well, it is mandatory and if you
  2747. 1:58:31don't have it, Apple will reject your
  2748. 1:58:33application because you have
  2749. 1:58:35authentication. You're storing user
  2750. 1:58:36data. When this user wants to delete
  2751. 1:58:39their account, you need to give them the
  2752. 1:58:42access that permission. So here, I'll go
  2753. 1:58:45ahead and type my prompt. I'll explain
  2754. 1:58:47everything and then I'll just be right
  2755. 1:58:49back. Now, actually, instead of going
  2756. 1:58:50into Codex and putting a prompt blindly,
  2757. 1:58:53what I have done is something even
  2758. 1:58:56better. So I went into this chat that we
  2759. 1:58:58already had with a GPT that is about
  2760. 1:59:01design. So I said I want you to give me
  2761. 1:59:04a grid of three for setting screen. You
  2762. 1:59:07can read my prompt but basically I say
  2763. 1:59:09give me things like we have privacy
  2764. 1:59:12policy link, terms of services, delete
  2765. 1:59:15account, sign out and some of the other
  2766. 1:59:18things that you would need in a social
  2767. 1:59:20media application. Okay. So if you're
  2768. 1:59:23wondering why do we need privacy policy
  2769. 1:59:26and terms of services? Well once again
  2770. 1:59:28this is something that you must have. If
  2771. 1:59:31you don't link them then your
  2772. 1:59:33application will be rejected. Also when
  2773. 1:59:36you publish your app to the app store
  2774. 1:59:38Apple will ask you to provide these
  2775. 1:59:40links. So basically you need to you need
  2776. 1:59:42to build a privacy policy terms of
  2777. 1:59:45service and deploy them on a live URL.
  2778. 1:59:48I'll try to show you how to generate
  2779. 1:59:50them and publish them on the internet so
  2780. 1:59:52that you can actually use those links.
  2781. 1:59:56Okay. So between these three options, I
  2782. 1:59:59like the very first one. So I just had
  2783. 2:00:01upscale the variation one. This is what
  2784. 2:00:04I got. I'll go ahead and copy
  2785. 2:00:07and paste it under the design. You
  2786. 2:00:09already know what I'm going to do next.
  2787. 2:00:12So I'll just say go ahead and build the
  2788. 2:00:14settings screen.
  2789. 2:00:19Let's actually say settings screen
  2790. 2:00:21reference just to be consistent with the
  2791. 2:00:24rest of the names
  2792. 2:00:26here. I'll just say settings screen ref.
  2793. 2:00:31And let's say build me this exact UI.
  2794. 2:00:37Yeah, I think for now I'll just say
  2795. 2:00:39build me this exact UI. I'm going to
  2796. 2:00:41send my prompt and I'll just be right
  2797. 2:00:43back once this is done. So after around
  2798. 2:00:464 minutes, this is what I got. And here
  2799. 2:00:49I just said go ahead and delete this
  2800. 2:00:51header part. We don't really need it.
  2801. 2:00:53Now this should be done in couple of
  2802. 2:00:55seconds. And I think overall I'm happy
  2803. 2:00:58with the end result. Like you can always
  2804. 2:01:01improve the UI, but that's not the goal
  2805. 2:01:04of this tutorial as you already know.
  2806. 2:01:06And one of the other things that it kind
  2807. 2:01:08of failed like we don't have native tabs
  2808. 2:01:11anymore. So I think for this we need to
  2809. 2:01:13just simply tell
  2810. 2:01:16also bring back the native tabs. Let's
  2811. 2:01:21say remember we always
  2812. 2:01:25want to use native tabs.
  2813. 2:01:28Now while this is building I just want
  2814. 2:01:30to mention that currently we are using
  2815. 2:01:32AI in the very bad way. Like this is not
  2816. 2:01:35this is not optimal. It shouldn't really
  2817. 2:01:37go from native tabs to the JavaScript
  2818. 2:01:39tabs. For this, I should have already
  2819. 2:01:43set up a file called cloud.md
  2820. 2:01:46or agents.md. So here you can tell we
  2821. 2:01:49already have these files. Now let's talk
  2822. 2:01:52about these files pretty quickly. In
  2823. 2:01:55simple terms, they are just a readme
  2824. 2:01:57file for AI agents. So here we have
  2825. 2:02:00readme.md. This is for humans, right?
  2826. 2:02:03This is for developers. But these are
  2827. 2:02:06readme files for AI agents. There's a
  2828. 2:02:09difference between them which is
  2829. 2:02:10something that I'll get into in a
  2830. 2:02:12second. But first, let's just read what
  2831. 2:02:15they are in the first place. So, both
  2832. 2:02:17are plain markdown instruction files
  2833. 2:02:20that get autoloaded into the AI's
  2834. 2:02:23context at the start of a session. They
  2835. 2:02:26are, let me just clear this. They are
  2836. 2:02:28where you put project conventions,
  2837. 2:02:31architecture notes, something like
  2838. 2:02:33always do this, never do that, these
  2839. 2:02:35type of rules. So in our case, we could
  2840. 2:02:38have just said always use native tabs,
  2841. 2:02:41right? Never use anything else for the
  2842. 2:02:43tabs. This is where you would put the
  2843. 2:02:45instruction. Now the difference between
  2844. 2:02:47them is that cloud.md is for cloud and
  2845. 2:02:51agents.md for literally anything else.
  2846. 2:02:55Okay, but I think cloud would still
  2847. 2:02:58support this. All you need to do is
  2848. 2:03:00adding all your
  2849. 2:03:02instructions right here under the
  2850. 2:03:04agents.m MD and under the cloud MD just
  2851. 2:03:08go ahead and import it. Okay, so that's
  2852. 2:03:10all you need to do.
  2853. 2:03:12And this is a convention by the way here
  2854. 2:03:14I have explained it as well. Put your
  2855. 2:03:16actual instructions in agents.md
  2856. 2:03:20and make cloud to import that file.
  2857. 2:03:23Okay, now I think we we know the
  2858. 2:03:26difference. And here when I ask AI to
  2859. 2:03:30implement the native tabs, I said we
  2860. 2:03:33always want to use native tabs, right?
  2861. 2:03:35And here it says I have updated it under
  2862. 2:03:38the agents. MD. So if I go under the
  2863. 2:03:40agents.md and search for native tabs,
  2864. 2:03:44here it says always use export router
  2865. 2:03:46native tabs. Okay. So once again, I'll
  2866. 2:03:50try to visualize it pretty quickly. When
  2867. 2:03:52you start a new session with AI, you're
  2868. 2:03:55asking a question, right? and then you
  2869. 2:03:57are getting a result. Let's say you just
  2870. 2:03:59say build me authentication and then it
  2871. 2:04:02builds it. You say build me profile page
  2872. 2:04:04and then you get the end result. But at
  2873. 2:04:06the beginning there is agents.md that is
  2874. 2:04:10automatically loaded to the context.
  2875. 2:04:13This is what we explained. Okay. So I
  2876. 2:04:16hope now we understand the agents.md
  2877. 2:04:18file and what's the difference between
  2878. 2:04:20them. Now what I have done off camera is
  2879. 2:04:23going into VS code and then I just said
  2880. 2:04:25now go ahead and implement the account
  2881. 2:04:27deletion. When we press this delete
  2882. 2:04:30account button here it says you need to
  2883. 2:04:33add the clerk secret sorry clerk secret
  2884. 2:04:36key to the dashboard. This is what I
  2885. 2:04:38have done. I just went into my project
  2886. 2:04:40settings environment variables and then
  2887. 2:04:43just get the clerk secret key and paste
  2888. 2:04:45it right here. Now how do you get this
  2889. 2:04:47value? Well, you can go into clerk expo
  2890. 2:04:50documentation.
  2891. 2:04:55So from here, let's just find
  2892. 2:04:58the environment variables. Just select
  2893. 2:05:01your project and then you can also press
  2894. 2:05:03the API keys by the way. So here you
  2895. 2:05:06have the publishable key, but we need
  2896. 2:05:08the secret key as well. So it is right
  2897. 2:05:10here. Just go ahead and copy this value
  2898. 2:05:14and paste it right here. So you can just
  2899. 2:05:17say add and paste this value. It should
  2900. 2:05:19be right here. Then save. This is
  2901. 2:05:22exactly what I have done. I said I have
  2902. 2:05:25added it. So I said that's done. Go
  2903. 2:05:27ahead and implement it. Now looks like
  2904. 2:05:30this has been implemented. I'll say
  2905. 2:05:31delete the account. If I say cancel,
  2906. 2:05:34nothing happens. But if I say delete, it
  2907. 2:05:36should actually delete the account and
  2908. 2:05:39sign me out. Let's go ahead take a look
  2909. 2:05:41at the dashboard.
  2910. 2:05:45Okay. So previously we had two different
  2911. 2:05:48users but now we have only one. All
  2912. 2:05:51right. So I think with this I'm going to
  2913. 2:05:53leave this section right here. In the
  2914. 2:05:55next section we can build that privacy
  2915. 2:05:57policy in terms of services. And again
  2916. 2:06:00for this I have some pre-made prompts
  2917. 2:06:03that I'll share with you. But for now I
  2918. 2:06:05think if you wanted to you can pause the
  2919. 2:06:07video and improve the UI as much as you
  2920. 2:06:10want. But I don't want to waste any
  2921. 2:06:12time. Um I'll just go ahead and let's
  2922. 2:06:14close everything.
  2923. 2:06:17and I'll just commit my changes.
  2924. 2:06:21So, let's stage and get a commit message
  2925. 2:06:27and I'll sync this up.
  2926. 2:06:30Okay. So, with this, I'll see you in the
  2927. 2:06:32next lesson. All right. Now, let's say
  2928. 2:06:34you build your application and it is
  2929. 2:06:36time to get started with the legal
  2930. 2:06:38pages. Like what you need to do is
  2931. 2:06:40pretty simple and here I'll just try to
  2932. 2:06:42walk you through it. So, first off,
  2933. 2:06:44let's talk about some of the must-h have
  2934. 2:06:46features that you should have. One of
  2935. 2:06:48them was the delete account button,
  2936. 2:06:51which is something that we have
  2937. 2:06:52implemented. The other one is the Apple
  2938. 2:06:55sign in option. Again, it is right here.
  2939. 2:06:58This is basically something that you
  2940. 2:07:00have to have if you included any other
  2941. 2:07:03different social login options. So, in
  2942. 2:07:05our case, we have Google. Then, Apple
  2943. 2:07:07says you must have sign in with Apple
  2944. 2:07:10option as well. Now, on top of privacy
  2945. 2:07:12policy and terms of services, we also
  2946. 2:07:15need to add a support URL. This is
  2947. 2:07:18something that Apple will ask you when
  2948. 2:07:20you go into the Apple dashboard. Okay.
  2949. 2:07:23So, I'll try to explain it in a little
  2950. 2:07:27bit. Okay. So, with that in mind, now
  2951. 2:07:29let's go ahead and create the privacy
  2952. 2:07:31policy, terms of services, and a support
  2953. 2:07:33URL. And in the past for one of my past
  2954. 2:07:36tutorials, I have built a landing page
  2955. 2:07:39like this where we have some demo images
  2956. 2:07:43that is looking pretty cool and we have
  2957. 2:07:45like more details. And now I'll just
  2958. 2:07:48show you how you can generate these type
  2959. 2:07:50of mockups in like less than 5 minutes.
  2960. 2:07:54Okay, so with this in mind, on top of
  2961. 2:07:57this, I'll provide you a terms of
  2962. 2:07:59services prompt. You can find this. just
  2963. 2:08:02go ahead and copy it and we'll go into
  2964. 2:08:04Codex. Let me just create a new session
  2965. 2:08:09now. Okay. So, this is something I'll
  2966. 2:08:12just delete. I don't know why, but in
  2967. 2:08:14the past, looks like I have it. So, I
  2968. 2:08:16just deleted that. And here, I'll paste
  2969. 2:08:18this in. What this does is basically it
  2970. 2:08:21says go ahead and read my entire
  2971. 2:08:24codebase and depending on my project,
  2972. 2:08:27create me a terms of services page.
  2973. 2:08:30Right? And here I'll say
  2974. 2:08:34um like put everything under a folder
  2975. 2:08:37called legal. Let's actually create
  2976. 2:08:39that. So I'll say put it all under the
  2977. 2:08:43legal folder and actually build me a
  2978. 2:08:49landing page as well. Let's say make
  2979. 2:08:53sure it looks pretty good.
  2980. 2:08:56Now, of course, this is not the best
  2981. 2:08:58prompt, but I just want to see what it
  2982. 2:09:00can give us in the first try, and then
  2983. 2:09:02we can always follow up and add some
  2984. 2:09:05references. Now, before I run this
  2985. 2:09:07prompt, what I'd like to do is actually
  2986. 2:09:10preparing these demo images. So, for
  2987. 2:09:13this, there is a website called
  2988. 2:09:15shots.so,
  2989. 2:09:17which is completely free to get started
  2990. 2:09:19with. They [snorts] have paid plan as
  2991. 2:09:21well, but you don't really need to pay
  2992. 2:09:23just to create these images. Okay. So,
  2993. 2:09:26head over to this site here. I'll just
  2994. 2:09:28say start over. This is what you're
  2995. 2:09:30going to see initially. From here, go
  2996. 2:09:32ahead and select a mockup. In this case,
  2997. 2:09:35I'll just get iPhone 17, I believe. You
  2998. 2:09:39can select anything really. I'll just
  2999. 2:09:41get this one.
  3000. 2:09:43And then I'll say,
  3001. 2:09:46let me go under the frame. I'll say
  3002. 2:09:48there should be no background because
  3003. 2:09:50here we would like to have a transparent
  3004. 2:09:52background, right? like this doesn't
  3005. 2:09:55have any white background, red
  3006. 2:09:56background, nothing. It should be
  3007. 2:09:59transparent. And then for the images,
  3008. 2:10:02for the images, you would like to open
  3009. 2:10:04up your simulator and take a screenshot.
  3010. 2:10:07Then I'll just copy this. Let's say copy
  3011. 2:10:10to clipboard here. I'll press Ctrl +V.
  3012. 2:10:13Okay. So, I just pasted that. Now you
  3013. 2:10:16can get this type of variation. But then
  3014. 2:10:18you need the second image or even like
  3015. 2:10:21three different images. Let me just try
  3016. 2:10:24to kind of like log in
  3017. 2:10:28because I'm going to get more
  3018. 2:10:30screenshots
  3019. 2:10:32here. I'll say continue. And okay, so I
  3020. 2:10:35just logged in. Let's go under the
  3021. 2:10:36explore screen and I'm going to take
  3022. 2:10:38another screenshot. Again, I'll copy
  3023. 2:10:40this to clipboard. Let's go and maybe
  3024. 2:10:44create this one initially. So I'm going
  3025. 2:10:47to paste this in. And what you would
  3026. 2:10:50like to do is zooming in as much as
  3027. 2:10:53possible. So you are basically deleting
  3028. 2:10:55this extra space from the top and from
  3029. 2:10:57the bottom. So go ahead and zoom in.
  3030. 2:10:59Don't make it this much, but just make
  3031. 2:11:02sure that you know you get rid of these
  3032. 2:11:05extra spaces as much as possible. So I'm
  3033. 2:11:08going to go ahead zoom in. I think this
  3034. 2:11:10is fine. And you also want to make sure
  3035. 2:11:13that under the mockup you say there is
  3036. 2:11:15no shadow. Okay, because if you have
  3037. 2:11:18shadow like let me select one of them
  3038. 2:11:23like I think it is not really that
  3039. 2:11:25visible but there is some shadow right
  3040. 2:11:27here and it's not going to make it look
  3041. 2:11:29like this if you have shadow like just
  3042. 2:11:32trust me go ahead and he would like to
  3043. 2:11:33select no shadow and then we can export
  3044. 2:11:36this. So that's the first variation.
  3045. 2:11:38Let's go and get one of these. I'll just
  3046. 2:11:42keep it simple and get the first one.
  3047. 2:11:44Again, I'm zooming in as much as
  3048. 2:11:45possible.
  3049. 2:11:47I'm going to export this as well. And
  3050. 2:11:50let's go ahead get one of these.
  3051. 2:11:54Yeah, I think I'll just go with this
  3052. 2:11:55one. Let me take a screenshot
  3053. 2:11:58maybe from the messages.
  3054. 2:12:05I'll copy it to clipboard again. and
  3055. 2:12:07I'll paste this in. Let's zoom in as
  3056. 2:12:10much as possible.
  3057. 2:12:15Okay. So, what we have just done here is
  3058. 2:12:18something that you can implement in all
  3059. 2:12:20of your future projects.
  3060. 2:12:23Just visit this site and do the same
  3061. 2:12:25thing that I've done. Now, I'm going to
  3062. 2:12:27get these three images and I'll just
  3063. 2:12:29paste it into VS Code. Let's actually go
  3064. 2:12:31under the legal folder. I'm going to
  3065. 2:12:33drag and drop and let's just say
  3066. 2:12:39like I'll rename it. I'll say demo one.
  3067. 2:12:42Um I think this should be
  3068. 2:12:46demo 3. Sorry, demo two and three.
  3069. 2:12:52Now I will go into codex. So I had this
  3070. 2:12:55prompt and I'll just say in landing page
  3071. 2:12:59use these images
  3072. 2:13:03which are demo one,
  3073. 2:13:06two, and three.
  3074. 2:13:11Okay, so I'll just run this and let's
  3075. 2:13:13see what we're going to get back. All
  3076. 2:13:14right, so this took around 17 minutes.
  3077. 2:13:17GPT not only build it but also test it
  3078. 2:13:19out on the browser. So here you can tell
  3079. 2:13:22I have bunch of different files but the
  3080. 2:13:24important one is the index.html.
  3081. 2:13:27Just go ahead rightclick and then open
  3082. 2:13:29this with the live server. If you cannot
  3083. 2:13:32see this option then just head over to
  3084. 2:13:34the extensions and just get the live
  3085. 2:13:37server extension. Let me show you that
  3086. 2:13:40pretty quickly. It's going to be this
  3087. 2:13:41one. Install it and then you should be
  3088. 2:13:44able to see it. So right click, press
  3089. 2:13:46this and here we go. This is the end
  3090. 2:13:49result. And I think UI is way better
  3091. 2:13:52than what I expected. And like we didn't
  3092. 2:13:55give any kind of reference at all. It
  3093. 2:13:57has built it by itself. And notice how
  3094. 2:13:59it is following the system design that
  3095. 2:14:03we currently have. So it didn't build
  3096. 2:14:05something like in the red color or
  3097. 2:14:07purple or really anything. But instead
  3098. 2:14:10it like it is following the blue color
  3099. 2:14:12theme that we have in the mobile
  3100. 2:14:14application. Now if you wanted to you
  3101. 2:14:16can of course as usual you can follow up
  3102. 2:14:19and improve the design. I don't want to
  3103. 2:14:21waste any time but here you can tell we
  3104. 2:14:23have the terms of services under the
  3105. 2:14:27terms endpoint or URL I would say.
  3106. 2:14:32Now here you can tell there are a bunch
  3107. 2:14:33of different uh placeholder fields.
  3108. 2:14:36That's because AI cannot really guess
  3109. 2:14:39what is the legal name of your business,
  3110. 2:14:42you know, privacy policy URL and things
  3111. 2:14:44like that because this is still not
  3112. 2:14:46deployed. So these are some um
  3113. 2:14:49placeholders that you would like to
  3114. 2:14:50actually read and fix. But other than
  3115. 2:14:52these, you don't really need to change
  3116. 2:14:54anything else. This is exactly what I
  3117. 2:14:56have done when I was building my own
  3118. 2:14:58mobile application. And I think like
  3119. 2:15:01this is the old name. Um sorry, this is
  3120. 2:15:03the old name. Previously it was called
  3121. 2:15:05bulky AI but recently I have update the
  3122. 2:15:08name but it is still under the old
  3123. 2:15:10domain which is fine. So here I have a
  3124. 2:15:12terms of services if you if you scroll
  3125. 2:15:16to the bottom here you can tell like I
  3126. 2:15:19just put the details about my business
  3127. 2:15:21you know where I'm from things like
  3128. 2:15:22that. And now it's time to build the
  3129. 2:15:25privacy policy. And for this again I
  3130. 2:15:28have the prompt. You'll just go ahead
  3131. 2:15:30get this entire thing. Let's paste this
  3132. 2:15:33in. And now it should also build the
  3133. 2:15:37privacy policy. Once this is done, I'll
  3134. 2:15:40just be right back. All right. So after
  3135. 2:15:43some time, this has also been
  3136. 2:15:44implemented. Here you can tell in the
  3137. 2:15:46footer we have this link. Again, there
  3138. 2:15:48are a bunch of different placeholders
  3139. 2:15:50that you would like to read and update
  3140. 2:15:52just before you publish your app to the
  3141. 2:15:54app store. And then you would like to
  3142. 2:15:57kind of like deploy this because
  3143. 2:15:59currently this is running on your local
  3144. 2:16:01machine. Now I'll show you how to deploy
  3145. 2:16:03it in a second. But first let's go back
  3146. 2:16:05to our list. Now we have built the
  3147. 2:16:08privacy policy and terms of services. On
  3148. 2:16:10top of this you also want to have a
  3149. 2:16:12support URL because this is a field that
  3150. 2:16:15Apple will ask you in the Apple
  3151. 2:16:18dashboard when you want to deploy it.
  3152. 2:16:20And this is going to be by the way under
  3153. 2:16:22the Apple store connect. So we can
  3154. 2:16:25actually visit that like app store
  3155. 2:16:28connect. Sorry not Apple store. It
  3156. 2:16:30should be app store connect.
  3157. 2:16:34So this is something that I go into in
  3158. 2:16:36detail in my school community but
  3159. 2:16:39basically [snorts] in simple terms this
  3160. 2:16:41is going to be the place where you will
  3161. 2:16:43publish your app and they ask for a
  3162. 2:16:46support URL. Now let's go ahead and
  3163. 2:16:47build it as well. I'll just say also add
  3164. 2:16:50a support page. Please keep it simple
  3165. 2:16:55and super quick to build. like I don't
  3166. 2:16:59want to wait 10 minutes. So I'll just
  3167. 2:17:02say don't test only build.
  3168. 2:17:06Now usually I wouldn't say this but this
  3169. 2:17:09uh this is just because this is a
  3170. 2:17:11tutorial I'll say don't test it just
  3171. 2:17:13build so that we don't waste any time.
  3172. 2:17:16And now while this is building let's go
  3173. 2:17:18ahead and see cloudflare. This is where
  3174. 2:17:20we will deploy our application. Sorry.
  3175. 2:17:23This is where we will deploy our privacy
  3176. 2:17:25policy and in general the landing page.
  3177. 2:17:29So this is completely free to get
  3178. 2:17:31started with. Just go ahead and sign up
  3179. 2:17:33with your GitHub account. This is what I
  3180. 2:17:36have done. And you will just go into VS
  3181. 2:17:38Code under Codex cloud whatever you're
  3182. 2:17:41using. You will just say go ahead and
  3183. 2:17:44deploy this to Cloudflare pages. Okay.
  3184. 2:17:47And looks like support page has been
  3185. 2:17:49completed. Let me double check. We have
  3186. 2:17:52the support page here. The only thing
  3187. 2:17:54that you need to update is the support
  3188. 2:17:56email, which is something pretty easy to
  3189. 2:17:58do. If you don't know how to do it, just
  3190. 2:18:00talk with Codex.
  3191. 2:18:02It'll um basically it'll walk you
  3192. 2:18:05through the entire process. Okay. So,
  3193. 2:18:07with that said, what you would like to
  3194. 2:18:09do for deployment, just going here and
  3195. 2:18:11saying something like deploy the
  3196. 2:18:17legal folder. Right? So, we have the
  3197. 2:18:19legal folder. I'll just say deploy this
  3198. 2:18:21to Cloudflare
  3199. 2:18:24pages. And Cloudflare has a tool called
  3200. 2:18:28Wrangler, which is a CLI tool that
  3201. 2:18:30allows you to publish your app without
  3202. 2:18:33touching the browser. So from the
  3203. 2:18:35terminal, it can use this tool and
  3204. 2:18:38deploy your app. So I'll just say use
  3205. 2:18:41Wrangler and I already
  3206. 2:18:44have the setup and login. If you don't
  3207. 2:18:48have, you can say go ahead and set this
  3208. 2:18:51up for me or just tell me the process
  3209. 2:18:53how I can set this up. Okay, so I'm
  3210. 2:18:56going to run this and after I believe
  3211. 2:18:59couple of minutes, this should be
  3212. 2:19:01deployed. All right, so it was super
  3213. 2:19:03quick. Here you can tell it took 1
  3214. 2:19:05minute and 20 seconds. And if you press
  3215. 2:19:07the link here, you can tell our landing
  3216. 2:19:10page is live. Now we can use this URL in
  3217. 2:19:13the App Store Connect dashboard. So you
  3218. 2:19:16can add this link as your privacy
  3219. 2:19:18policy.
  3220. 2:19:20This link for the terms of services and
  3221. 2:19:22then
  3222. 2:19:24/sup support. Let me just find it.
  3223. 2:19:29This for the support URL. All right. So
  3224. 2:19:32this is how you build the legal pages
  3225. 2:19:34and deploy it to internet. The only
  3226. 2:19:37thing left for you to do is filling
  3227. 2:19:39filling in these placeholders. And
  3228. 2:19:43literally that's it. Now, with that, I
  3229. 2:19:45think I'm going to leave this lesson
  3230. 2:19:46right here. Let's go ahead and visit VS
  3231. 2:19:50Code.
  3232. 2:19:51And as usual, we're going to stage
  3233. 2:19:53everything and commit our changes.
  3234. 2:20:02All right, so this is where we left.
  3235. 2:20:04Now, in this section, I'd like to talk
  3236. 2:20:06about something called error tracking
  3237. 2:20:08and monitoring, which sounds pretty
  3238. 2:20:10complex, but it's actually pretty easy
  3239. 2:20:12to implement. And it's really, really
  3240. 2:20:14important to understand, especially if
  3241. 2:20:16you're building apps. Um, for us to be
  3242. 2:20:20able to understand it, first we need to
  3243. 2:20:22see the problem and then the solution.
  3244. 2:20:24Then I'll show you how to integrate it.
  3245. 2:20:26So, let's just see the problem first.
  3246. 2:20:28Now, let's say you built your own
  3247. 2:20:30application, right? You deployed to App
  3248. 2:20:32Store. everything is working in your own
  3249. 2:20:35device and even in the simulator. But
  3250. 2:20:37you cannot really just assume that this
  3251. 2:20:39is going to work for every single one of
  3252. 2:20:41your users. Now like it or don't like it
  3253. 2:20:44in real applications, there are always
  3254. 2:20:47some kind of edge cases and like there
  3255. 2:20:50will always be some problems that you
  3256. 2:20:52need to fix. And now you need to be
  3257. 2:20:54notified anytime your users are getting
  3258. 2:20:56some errors. Now let's take a look at
  3259. 2:20:58the diagrams that I have prepared. So
  3260. 2:21:01here you know like what happens when
  3261. 2:21:04your users face some errors. Do you
  3262. 2:21:06think they will send you an email or do
  3263. 2:21:09you think they will delete the
  3264. 2:21:10application and leave a one-star review
  3265. 2:21:13with a really bad comment? Well 99% of
  3266. 2:21:16the time this is what's going to happen
  3267. 2:21:18because they don't even know who you
  3268. 2:21:20are, right? So how would they know your
  3269. 2:21:22email? So they'll never try to send you
  3270. 2:21:25an email explaining the issue. they'll
  3271. 2:21:27just delete the app, leave a one-star
  3272. 2:21:29review, and they'll say something like,
  3273. 2:21:32I don't know, like profile screen
  3274. 2:21:33doesn't work. I'm trying to see my
  3275. 2:21:35profile image, but it is not even
  3276. 2:21:37visible. I am deleting this app.
  3277. 2:21:39Something like that. Right? So, that's
  3278. 2:21:41the problem that you need to kind of
  3279. 2:21:44fix. Anytime there is an error, you need
  3280. 2:21:46to get an email automatically seeing the
  3281. 2:21:50error, the user, and how to fix it. So,
  3282. 2:21:54that's the beauty of Sentry. This is
  3283. 2:21:56where Sentry comes in. We're going to
  3284. 2:21:58fix it by using Sentry, which is
  3285. 2:22:00completely free to get started with. So,
  3286. 2:22:03think of it like the watch tower of your
  3287. 2:22:06application. Now, it is much more than
  3288. 2:22:08just error tracking and monitoring, but
  3289. 2:22:11here are some of the things that I can
  3290. 2:22:13highlight. So, it's going to catch the
  3291. 2:22:15errors. It's going to show us the
  3292. 2:22:17structured logs, which is like
  3293. 2:22:18console.log, but it is structured. That
  3294. 2:22:22means you know it is searchable and it
  3295. 2:22:24is persisted in the cloud. Then there
  3296. 2:22:26are session replace which means that
  3297. 2:22:28it's going to take video recording
  3298. 2:22:30anytime there is an error. So let's say
  3299. 2:22:33your user presses button and it has
  3300. 2:22:35failed. So you will have the video
  3301. 2:22:38recording of that in your sentry
  3302. 2:22:40dashboard then it helps with performance
  3303. 2:22:43such as traces and bottlenecks and as I
  3304. 2:22:46have already mentioned you're going to
  3305. 2:22:48get realtime alerts. Now, by default,
  3306. 2:22:50it's going to work with your email, but
  3307. 2:22:52if you wanted to, you can set this up
  3308. 2:22:54with Slack, I believe, Discord, and even
  3309. 2:22:57Microsoft Teams.
  3310. 2:23:00Okay, so this is completely free to get
  3311. 2:23:02started with. If you use the link in the
  3312. 2:23:04description, you're going to get $80
  3313. 2:23:06extra free credits, which is pretty
  3314. 2:23:09generous. So, go ahead and sign up with
  3315. 2:23:11that link, and then you'll be in the
  3316. 2:23:13Sentry dashboard. So, initially probably
  3317. 2:23:16you will not have any projects. So just
  3318. 2:23:19go ahead and say create a project. From
  3319. 2:23:21here you can select your repository.
  3320. 2:23:24Let's say you don't have a repository on
  3321. 2:23:26GitHub which is completely fine. So this
  3322. 2:23:28is optional right. Um then you would
  3323. 2:23:31select your platform. In this case it's
  3324. 2:23:33going to be react native and then give
  3325. 2:23:35it a project name like anything codex
  3326. 2:23:38gram. This is what I'm going to leave.
  3327. 2:23:40And then we'll say create the project.
  3328. 2:23:42Now I'm going to select my repository.
  3329. 2:23:44And as soon as I select it, it is going
  3330. 2:23:46to automatically detect that it is a
  3331. 2:23:49React Native project. So here I just
  3332. 2:23:51search for my repository. I can select
  3333. 2:23:53it. And now it's going to auto detect
  3334. 2:23:56that this is a React Native project.
  3335. 2:23:59I'll leave everything as it is, but I'll
  3336. 2:24:01update the project name. I'll say Codex
  3337. 2:24:03Gramm even though you can call it
  3338. 2:24:05anything really. Then you can also
  3339. 2:24:08update the alert frequency. I'll just
  3340. 2:24:10leave everything as default. And here
  3341. 2:24:12you can tell you can connect it to
  3342. 2:24:14Slack, Discord, and Microsoft Teams. But
  3343. 2:24:17for now, we'll just leave it as email,
  3344. 2:24:20which is pretty comfortable, especially
  3345. 2:24:23if you're just building it by yourself,
  3346. 2:24:25like if you don't have a team. Okay. So,
  3347. 2:24:28with that said, now this is what you're
  3348. 2:24:29going to get, which is called Sentry
  3349. 2:24:31Wizard. Now, you can run this
  3350. 2:24:33automatically, sorry, by default, or you
  3351. 2:24:36can just copy the instructions and paste
  3352. 2:24:39it to AI. Now, if you wanted to again,
  3353. 2:24:43you can just open up a new terminal,
  3354. 2:24:45copy this entire thing, and run it. But
  3355. 2:24:47I'll just get the instructions. And I
  3356. 2:24:51will paste it right here in my Codex
  3357. 2:24:54session.
  3358. 2:24:56So, let me go ahead and open up a new
  3359. 2:24:59chat
  3360. 2:25:02and maybe I'll try to zoom in.
  3361. 2:25:06I'll paste this in. It explains
  3362. 2:25:08everything and it even provides the DSN
  3363. 2:25:11which is a connection string. Basically,
  3364. 2:25:15it'll allow us to connect to this
  3365. 2:25:17specific project.
  3366. 2:25:19Anytime you create a new project, by the
  3367. 2:25:21way, you'll get a different DSN. Okay.
  3368. 2:25:24So, with this, I'll go ahead and run it.
  3369. 2:25:27This will set up Sentry and then
  3370. 2:25:29hopefully we should be able to test this
  3371. 2:25:31out. Now, while this is building it,
  3372. 2:25:33there are a couple of different features
  3373. 2:25:35of Sentry that I would recommend you to
  3374. 2:25:38set up. Like the first one is going to
  3375. 2:25:42be sentry logs. So, let's just go ahead
  3376. 2:25:44and say Sentry Logs React Native.
  3377. 2:25:48I would visit the documentation and then
  3378. 2:25:50I would just copy the entire page and
  3379. 2:25:53ask, you know, Codex or Cloud, whatever
  3380. 2:25:56you're using. I'll just say setup sentry
  3381. 2:25:59logs for my project and it is actually
  3382. 2:26:02pretty simple. It is just a one line
  3383. 2:26:04change and like if you're interested you
  3384. 2:26:07can pause the video and read this
  3385. 2:26:10documentation which they explain
  3386. 2:26:12everything in detail but let me try to
  3387. 2:26:14pretty quickly go over it. So to be able
  3388. 2:26:16to understand what sentry logs is here I
  3389. 2:26:20have prepared this comparison between
  3390. 2:26:22console.log versus sentry logs. So here
  3391. 2:26:26as you already know console.log lives on
  3392. 2:26:29user's device only right so it's going
  3393. 2:26:32to disappear when the application
  3394. 2:26:33closes. It is plain text and it has no
  3395. 2:26:36connection to errors like it is super
  3396. 2:26:39simple for simple projects for
  3397. 2:26:42debugging. But on the other side logs
  3398. 2:26:45are sent to sentry servers which means
  3399. 2:26:48it is saved on the cloud. It is
  3400. 2:26:51persisted and searchable. That means you
  3401. 2:26:54can you can literally query anything and
  3402. 2:26:57to be able to query them there are some
  3403. 2:26:59texts. So it is structured and it is
  3404. 2:27:02linked to the traces errors and replays.
  3405. 2:27:06Now here is how to use it. Like you can
  3406. 2:27:08have different logs for debugging
  3407. 2:27:11purposes you know just for information
  3408. 2:27:13logs, warnings, errors and even
  3409. 2:27:16something like fatal which is you know
  3410. 2:27:20really really important and that is like
  3411. 2:27:22kind of like a problem that needs to be
  3412. 2:27:24fixed immediately. So to give you an
  3413. 2:27:27example database connection failing is
  3414. 2:27:30something fatal that you need to fix.
  3415. 2:27:34Okay. So you can just pause the video
  3416. 2:27:36and read this if you're interested,
  3417. 2:27:38which I would highly highly recommend.
  3418. 2:27:40This is one of those things that people
  3419. 2:27:42don't really care, but as a app owner, I
  3420. 2:27:46think this is one of the most important
  3421. 2:27:48topics so that like you can get the
  3422. 2:27:52email and immediately solve it before
  3423. 2:27:55your application has really bad
  3424. 2:27:57reviewing.
  3425. 2:27:59Okay, so with this, let's take a look at
  3426. 2:28:01the VS code. I think this is still
  3427. 2:28:06setting this up. Once it is done, I'll
  3428. 2:28:08just be right back. All right. So,
  3429. 2:28:09within the 6 minutes, this has been
  3430. 2:28:11installed and set it up correctly. Now,
  3431. 2:28:14one thing that I want to mention is that
  3432. 2:28:16Sentry is a native module. So, once you
  3433. 2:28:19install it or once you set this up, you
  3434. 2:28:21need to rebuild your application. So, as
  3435. 2:28:25you already know, rebuilding means you
  3436. 2:28:27need to just say MPX expo run iOS in
  3437. 2:28:31your terminal, right? So just copy this,
  3438. 2:28:33kill your application from your terminal
  3439. 2:28:36which is this one and then rerun it and
  3440. 2:28:39then your application will be live once
  3441. 2:28:42again. Now with this I'm going to go
  3442. 2:28:44ahead and paste this into actually not
  3443. 2:28:47this one sorry I'm going to get this
  3444. 2:28:50copy page
  3445. 2:28:52um for sentry logs and I'll just say go
  3446. 2:28:56ahead and set up sentry logs. Let's say
  3447. 2:28:58this is dogs for sentry logs
  3448. 2:29:02set up for me. All right. So, as you can
  3449. 2:29:06tell, this has been set it up pretty
  3450. 2:29:07quickly in less than 1 minute. Now, on
  3451. 2:29:10top of this, what I have asked is this.
  3452. 2:29:13I said, go ahead and create me a sentry
  3453. 2:29:15test page under the settings and create
  3454. 2:29:18some errors and logs when we press those
  3455. 2:29:20buttons. So this is going to simulate
  3456. 2:29:23real world issues so that I can see them
  3457. 2:29:25in my sentry dashboard and explore. So
  3458. 2:29:28after two minutes it was able to build
  3459. 2:29:30this screen called Sentry test. And now
  3460. 2:29:33we can press these buttons which is
  3461. 2:29:36going to create bunch of different
  3462. 2:29:37errors that kind of like simulate a real
  3463. 2:29:40world implementation right or a real
  3464. 2:29:43real world use case I would say. Now
  3465. 2:29:45let's go ahead and run some of them.
  3466. 2:29:48like anytime you press them, they're
  3467. 2:29:50going to catch the errors, right? It's
  3468. 2:29:52going to throw an error and we're going
  3469. 2:29:54to catch it with this sentry. So here,
  3470. 2:29:56I'll just press couple of times. And now
  3471. 2:29:58let's go ahead select our project. In
  3472. 2:30:01this case, it's going to be this one.
  3473. 2:30:03And go under the issues. Like here, you
  3474. 2:30:06can tell 10 seconds ago, we got all
  3475. 2:30:09these errors.
  3476. 2:30:11And at the same time you're going to get
  3477. 2:30:12the email in real time so that you can
  3478. 2:30:15see what is going on, what is broken and
  3479. 2:30:17then you can jump into your codebase and
  3480. 2:30:19fix them. Now if you press any of them
  3481. 2:30:21you're going to get the whole details
  3482. 2:30:23about the error about the user like
  3483. 2:30:26what's the
  3484. 2:30:28um you know what's the operating system
  3485. 2:30:30they're using? What is the device that
  3486. 2:30:32they have? So on and so forth. I'll just
  3487. 2:30:34leave you to explore it. You can scroll
  3488. 2:30:36to the bottom and basically check almost
  3489. 2:30:39every single detail. Then you can go
  3490. 2:30:41under the explore and take a look at the
  3491. 2:30:43logs as well. Here you can tell there
  3492. 2:30:45are bunch of different logs that are
  3493. 2:30:47generated. And now since in our project
  3494. 2:30:51we only have one user currently you
  3495. 2:30:54might not be able to see the importance
  3496. 2:30:56of logs but just imagine you have like
  3497. 2:30:591,000 users or like even 10,000 users
  3498. 2:31:02then logs will be really really handy
  3499. 2:31:05where you can basically debug everything
  3500. 2:31:07about your project. So overall that's
  3501. 2:31:10the basics of Sentry. This is how we can
  3502. 2:31:12set this up. And there's also Sentry
  3503. 2:31:15tracing. Let's double check. I'll just
  3504. 2:31:17say Sentry Tracing React Native in the
  3505. 2:31:21exact same way. You can go ahead and
  3506. 2:31:22copy this page, paste it into Codex or
  3507. 2:31:25Cloud, whatever, whatever you are using.
  3508. 2:31:27And then it's going to set this up. You
  3509. 2:31:30can read what this is for mostly for
  3510. 2:31:32performance. And like this is something
  3511. 2:31:35that I have set it up in my actual
  3512. 2:31:37application. Okay. So, I'll just leave
  3513. 2:31:39it as a challenge if you wanted to
  3514. 2:31:41implement. And with this, I think we can
  3515. 2:31:43commit our changes and leave this
  3516. 2:31:45section right here. Well, actually, I
  3517. 2:31:48just realized there is one more
  3518. 2:31:49component that I'd like to show you,
  3519. 2:31:52which is going to be a feedback element.
  3520. 2:31:54So, let's go ahead and search for Sentry
  3521. 2:31:58React Native feedback.
  3522. 2:32:01So, with this component, you can
  3523. 2:32:03basically you can basically get feedback
  3524. 2:32:06from your users. So I'm just going to go
  3525. 2:32:08ahead press this one. So like this is
  3526. 2:32:12what you will see what your users will
  3527. 2:32:14get where they can add their full name,
  3528. 2:32:16email, and you know the feature that
  3529. 2:32:19they would request. So I'm going to go
  3530. 2:32:21ahead copy this entire page and I'll
  3531. 2:32:24just say
  3532. 2:32:25under the settings screen,
  3533. 2:32:29add a nice feedback button
  3534. 2:32:34with sentry.
  3535. 2:32:37Once this is done, I'll just be right
  3536. 2:32:38back. So, it took around 2 minutes and
  3537. 2:32:41here we go. Now, if you press this
  3538. 2:32:43button, we got the component. Let's go
  3539. 2:32:45ahead and add a, you know, a suggestion
  3540. 2:32:48or a feedback. I'll just give it my
  3541. 2:32:50name. Let's say this is my email. I
  3542. 2:32:54think I need to copy it like this.
  3543. 2:33:05Let's just say, "Hey, please fix the
  3544. 2:33:08profile screen."
  3545. 2:33:16Now, in your sentry dashboard, if you
  3546. 2:33:18visit issues and user feedback, you're
  3547. 2:33:20going to see that we got that feedback,
  3548. 2:33:22right? So, we have the username, the
  3549. 2:33:25detail, and if you press that, you'll be
  3550. 2:33:27able to see everything else. And if you
  3551. 2:33:30cannot really find it at the time that
  3552. 2:33:32you're watching this video, you can just
  3553. 2:33:34go to the search bar and search for the
  3554. 2:33:37user feedback. Just press it and it's
  3555. 2:33:39going to take you to this screen. All
  3556. 2:33:42right. So overall, that's it for the
  3557. 2:33:44Sentry integration. There is one more
  3558. 2:33:46thing that I want to do. When we press
  3559. 2:33:49these buttons, let's actually go ahead
  3560. 2:33:51and link them to the actual URL. Right?
  3561. 2:33:54So I'm going to say when we press
  3562. 2:33:57privacy policy in terms of services link
  3563. 2:34:02it to the actual deployed
  3564. 2:34:06let's say URLs.
  3565. 2:34:08All right. So within the next 1 minute
  3566. 2:34:10this has been all right. So in 1 minute
  3567. 2:34:13it's been implemented. Let's go ahead
  3568. 2:34:14and press this. As you can tell it is
  3569. 2:34:17taking us to the actual URL. Now,
  3570. 2:34:19instead of opening opening this up in
  3571. 2:34:22Safari, I'll just say, can you open this
  3572. 2:34:24up within the app? Like a sheet would
  3573. 2:34:27come from the bottom and we would see
  3574. 2:34:29the website. So, I'll just say So, that
  3575. 2:34:31was a super simple fix. As you can tell,
  3576. 2:34:34when you press now, it just opens up
  3577. 2:34:36within the app. Same for the terms of
  3578. 2:34:39services. Okay, so I think that's it for
  3579. 2:34:43the entire project or at least for this
  3580. 2:34:45section. Let's go ahead and commit
  3581. 2:34:48everything.
  3582. 2:34:53I'll stage everything. Let's get a
  3583. 2:34:54commit message and then we're going to
  3584. 2:34:56commit this. So this is my commit
  3585. 2:34:58message. I'll commit and let's say sync
  3586. 2:35:01this up. All right. So that's pretty
  3587. 2:35:03much the entire application that we have
  3588. 2:35:05built. So from here on out, all you need
  3589. 2:35:08to do is just going and talking with
  3590. 2:35:10your AI agents so that they can improve
  3591. 2:35:13the UI design. I'm not going to try to
  3592. 2:35:15do it even though I have tried to like
  3593. 2:35:18off camera just make the homepage look a
  3594. 2:35:21little bit more cleaner. Here's my
  3595. 2:35:23prompt. But yeah, as I said, at this
  3596. 2:35:25point you would like to just have a
  3597. 2:35:28couple of different follow-ups. I don't
  3598. 2:35:29know, maybe generate more design
  3599. 2:35:32references and then ask them to kind of
  3600. 2:35:34like implement it until you like the end
  3601. 2:35:38result. So, with all that said, I think
  3602. 2:35:40I'm going to leave this tutorial right
  3603. 2:35:42here. I hope you enjoyed it and learned
  3604. 2:35:43something new from it. If so, don't
  3605. 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.