Best Cursor Workflow that no one talks about...
الملخص
TLDRThis video tutorial showcases how to enhance the development workflow when building applications with Cursor, an AI code editor. The presenter outlines a step-by-step process for creating an AI analytics platform called Gummy Search. This application aims to leverage Reddit posts to identify common issues and potential solutions. Key points discussed include the importance of detailed project planning, proper documentation, using a thoughtful technology stack, and considering backend setups with databases like Superbase. The video also introduces how to improve user interfaces using platforms like Vercel and emphasizes the benefits of having a supportive community through the AI Builder Club. Overall, it presents practical strategies for effectively utilizing AI tools to build functional applications.
الوجبات الجاهزة
- 📝 Create detailed documentation for better alignment with Cursor.
- 🔍 Use planning to define the core functionalities of your application.
- 🛠️ Choose the right technology stack for your project.
- 💡 Integrate large language models for powerful insights.
- 📊 Monitor application usage with platforms like Hadon.
- 🔗 Utilize Superbase for easy backend integration.
- 🌐 Deploy applications seamlessly using Vercel.
- 👥 Join AI Builder Club for community support and tips.
الجدول الزمني
- 00:00:00 - 00:05:00
The video is sponsored by Hadon, an open-source platform for logging and debugging AI applications. It introduces Cursor, an AI code editor that simplifies app development using natural language. Viewers will learn how to enhance their workflow for building production-level applications, minimizing errors.
- 00:05:00 - 00:10:00
When using Cursor, effective communication through documentation is vital. To ensure successful app development, it's important to detail core functionalities, file structures, coding examples, and dependencies clearly. The example app to build is Gummy Search, an AI analytics platform that summarizes Reddit posts.
- 00:10:00 - 00:15:00
The first step involves planning the app's core functionalities. It includes creating a GitHub repository, compiling instructions, and determining the technologies used in the project, such as Next.js, Tailwind CSS, and various UI libraries, while ensuring all documentation is precise and comprehensive for better development outcomes.
- 00:15:00 - 00:20:00
The presenter emphasizes the importance of writing detailed product documentation, including how users interact with subreddits, the actions they can take, and how to categorize posts. This helps to streamline the development process as Cursor generates code based on these specifications.
- 00:20:00 - 00:25:00
Next, the presenter illustrates how to fetch Reddit data through specific libraries like Snowwrap. They demonstrate how to use the Cursor tool to assist in creating scripts for this functionality and how to implement API credentials correctly for fetching data.
- 00:25:00 - 00:30:00
The video continues with an example of utilizing OpenAI to categorize fetched posts from Reddit. The process involves instructing Cursor to generate TypeScript files that analyze Reddit posts based on structured outputs, followed by error handling for successful implementation.
- 00:30:00 - 00:35:00
As they progress, challenges arise that require real-time problem-solving with Cursor. The presenter shares experiences of fixing coding issues, ensuring data fetch processes are optimized to avoid unnecessary API calls, and refining their overall development workflow.
- 00:35:00 - 00:42:52
The video concludes with a transition on how to style the UI better using Vzer and deploy the application using Vercel. The presenter encourages viewers to join the AI Builder Club for further insights and advanced tutorials on AI application development.
الخريطة الذهنية
فيديو أسئلة وأجوبة
What is Cursor?
Cursor is an AI code editor that allows users to write applications using natural language.
What is the purpose of the Gummy Search app?
Gummy Search analyzes Reddit posts to extract insights and potential solutions to user queries.
What technology stack is suggested for building the app?
The suggested stack includes Next.js, Chass, Tailwind, and Lucid Icon.
How can errors be minimized when using Cursor?
Providing detailed documentation, including file structure and core functionalities, can help improve success rates.
What is Hadon used for?
Hadon is an open-source platform for monitoring and debugging large language model applications.
What is Superbase?
Superbase is an open-source backend service for web and mobile applications.
How does Vercel help in deploying applications?
Vercel simplifies the deployment process for applications built with Next.js.
What is the AI Builder Club?
It is a community for learning and sharing knowledge about building AI applications using various tools.
عرض المزيد من ملخصات الفيديو
I Was Wrong About Kingdom Come Deliverance 2 + Director Admits Game is NOT Christian Based
How I Trick My Brain to Study When I have Zero Motivation?Goggins Method
How Calvin Harris Dominates the Charts
The Davos Daily Show | Day 2
!NEW! Basic Beginners FreeCAD v1 / 0.22 | Lesson 2 | Basic Preferences for Course
How to Know You're Saved #gospel #salvation #howtogetsaved #howtoknowyouaresaved #getsaved
- 00:00:00this video is sponsored by hadong one of
- 00:00:02the best open source platform for
- 00:00:03logging monitoring and debugging your
- 00:00:05large L model applications today I want
- 00:00:07to show you how can you make your cursor
- 00:00:09workflow 10x more effective to build
- 00:00:11production level application with much
- 00:00:13less arrows if you don't know what
- 00:00:14cursor is it is the most popular AI code
- 00:00:16editor that everyone is learning it
- 00:00:18enable anyone even 8-year-old to be able
- 00:00:20to build fully functional application
- 00:00:23using just natural language and we saw
- 00:00:24many wild example just form past week
- 00:00:27all around internet where people
- 00:00:28showcase beautiful application that they
- 00:00:30have been building with cursor but the
- 00:00:32moment you start building with cursor
- 00:00:33app yourself you probably start
- 00:00:34encountering countless arrows and very
- 00:00:37hard guessing actually up running and if
- 00:00:39this is your experience the good news is
- 00:00:41that there are many things you can do to
- 00:00:43actually dramatically improve the
- 00:00:44success rate for example instead of
- 00:00:46giving cursor a simple instruction to
- 00:00:48build out the whole web application you
- 00:00:50actually need to learn how to write the
- 00:00:51best documentation to communicate and
- 00:00:53align with cursor what are core
- 00:00:55functionalities how does n file
- 00:00:57structure sure look like including code
- 00:00:58examples and list out all the
- 00:01:00dependencies or it might be a bit
- 00:01:02unclear of which text tack that you
- 00:01:04should be using and how does cloud VZ
- 00:01:06and cursor fit together into a cohesive
- 00:01:09workflow and when to use which one with
- 00:01:11all those tips and best practice
- 00:01:12workflow I was able to dramatically
- 00:01:14improve success rate for my own purs so
- 00:01:16I'm going to show you step by step what
- 00:01:18does my workflow look like so you can
- 00:01:20replicate and build your next dream app
- 00:01:22and the example application I want to
- 00:01:24show you how to build today is a really
- 00:01:26interesting AI analytics platform called
- 00:01:28Gummy Search it basically utiliz what
- 00:01:29what lar L model is really really good
- 00:01:32at which is reading through thousands of
- 00:01:35unstructured redit posts and summarize
- 00:01:37extract key information like what kind
- 00:01:39of pinpoints people are struggling with
- 00:01:41and what kind of opportunities might be
- 00:01:42for solutions that people are asking for
- 00:01:44and I learned about this app from one of
- 00:01:46the Greg's video where he showcased how
- 00:01:48he use Gumi search to find startup ideas
- 00:01:50which I highly recommend and what got me
- 00:01:52really interesed in to use this as
- 00:01:53example is because getting large L model
- 00:01:56readings through huge amount
- 00:01:57unstructured data and extract insights
- 00:01:59can be us utilize for many other data
- 00:02:01source apart from just rdit like you can
- 00:02:03probably build application for Twitter
- 00:02:05Facebook group Discord or even private
- 00:02:07data source that you might got somewhere
- 00:02:08else so to hour showcase how can you use
- 00:02:10cursor to reute such social media
- 00:02:12analytics platform where it can res
- 00:02:14thousands of posts and summarize and
- 00:02:16extract key information for people to
- 00:02:17find Opportunities with a full backhand
- 00:02:19setup as well as integration with large
- 00:02:22language model monitoring platform so
- 00:02:23you can optimize cost so let's get
- 00:02:25started so to get started instead of
- 00:02:28jumping into cursor Direct ask you to
- 00:02:30build something out we need to do some
- 00:02:32planning the first thing is we want to
- 00:02:34scope out a little bit about what kind
- 00:02:35of core functionality we want to ship my
- 00:02:37process is to spit out a core scope the
- 00:02:40application has to have to be useful now
- 00:02:42do some quick research maybe talk to
- 00:02:44chbt to understand what kind of like
- 00:02:46package that I can use for core
- 00:02:48functionalities in the end I would get
- 00:02:50cloud or 01 model to design the project
- 00:02:53structure folder so that I can plan
- 00:02:55ahead based on all the requirements I
- 00:02:56have and then write out the detail
- 00:02:58requirements so in order for a specific
- 00:03:00case I will create new GitHub report
- 00:03:02called Reddit analytics platform then I
- 00:03:04will start creating a instructions. MD
- 00:03:07file and normally I would start with a
- 00:03:09file structure look something like this
- 00:03:10I would give a Pur overview and then
- 00:03:12start spit out the cool functionalities
- 00:03:15including documentations of package that
- 00:03:17we're going to use and current file
- 00:03:19structure so that I can ask 01 model to
- 00:03:21plan a little bit so in your case you
- 00:03:22can probably follow very similar
- 00:03:24structure especially if you're building
- 00:03:25a web application for project overview
- 00:03:27I'll just give a brief description that
- 00:03:29you are building a Reddit application
- 00:03:31platform where users can get antics of
- 00:03:33different subreddits where they can go
- 00:03:35and see the top contents as well as the
- 00:03:37category of posts and you will be using
- 00:03:40nextjs 14 chassis in Tailwind Lucid icon
- 00:03:43and in term of tax stack so nextjs is
- 00:03:46just one type of Frameworks that we are
- 00:03:48using similar to react and chassen is a
- 00:03:51UI component library and telwin is a CSS
- 00:03:54Library where it will make a code more
- 00:03:56easier to understand and Lucid is icon
- 00:03:58library that we can use but if you want
- 00:04:00to use other component Library you can
- 00:04:02just change it here and then I'm going
- 00:04:03to start flashing out core functionality
- 00:04:05this is probably the most important part
- 00:04:07I basically want to think through what
- 00:04:09are the core functionality that this app
- 00:04:11has to have in my case if I use Gummy
- 00:04:14Search as the reference we need a page
- 00:04:16to actually view all the subreddit
- 00:04:19available and user can create a new
- 00:04:20subreddit if they need and then we also
- 00:04:23need a part to revew all details for
- 00:04:25specific subred and from my experience
- 00:04:28the most useful part of Gumi search is
- 00:04:30the same where I can see the top content
- 00:04:32as well a category about which post
- 00:04:34where people talk about solution request
- 00:04:36which post they talk about P anger and
- 00:04:38something we can even do more than gumy
- 00:04:40search is that sometimes I have very
- 00:04:43specific type of post that I want to
- 00:04:44find so I want to enable people maybe
- 00:04:47add a new category as well so in my case
- 00:04:49I would have a few different
- 00:04:50functionalities one is the ability to
- 00:04:52see the list of available subus and add
- 00:04:54a new sub Rus and it need to display a
- 00:04:57sub page uh and we also need to Fat post
- 00:05:00data in the top post tab as well as
- 00:05:03using open AI to analyze the post data
- 00:05:05into different category SS and in the
- 00:05:07end a bonus point to add new SE category
- 00:05:10and what I need to do after I basically
- 00:05:12just need to spit out all the detail
- 00:05:14interaction that I can Sy of if this is
- 00:05:16your first time writing detail product
- 00:05:18doc it probably take some time but it
- 00:05:20will be worth it so in my case I will
- 00:05:21write down the details that user can see
- 00:05:23list of available Subarus that already
- 00:05:25created displayed in cards common ones
- 00:05:27like AMA and open AI and users can click
- 00:05:30on add a Reddit button which should open
- 00:05:32a model for user to paste in Reddit URL
- 00:05:34and add and after user adding a Reddit a
- 00:05:37new car should be added and in subreddit
- 00:05:39page uh clicking on each subreddit
- 00:05:42should go to Reddit page with two tabs
- 00:05:44as well as other details that you can
- 00:05:46pause the video and type out later and
- 00:05:47after this core functionality next thing
- 00:05:49we want to do is to find the libraries
- 00:05:51and packages that we're going to use to
- 00:05:53build out some functionalities so there
- 00:05:54are two type of documents I would need
- 00:05:56to include one is the code example for
- 00:05:58how do we get ready Reddit data so there
- 00:06:00are few ways I can go the easiest way is
- 00:06:02that you can go and ask chat gbt
- 00:06:04especially for functionality like this
- 00:06:06one where reditor is not new SC you
- 00:06:08should already have training data about
- 00:06:10how to implement things for Reddit so I
- 00:06:12can just go and ask I'm building a web
- 00:06:13app using nextjs for fashion Reddit post
- 00:06:15data what is best package to use then I
- 00:06:18can say give me answer where snow wrap
- 00:06:20seem to be one of the best package to
- 00:06:22use and then I can go to npmjs.com to
- 00:06:25search for that specific package so mpm
- 00:06:27is like the package man manager which
- 00:06:30we're going to use to install this
- 00:06:31package later so in here it give us some
- 00:06:33examples and also link to the detailed
- 00:06:36documentations which we can take look to
- 00:06:38get more details and one thing I would
- 00:06:40normally do is I would start un cursor
- 00:06:41to give it documentation and try to spit
- 00:06:43out some proof concept of this
- 00:06:45functionality that we want so I will
- 00:06:47just copy this one go back to cursor
- 00:06:49open the cursor composer and then I addm
- 00:06:53uh doc where I can click on add new Doc
- 00:06:56pasting the uh link here so it were
- 00:06:58adding the documentation of the snow
- 00:07:00wrap I will confirm and then here I will
- 00:07:02give a specific instruction help me
- 00:07:04build a simple typescript file of fing
- 00:07:06recent RIT post data from past 24 hours
- 00:07:09under orama including title content
- 00:07:11score number of comments and date using
- 00:07:13snow rrap so you can see it start
- 00:07:14creating example uh script so I can
- 00:07:17accept all and the first thing is I will
- 00:07:19need to get the redit API credentials so
- 00:07:22you can keep asking it about like how do
- 00:07:24you get uh Reddit API credentials but
- 00:07:26you basically go to reddit.com
- 00:07:29preference SL apps and then you can
- 00:07:30click on create another app and give a
- 00:07:33name so in our case I call Post
- 00:07:35categorizer and I want to choose script
- 00:07:37description we can put an app that
- 00:07:40analyze Reddit posts and about Ur you
- 00:07:43can keep empty redir URL I will just
- 00:07:46keep Local Host 3000 and click on I'm
- 00:07:49not robot and create app and now you
- 00:07:51will get a credential here so I'm just
- 00:07:53going to temporarily replace a
- 00:07:54credential and the user agent you can
- 00:07:56just put it whatever client ID will be
- 00:07:58the tag
- 00:07:59here and the secret ID will be this one
- 00:08:02and here it ask for the refresh token as
- 00:08:05well by remember snow wrap off a few
- 00:08:07different ways to oos I just want to
- 00:08:09make an easy one which using the
- 00:08:11username and password so I'm going to
- 00:08:13copy this one and replace the refresh
- 00:08:15token to be username and password where
- 00:08:17I can putting my username and password
- 00:08:19in next is I want to install mpm so I'll
- 00:08:22copy the command line in terminal and
- 00:08:24then do TS node fash RIT post. TS Okay
- 00:08:28cool so you can see that it does return
- 00:08:31actual post data back so this code
- 00:08:34example is actually working and then I
- 00:08:35can just copy paste this thing as a code
- 00:08:38example and again just taking away
- 00:08:40another layers of potential arrows from
- 00:08:42this process by doing some research
- 00:08:44early on so what I'll do is I will copy
- 00:08:46this code example in and go back to the
- 00:08:48instruction. MD and put example here
- 00:08:51says documentation of how to use snow
- 00:08:55wrap to fetch RIT post data so code
- 00:08:58example and paste this in and now we
- 00:09:01also get description that we will use no
- 00:09:03RP as a library to fetch Reddit data and
- 00:09:05I will basically do the same thing as
- 00:09:07documentation for how to use open AI
- 00:09:09structure output to categorize the RIT
- 00:09:11post as well so our go to open AI
- 00:09:13documents copy the link in go back to
- 00:09:16cursor add a new one and add Doc and new
- 00:09:19one paste in open AI structured output
- 00:09:23confirm and here I would say instruction
- 00:09:25help me write a simple typescript to
- 00:09:27categorize the RIT post it should have
- 00:09:29output post category analysis where it
- 00:09:31has bodan value bodan basically is like
- 00:09:34true and false value for each category
- 00:09:35below solution request P anger advice
- 00:09:38request and money talk so I will click
- 00:09:40enter so it create a simple script for
- 00:09:42me and I can just come here and
- 00:09:44temporarily replace the API key here I
- 00:09:46do notice the code here is actually not
- 00:09:48using the structure output so I'm going
- 00:09:50to actually give a very specific example
- 00:09:53uh that I get from the documents and
- 00:09:56this is kind of another reason why I
- 00:09:57think this type of in Advan plan
- 00:09:59research is necessary so I would just go
- 00:10:02back to cursor and then say I want you
- 00:10:05to use the open AI structured output
- 00:10:08function use example above as reference
- 00:10:11to refactored code uh and uh if I come
- 00:10:13back out you can see that it used the uh
- 00:10:15structure output now even though the
- 00:10:17model is wrong so I will change this to
- 00:10:19be 40 mini but I will also just do some
- 00:10:23quick updates because I don't really
- 00:10:25like the structure I wanted to put a
- 00:10:27description to actual Z data type here
- 00:10:29here instead so I can just choose this
- 00:10:31part of code so I can just go back to
- 00:10:33cursor composer and I want you to set a
- 00:10:36description of each category to zone
- 00:10:38model itself instead of part of prompt
- 00:10:41so later it'll be more flexible if
- 00:10:42categories change okay now it should be
- 00:10:44all good so I will open Terminal mpm
- 00:10:47install open and zot and then do TS node
- 00:10:50categorize post. TS okay I got this
- 00:10:53Arrow okay looks like it didn't add the
- 00:10:56beta here so I'm going to paste in the
- 00:10:59beta according to the documentations
- 00:11:01okay another problem I found earlier was
- 00:11:03that type script have very strict return
- 00:11:05type and previously the return type was
- 00:11:07defined ex result type we defined
- 00:11:08earlier but the actual thing we return
- 00:11:10here is string so I just remove that and
- 00:11:12we can run again cool now you can see it
- 00:11:14returned this result po play so this is
- 00:11:17also example we can include into the
- 00:11:19instruction so our add documentation for
- 00:11:23open AI structured output code example
- 00:11:26and I can also include the example
- 00:11:28output and example response and at top I
- 00:11:31update uh using open AI structure output
- 00:11:34functions so this pretty much the Croc
- 00:11:37of the initial draft the last thing I
- 00:11:38want to do is I want to include the
- 00:11:40current file structure to do that I will
- 00:11:42first need to set up the project so to
- 00:11:45set up project I can go to chass in they
- 00:11:47have pretty good command line I press in
- 00:11:49npx chass in at latest initial and it
- 00:11:52will ask me whether I want to create a
- 00:11:54new nextjs project first I will click Y
- 00:11:57and then give name Reddit and Antics and
- 00:12:00I will choose a New York style natural
- 00:12:03uh yes then all the project has been
- 00:12:05created publicly so you can see a
- 00:12:06project folder has been created uh what
- 00:12:08I want to do is that I actually want to
- 00:12:11First create a folder inside this
- 00:12:13project folder called instructions and
- 00:12:16move this instruction MD under that
- 00:12:18folder and now I do cursor Reddit
- 00:12:21analytics so this will open cursor in
- 00:12:23that specific folder uh if you don't
- 00:12:25have this cursor command line yet you
- 00:12:27can command shift p and then select this
- 00:12:30shell command install cursor command
- 00:12:32otherwise you can always just open that
- 00:12:33specific folder from here but now I'm
- 00:12:35going to this specific uh project folder
- 00:12:38and then open the instruction that we
- 00:12:39created earlier so let's firstly install
- 00:12:41a few different packages that we know
- 00:12:42we're going to need so mpm install snow
- 00:12:44wrap open Ai and z and next thing is I
- 00:12:47will create a new file called EMV do
- 00:12:50loal where I will add all the
- 00:12:51credentials in and also do MPX chassi in
- 00:12:55at latest app so at default the
- 00:12:57components from chass in one be
- 00:12:59automatically add in so I'm going to
- 00:13:01manually select the ones that we know
- 00:13:03we're going to need like badge card
- 00:13:05input label sheet table tabs and enter
- 00:13:10Then you can see the components has been
- 00:13:11added then we need to add the current
- 00:13:14file structure in so we'll firstly do
- 00:13:16Brew install trees so this is a library
- 00:13:19that going to get a snapshot of a
- 00:13:21current file structure so if you just do
- 00:13:23tree it will return the whole file
- 00:13:25structure which is not exactly what we
- 00:13:26need instead I would do tree- L which
- 00:13:29which means we would go just two layer
- 00:13:31down which should be enough and then - I
- 00:13:33which means ignore so we don't want to
- 00:13:34include node module file so now it will
- 00:13:37give me a clean file structure here uh
- 00:13:40and I will copy this in Reddit analytics
- 00:13:43and then paste this file in to indicate
- 00:13:45what does existing project folder look
- 00:13:47like so now what we have here is a
- 00:13:49pretty decent starting point of the
- 00:13:52product requirement dot but that's not
- 00:13:53it to actually get a cursor produce
- 00:13:55really good result with less and less
- 00:13:57Arrow I actually want to give it initial
- 00:13:59PRD to 01 model or Cloud uh to design
- 00:14:03what does the final Pur structure should
- 00:14:05look like what kind of dependency Z will
- 00:14:06be and write out the final PRD to fill
- 00:14:09in all the details I personally found 01
- 00:14:12is really good at writing and filling
- 00:14:14those detail docks what I would normally
- 00:14:15do is copy the existing Pro requirement
- 00:14:18dog paste in here and then add a bottom
- 00:14:20and above is a project I want to build
- 00:14:22how should I structure my project file
- 00:14:24try to create as few files as possible
- 00:14:27because I found when you have less files
- 00:14:29cursor tend to have less arrows and
- 00:14:31click enter so you can see the O Model
- 00:14:33start syncing through a few different
- 00:14:35steps and then spit out a project
- 00:14:38structure file based on the requirements
- 00:14:40and after that I will give the Second
- 00:14:42Step help me adding details to the
- 00:14:44original PRD that give clear alignment
- 00:14:46to developers who are implement this
- 00:14:48project so don't create actual code just
- 00:14:50a PRD including file structure in the
- 00:14:52doc and all documents provided with both
- 00:14:55example code and response those are
- 00:14:56important context and click enter again
- 00:14:59o1 model will start singing through a
- 00:15:00few different steps and spit out a very
- 00:15:03detailed instructions of how this
- 00:15:05project should be created as well as
- 00:15:07updated Pera structures and code
- 00:15:09examples in the end it will give a very
- 00:15:12detailed breakdown of all different
- 00:15:14components okay great so this is really
- 00:15:16decent product requirement doc uh the
- 00:15:18only downside is you can't just copy
- 00:15:20paste in because it's not in markdown
- 00:15:22format so normally what I do is I go to
- 00:15:24Cloud paste this in and then say help me
- 00:15:27convert this to markdown and then Cloud
- 00:15:30will break that down into specific
- 00:15:32markdown files that I can copy paste in
- 00:15:35once this finished I will just copy this
- 00:15:37and paste into instruction. MD and save
- 00:15:41okay so this file should give cursor
- 00:15:43quite good amount of alignment so now I
- 00:15:45think we are pretty much ready to start
- 00:15:48getting cursor Wan so only last thing we
- 00:15:50want to create aemv local file and
- 00:15:52putting the credential of Reddit and
- 00:15:54open AI here and now let's get cursor to
- 00:15:56start implementing this project but
- 00:15:58before we diam I got a lot of DMS where
- 00:16:00people asking for more indepth tutorial
- 00:16:03of utilizing AI to build fully
- 00:16:05production ready applications and that's
- 00:16:07why I started a community called AI
- 00:16:09Builder Club where I'm spending lots of
- 00:16:11time every week adding really in-depth
- 00:16:14content of how can you use AI to bring
- 00:16:16your next startup ideas life it includes
- 00:16:18step-by-step tutorial of how to build
- 00:16:20real world use case with AI where our
- 00:16:23share best practice prompt and code
- 00:16:24example that I use in every single
- 00:16:27project and you can just copy paste case
- 00:16:29plug and play as well as some ready to
- 00:16:30use template for some common agents that
- 00:16:32you can build and most importantly you
- 00:16:34can go and post challenges and questions
- 00:16:37that you are experiencing in the
- 00:16:38community me or other community members
- 00:16:40will normally jump on and answering you
- 00:16:42can also see some secret tips that other
- 00:16:44AI builders in the community have tried
- 00:16:46and worked well for them if you think
- 00:16:48this is interesting you can click on the
- 00:16:49link in the description below to join
- 00:16:51and now we can start getting curser to
- 00:16:53build out this application using the
- 00:16:55fully flash out documents so I would do
- 00:16:58command I open cursor composer so let's
- 00:17:00give instruction let's build a RIT
- 00:17:02analytics platform based on instruction
- 00:17:04let's firstly build 1.1 view available
- 00:17:07subreddits enter so you can see that it
- 00:17:10will create files in all the right plac
- 00:17:13and I click accept and we can try to run
- 00:17:16this by doing mpm wrong dep okay great
- 00:17:19so we can see that the homepage already
- 00:17:22created listing out all the sub Rus
- 00:17:24available next let's build 1.2 adding
- 00:17:28new sub Rus so Crea new components under
- 00:17:31the components called add sarus model
- 00:17:33and it also ask me to add in those new
- 00:17:35components I believe I already added oh
- 00:17:38but looks like I didn't add the dialogue
- 00:17:40okay so I'm going to do npx chass and
- 00:17:42latest add dialogue now if I go back to
- 00:17:45Local Host 3000 I can see this new
- 00:17:47button called at subreddit if I click on
- 00:17:50that uh you can see the UI is a bit
- 00:17:52broken but we're going to come back to
- 00:17:54UI later first thing we just want to
- 00:17:55making sure everything works so the
- 00:17:57functionality of adding sub seem to be
- 00:17:59there and next we're just going to move
- 00:18:01on to the subredit detail page
- 00:18:03navigation let's view the next part of
- 00:18:08subreddit detail page navigation so it
- 00:18:11will basically create pages and files
- 00:18:13based on the predefined structure so if
- 00:18:16I go back to Local Host and click on the
- 00:18:18specific Reddit page you can see it
- 00:18:20navigate to that specific side page then
- 00:18:23I will ask you to move to second part
- 00:18:25adding the tabs great now let's build
- 00:18:28next part
- 00:18:30so you can see the beauty of predefined
- 00:18:32the product requirement doc like this is
- 00:18:34that you basically break task down into
- 00:18:36small steps that the cursor can take
- 00:18:38very well and I will accept all so if I
- 00:18:41go back to the app and click on this it
- 00:18:43will open the two tabs here as well and
- 00:18:46again I'm going to ignore the UI and
- 00:18:48just finish the functionalities so I'm
- 00:18:50going to give instruction now great
- 00:18:53let's build fashion RIT post uh 3.1 data
- 00:18:57retrieval so this should create a few
- 00:18:59different files and I will just click
- 00:19:01accept all and refresh the page here you
- 00:19:04will see there are looks like there's
- 00:19:06some arrows in terms of the modules so
- 00:19:08I'm going to paste the arrow into the
- 00:19:11cursor and help me resolve this Arrow so
- 00:19:15we might need to install this two uh
- 00:19:18libraries or just go to the other
- 00:19:19terminal install and I'll accept all now
- 00:19:22I can actually display the post great
- 00:19:25now let's build 3.2
- 00:19:29okay after this looks like no content is
- 00:19:31displayed so I'm going to go back I can
- 00:19:33see loading posts show up briefly on UI
- 00:19:36but later it disappear and no post are
- 00:19:38displayed on the interface help me
- 00:19:40things through the root cost Ling step
- 00:19:41by step so first say try to add some
- 00:19:44additional logins or accept this it
- 00:19:46looks like it says no post F which would
- 00:19:48be weird my guess is maybe the API is
- 00:19:51set up incorrectly so I can go to
- 00:19:54libraries rdit dots and give feedback uh
- 00:19:58it says no post found CU this because
- 00:20:01Reddit dots is not set up properly okay
- 00:20:05so it looks like the problem is that the
- 00:20:07client side versus server side where the
- 00:20:10rdts file was executed on the server
- 00:20:12side but the separ r tabs component is
- 00:20:15client side component so solution here
- 00:20:17is that to get the data flow from server
- 00:20:20side API to the client side components
- 00:20:22given this observation here are the
- 00:20:24potential root cost the client and
- 00:20:26component might not be able to make a
- 00:20:27service side API called directly so the
- 00:20:29solution here is it creating new API
- 00:20:32route to fetch post so now all the post
- 00:20:34has been updated poply and what I would
- 00:20:36do is I will quickly come here and then
- 00:20:38submit a commit set up project and fetch
- 00:20:43redit post commit so I going back to the
- 00:20:46cursor composer and also this is fashing
- 00:20:48RIT post now next based on instruction
- 00:20:51let's build the 4.1 post
- 00:20:54categorization uh I will accept all and
- 00:20:56go back to this page refresh okay so
- 00:20:59looks like here is Arrow I'm going to
- 00:21:01copy this arrow and uh add to composer
- 00:21:04help me identify root cost and resolve
- 00:21:06this issue let thing step by step accept
- 00:21:09all okay and next is I wanted to display
- 00:21:12categories as well so I would say next
- 00:21:14let's implement this 4.2 display
- 00:21:16categories okay so looks like this one
- 00:21:18issue that there's no actual
- 00:21:19categorization displayed so I'm going to
- 00:21:22go back cursor and then giveing
- 00:21:24instruction back if categorize post and
- 00:21:27point actually
- 00:21:29working okay if we go back to the
- 00:21:32reddits you can see again the end point
- 00:21:34here of open AI is not exactly what do
- 00:21:37we have in the instruction so I need to
- 00:21:39be more specific I'll go back to the
- 00:21:41instruction copy paste the code example
- 00:21:43or accept all first and then add Reddit
- 00:21:46TS paste the file in the categorized
- 00:21:49post function is not implemented
- 00:21:50correctly it has to be based on
- 00:21:52documentation we provided in this
- 00:21:53instruction file please refactor the
- 00:21:55code so accept all and I want to change
- 00:21:57this model to to be 4 uh mini and I
- 00:22:01still observe a few uh kind of weird
- 00:22:02part for some reason it just keep
- 00:22:04ignoring some specific part like beta so
- 00:22:07I just need to manually uh copy paste
- 00:22:09over those things and Okay cool so you
- 00:22:12can see that the category has being show
- 00:22:14off properly for each post if I go to SS
- 00:22:17I can click on each card and the
- 00:22:19relevant post will be displayed here
- 00:22:21great so I'm going to add it commit
- 00:22:23again uh categorize posts ready so you
- 00:22:27can see the core functional is
- 00:22:28implemented here I can see the top post
- 00:22:31I can also go to seams page future out
- 00:22:33post with specific categories but for
- 00:22:35anyone who is launching large L model
- 00:22:37based application you all got a new
- 00:22:39problem that you need to worry about
- 00:22:41which is how do you Monitor and alert
- 00:22:42the large L model usage and whether or
- 00:22:45not you optimize the cost structure
- 00:22:46there can really make a difference of
- 00:22:48whether your business succeed or not I
- 00:22:49give you one example a few months ago I
- 00:22:51launched a AI girlfriend and back then I
- 00:22:53offer a 60 seconds free Tri chat for
- 00:22:56every single user lots of people sign up
- 00:22:58but somehow I just never make money from
- 00:23:00it so I manually Implement a bunch of
- 00:23:02tracking to understand the cost
- 00:23:03structure there and later I realized for
- 00:23:05the 60 seconds free Tri if I have 1%
- 00:23:08conversion of all the users I need to
- 00:23:10charge at least $13 from each user to
- 00:23:12break event so it's really a balance
- 00:23:14between the performance cost and speed
- 00:23:16and the same case for this radit
- 00:23:18analytics platform we kind need to
- 00:23:19understand what is cost of every single
- 00:23:21large Lear mod call to together those
- 00:23:23categories and how many post do we
- 00:23:25normally have under one separ Addus
- 00:23:27that's why I normally were set top
- 00:23:28integration to large lar model
- 00:23:30observability platform like hadon so if
- 00:23:33you haven't heard about hadon before
- 00:23:34haacon is open- Source platform for
- 00:23:36logging monitoring and debugging lar L
- 00:23:39model applications where they give us
- 00:23:41ability to see exactly how people are
- 00:23:44interacting with our large Lang mode
- 00:23:46application track the cost arrows and
- 00:23:48latencies so that we can optimize for
- 00:23:50the performance and I can also do a
- 00:23:52bunch of very Advanced interesting
- 00:23:54things like automatic caching the
- 00:23:56response if the promp is same to to save
- 00:23:58the cost and improve speed send customer
- 00:24:00properties so that I can segment
- 00:24:02different type of requests and many more
- 00:24:04and the best part is it is extremely
- 00:24:06easy to set up so if you are calling an
- 00:24:08open AI model like me all we need to do
- 00:24:10just adding this base URL and additional
- 00:24:13headers from our open AI clients and
- 00:24:15that's pretty much it I can just copy
- 00:24:16this over and go back to cursor open the
- 00:24:19rit. TS which is where we make open Ai
- 00:24:21call and paste this in and add this
- 00:24:23environment variable headon that is
- 00:24:25pretty much it so now if I go to the RIT
- 00:24:27platform and open a subreddit after I
- 00:24:30get this response and it will
- 00:24:31automatically track that we made 200 lar
- 00:24:34mod request for that specific subreddit
- 00:24:36and that probably means we processed
- 00:24:38around 200 posts and those requests are
- 00:24:40from the same user basing in Australia
- 00:24:43which is me and total cost around 1 cent
- 00:24:45so that now I know the cost to onboard a
- 00:24:47fairly popular new sub Rus is around 1
- 00:24:50cent using the GPD 40 model and I can go
- 00:24:53to request to see the detail of every
- 00:24:55single requests as well as the actual
- 00:24:58prompt that we send to open ey and
- 00:25:00immediately I can spot the problems in
- 00:25:02my prompt for example the structure now
- 00:25:04is actually not very clear what are the
- 00:25:06actual post content because some of
- 00:25:08content looks like part of prompt and
- 00:25:10this might confuse lary model so I can
- 00:25:13immediately improve the performance by
- 00:25:14updating prompt here and save but on the
- 00:25:16other side you also have a URI that
- 00:25:18allow me to experiment with different
- 00:25:20prompt directly and also switch between
- 00:25:22different models and for each data while
- 00:25:23I'm reviewing that I can add this to a
- 00:25:25data set called bad sessions and this
- 00:25:27allow me to create data set that I can
- 00:25:29use to either evaluate the new model or
- 00:25:32ply or F tune the model so I highly
- 00:25:34recommend that you set up your L mode
- 00:25:36application with those logging and
- 00:25:37morning platform and headon is one of
- 00:25:39the best one I have put the link in the
- 00:25:41description below for you to try out
- 00:25:43headon for free after we connect this to
- 00:25:45Helicon the next thing is we want to set
- 00:25:46up the back end so we have the core
- 00:25:48functionality kind of implemented for
- 00:25:50this RIT analytics platform but Annoying
- 00:25:53part now is that every time when someone
- 00:25:55click on this subr page it will refresh
- 00:25:57all the posts and then going through the
- 00:26:00open AI to analyze and categorize posts
- 00:26:02which is not optimal and going to cost a
- 00:26:05lot of money so what IDE I want to do is
- 00:26:07that when someone open the page and fet
- 00:26:09the data for the first time I want to
- 00:26:10save this data on a database so that
- 00:26:13next time when someone else open this
- 00:26:15page we can check what is the last time
- 00:26:17we fin the data from Reddit if it is
- 00:26:19within 24 hours let's not update again
- 00:26:22so to do that we actually need cursor to
- 00:26:24implement a kind of new functionality to
- 00:26:26save the data somewhere I want to
- 00:26:27showcase this because this is a great
- 00:26:29example to Showcase how can you add new
- 00:26:31features to exist pures they already set
- 00:26:33up so to do that instead of just open
- 00:26:36cursor and ask it to implement the whole
- 00:26:38project I will actually open the side
- 00:26:40panel and add codebase so this is really
- 00:26:43powerful feature where cursor actually
- 00:26:45allow us to reference the whole code
- 00:26:47base and I can specify certain files to
- 00:26:49include and exclude for example I
- 00:26:51probably don't want the node modules
- 00:26:53folder so I put node modules folder by
- 00:26:56the way I don't know if putting the
- 00:26:57folder name going to work but I just
- 00:26:59going to put it here uh if you know the
- 00:27:00answer please comment below let me know
- 00:27:02and I'm going to put detail instruction
- 00:27:04so I have this project build based upon
- 00:27:07the original instruction but currently
- 00:27:09we need to fetch R data and call open
- 00:27:11API every time when someone open the
- 00:27:13subr page which is not optimal I want a
- 00:27:16backend engineer to connect it to super
- 00:27:18base and save RIT post data and AI
- 00:27:20analysis data to superbase and only
- 00:27:22fetch data if the last update time is
- 00:27:25older than 24 hours ago help me generate
- 00:27:27detail stock that can help back and
- 00:27:29developer understand this project
- 00:27:31structure what cool parts to build for
- 00:27:33super base integration that compatible
- 00:27:35with this current project structure no
- 00:27:37need to include actual code example just
- 00:27:39the design do by the way if you don't
- 00:27:41know what superbase is super base is
- 00:27:43open source project that offered
- 00:27:45complete backhand for both mobile and
- 00:27:47web application it was introduced back
- 00:27:492020 and got popularity very very
- 00:27:52quickly because before super base you
- 00:27:54basic have two options for building
- 00:27:55backand one is Firebase another is a WS
- 00:27:58amplify they both kind of works but
- 00:28:00problem is it kind of lock you into
- 00:28:02specific vendors which is not optimal
- 00:28:05that's why super Bas grow so fast
- 00:28:07because it allow you to build backhand
- 00:28:08and host anywhere you want and they
- 00:28:10provide full backhand service for
- 00:28:12database authentication storage and even
- 00:28:15Vector storage now and offer front and
- 00:28:17SDK to connect to the backand very
- 00:28:19easily and if you haven't buil any kind
- 00:28:21of backand feature before it might feel
- 00:28:24stunning but it's actually easier than
- 00:28:25you saw what you really need is kind of
- 00:28:28Define what kind of data we actually
- 00:28:29need to store about your application for
- 00:28:32example in our case you probably always
- 00:28:33want to have a table for profile so that
- 00:28:35we can track the users you can even add
- 00:28:38things like tier to tracking the pricing
- 00:28:40tier how many credits they left and
- 00:28:42strip customer ID and subscription ID if
- 00:28:44you are building the payments into the
- 00:28:45platform as well as sub ratus so we want
- 00:28:48to track the list of different Subarus
- 00:28:50and the last updated time and list of
- 00:28:52posts for each post we want to track
- 00:28:53title content scores and list of
- 00:28:56categories so you can basically think
- 00:28:58them as spread sheets what kind of
- 00:28:59sheets you need and what kind of columns
- 00:29:01you need for each sheet but if you don't
- 00:29:03know what specific columns that will be
- 00:29:05needed don't worry you can ask AI to
- 00:29:07help you figure out so go back to cursor
- 00:29:09so first thing I will do is I will open
- 00:29:11Terminal and get file structure uh so I
- 00:29:13will use the same command but this time
- 00:29:15I will use three layers deep so this
- 00:29:18will give me uh the latest file
- 00:29:20structure and I'm going to copy this
- 00:29:22over and I'm just going to the
- 00:29:24instruction. MD and update the file
- 00:29:27structure here and then I'm going to
- 00:29:29copy this over to the instruction on the
- 00:29:31right side and give instruction I have a
- 00:29:33project built based on the instruction.
- 00:29:35MD but currently we need to fast red
- 00:29:38data and call open API every time which
- 00:29:41is not optimal I want a backend engineer
- 00:29:43to connect to super base save each
- 00:29:45separated data to super base and only
- 00:29:47fetch data if the last update time is
- 00:29:50older than 24 hours ago help me generate
- 00:29:52detailed documentations they help
- 00:29:54backand developer understand project
- 00:29:56structure what a cool parts beautiful
- 00:29:58superbase integration that compatible
- 00:30:00with current project structure and what
- 00:30:03database should we create and what
- 00:30:05optimal schema should look like let's
- 00:30:07sync step by step and I actually want to
- 00:30:09use 01 preview model here directly and
- 00:30:12click enter okay now it return back a
- 00:30:15very detailed documentations where it
- 00:30:17talk about how the data currently FL it
- 00:30:20also show me the actual database schema
- 00:30:22design and data fashion logic as well as
- 00:30:25detail steps so this is really good next
- 00:30:27thing is actually want to convert this
- 00:30:29into a markdown file then I can get
- 00:30:31cursor to refer to so I'm going to copy
- 00:30:33paste the hos thing and go to cursor
- 00:30:35help me convert this into proper
- 00:30:39markdown format okay great so I can copy
- 00:30:42this over uh go to instructions folder
- 00:30:45and create a new one called superbase
- 00:30:48setup. MD paste this is in and we do
- 00:30:51need to update one part which is the
- 00:30:53file structure I will need to copy the
- 00:30:55latest file structure into here and Save
- 00:30:58and before we get into cursor we need to
- 00:31:00do a few steps firstly we need to
- 00:31:01install uh super based client Library
- 00:31:04our open Terminal and paste in and then
- 00:31:07next we can start using cursor composer
- 00:31:09so I'm going to open cursor composer and
- 00:31:11then say we need to implement super base
- 00:31:16integration for this current Project
- 00:31:19based on instruction here super base
- 00:31:23First St to initialize clients so enter
- 00:31:26so you can accept all and next it will
- 00:31:27we need to add the credential into env.
- 00:31:30loal and to do that we need to set up
- 00:31:33the superbase project first so I'm going
- 00:31:35to go to super base and create new
- 00:31:37project I'm going to give a name edit
- 00:31:39analytics and give
- 00:31:43password okay great and after the
- 00:31:45project created I will go to Project
- 00:31:48settings and API then here we will get
- 00:31:51the credential we need one is URL
- 00:31:53another is service row credentials and
- 00:31:55after that we will need to create the
- 00:31:57two database table as well so there are
- 00:31:59two ways you can do that either you can
- 00:32:01go to table editor and create a new
- 00:32:03table uh by just typing the name of
- 00:32:05table and adding the colum based on
- 00:32:07instruction or we can actually go to
- 00:32:09cloud and then give instruction give me
- 00:32:12the SQL command to create all tables in
- 00:32:16super base directly then it will give me
- 00:32:19this SQL code I can copy and go to the
- 00:32:22SQL editor paste it in and then run okay
- 00:32:25and after it's running you can go to
- 00:32:27table all those tabl should be created
- 00:32:29already according to the instruction so
- 00:32:31I'm going to uh give the instruction
- 00:32:33grid I've set up superbase project table
- 00:32:35and add environment variables now let's
- 00:32:37do next step to initialize superbase
- 00:32:39client and modify the data fashion logic
- 00:32:42and I'm going to copy paste the specific
- 00:32:44part into here as well and click enter
- 00:32:47so I'm going to click accept all and
- 00:32:49then do let's do step six update PR now
- 00:32:54and accept all uh and the next step now
- 00:32:57let's test data flow okay I can see I
- 00:33:00got a few arrows so past those arrow in
- 00:33:03got this Arrow after loading sub page
- 00:33:08and accept all okay and thanks for the
- 00:33:10log before I can see that we
- 00:33:12successfully fashed data from Reddit but
- 00:33:14got Arrow actually upserting data so it
- 00:33:16says couldn't find advice request okay
- 00:33:19so I guess probably reference wrong
- 00:33:21scheme even though it is including in
- 00:33:23the doc so this time I'm going to be
- 00:33:25more specific copy paste actual specific
- 00:33:27scheme in and then copy paste this arrow
- 00:33:29in I got this Arrow seems fail to push
- 00:33:34data to super base please refer to the
- 00:33:39actual sub red to actual tables and
- 00:33:42schemas we set in super base let think
- 00:33:46step by step yeah save this and if I
- 00:33:49refresh again I got another arrow so so
- 00:33:51I'm going copy paste in I go this Arrow
- 00:33:55after updating TS okay and our accept
- 00:33:59and we got another arrow here related to
- 00:34:02super base so I'm going to copy paste in
- 00:34:05and enter so it says that duplicate key
- 00:34:07Arrow as well as category is not defined
- 00:34:10so it is fixing those ones okay cool so
- 00:34:12I can see the post has loaded and uh
- 00:34:15there are also uh post created sub
- 00:34:18loaded as well as uh post categories
- 00:34:22however I do get it arrow and looks like
- 00:34:24the issue is that for some reason it
- 00:34:27kind of F the data twice so I will go
- 00:34:30back to cursor and then copy paste this
- 00:34:32in everything seems working now I can
- 00:34:34see data stand to super base the only
- 00:34:36issue is that it seems that somehow we
- 00:34:38fetch dat twice after initial fetch
- 00:34:41succeed this letter Arrow I pasted what
- 00:34:43could be the root cost okay great so now
- 00:34:45I can see data is loaded poply on the
- 00:34:48front end and if I quit this page and
- 00:34:51coming again you can see dat load much
- 00:34:54faster because reading data is from the
- 00:34:56super base the only issue is that the
- 00:34:58comment data didn't seem to be loaded
- 00:35:00create ad data is not loaded the
- 00:35:02category is also not loaded so I'm going
- 00:35:05to go back to cursor so here I will give
- 00:35:07instruction that there are some issues
- 00:35:09for top right post command created
- 00:35:11category data then seem to load down
- 00:35:13front end and for Sims no data is loaded
- 00:35:16too but I can see in super baseer data
- 00:35:18exist what could be the ru cost okay so
- 00:35:21it give me answer but for some reason it
- 00:35:23didn't really update the file directly
- 00:35:25so I'm just going to manually copy paste
- 00:35:27in so you can just copy this function
- 00:35:29name go to search uh and then you will
- 00:35:31find a specific file so we need to
- 00:35:34update this part I'm going to update
- 00:35:37this part as well as the return value so
- 00:35:40I save this and refresh okay so you can
- 00:35:43see the comments data and the create
- 00:35:45data has been displayed properly the
- 00:35:47only thing is the category data still is
- 00:35:50not pulling through and let me just
- 00:35:52double check I do think the post
- 00:35:54categories are create pop so I will so
- 00:35:58give instruction great the created and
- 00:36:01commands data are displayed now however
- 00:36:04no category data is loaded what could be
- 00:36:09the ru cost help me Sy through step by
- 00:36:13step and what I also probably do I would
- 00:36:15just copy paste the command we have
- 00:36:19about the schema above is the table
- 00:36:22details we use to create uh super based
- 00:36:27table as reference so I say so I pasting
- 00:36:31the actual SQL that we use to create
- 00:36:33table to give it more context and then
- 00:36:35tell it to uh no category data is loaded
- 00:36:38what could be root cost help me Sy step
- 00:36:40by step and above is a reference okay so
- 00:36:43it ask me to add in uh the debuging for
- 00:36:46so I just add it and then try to load
- 00:36:49the data again so I can see that the
- 00:36:51post category looks something like this
- 00:36:54so I tell it post category looks like an
- 00:36:59array of object our pting like this okay
- 00:37:04great so everything is working now uh I
- 00:37:07can see that it's added to super base
- 00:37:10and I can go back and click again data
- 00:37:13will be loaded instantly but if the
- 00:37:15first time I open something it will load
- 00:37:17the data and sync all the data to super
- 00:37:20base so this actually how you can build
- 00:37:22a new feature on top of project that
- 00:37:25already exist and the last part I want
- 00:37:27to show you is how can you make your UI
- 00:37:29looks a lot better so I'm sure you
- 00:37:31definitely heard about vzer which is
- 00:37:33kind of generative UI platform
- 00:37:34introduced by versal a lot of people are
- 00:37:36talking about it but it might be not
- 00:37:38super clear to you about when should you
- 00:37:40use VZ for my experience you can
- 00:37:42basically use cursor to build out the
- 00:37:43functionality of your application and in
- 00:37:46the end you can go back ask v0 to make
- 00:37:48your UI looks a lot better and it's a
- 00:37:50lot easier than you saw I will show you
- 00:37:52how so I basically ask v0 to help me
- 00:37:54update UI Page by page for example I
- 00:37:57will go back to my app and choose page.
- 00:37:59TSX which is kind of like homepage where
- 00:38:02I display all the Rus and what I would
- 00:38:04do is I will basically just go to vzer
- 00:38:06and paste in the page. TSX and then I'll
- 00:38:08give instruction I'm building a RIT
- 00:38:10analytics platform above is homepage
- 00:38:12displaying all the sub R is available
- 00:38:14please keep the functionality exactly
- 00:38:16like above but make UI a lot better
- 00:38:18remember only changes UI do not change
- 00:38:20functionality and variables so I will
- 00:38:22click enter what it will do is that it
- 00:38:24will St spit out the UI it might give
- 00:38:26you some error but you can ignore that I
- 00:38:28will just come here and copy paste this
- 00:38:30code and go back save you can see the UI
- 00:38:33looks a lot better and different so this
- 00:38:36is basically how we going to update UI
- 00:38:38we basically just need to change things
- 00:38:40bit by bit so next thing is I want to
- 00:38:41update the add subreddit button so now
- 00:38:44I'm going to go back to components and
- 00:38:46let's change as SE model button so I'm
- 00:38:49going to copy things in above is seated
- 00:38:53model and button and again I'm going to
- 00:38:55uh copy the same uh kind of code same
- 00:38:59prompt here please keep the function at
- 00:39:01exactly same as above but make UI a lot
- 00:39:03better and once it's finished I'm going
- 00:39:05to copy this over paste in okay one
- 00:39:07thing I did try again is add this part
- 00:39:10making sure the same style as the
- 00:39:12previous page you created so that things
- 00:39:14will be consistent uh all right I will
- 00:39:16copy this in save okay so now you can
- 00:39:19see the button is also in the same style
- 00:39:21as well if I click on that it will give
- 00:39:23me the kind of dark mode model and next
- 00:39:26thing I want to change those uh cards
- 00:39:28that display in the subreddit as well so
- 00:39:30I will go to subreddit card basically do
- 00:39:32the same thing copy those over and I
- 00:39:35just copy exactly same prompt okay so
- 00:39:37the card has been created uh I can copy
- 00:39:40this paste in uh great now the style you
- 00:39:43can see is the same as everything else
- 00:39:46on the platform next I will go to the
- 00:39:48subreddit page and there I will firstly
- 00:39:50go to the Subarus page and paste it in
- 00:39:53and use the same prompt and give
- 00:39:56instruction great above subred page
- 00:39:58displaying detail of this subed
- 00:40:00analytics uh and enter okay once this is
- 00:40:02finished even though it shows Arrow here
- 00:40:05but I'm going to ignore that and just
- 00:40:06copy this paste in here cool so you can
- 00:40:10see that the overall structure looks
- 00:40:12more and more similar we only have a few
- 00:40:15things left subred tabs um copy that in
- 00:40:19and paste over okay still look a bit
- 00:40:21wrong but I will just copy this code
- 00:40:23over and uh go back to cursor save it uh
- 00:40:27and go back here okay it actually does
- 00:40:30look pretty good it kind of blend into
- 00:40:32the dark mode same overall um the next
- 00:40:35thing I want to do is that I want to
- 00:40:37update table so I will uh go back to the
- 00:40:41post table copy this and paste it over
- 00:40:44nice so it looks a lot better now with
- 00:40:46the right color scheme and the Addison
- 00:40:49icon as well obviously you can promp it
- 00:40:52further to get the right style you want
- 00:40:54I'm just going to move on to the last
- 00:40:55part which is same card so paces and
- 00:40:58paste in awesome so you can see that now
- 00:41:01the UI is a lot more flash out than
- 00:41:02before and everything looks a lot more
- 00:41:05cohesive and obviously if you don't like
- 00:41:07a style you can prompt V Zer to change
- 00:41:10style as well but I would suggest you do
- 00:41:12at very beginning so this is how you can
- 00:41:14set up a fully functional web app with
- 00:41:17beautiful UI and backand setup the last
- 00:41:20thing is that we actually want to bring
- 00:41:21this app live so the rest of world can
- 00:41:23see it and to do that we're going to use
- 00:41:25Verso which is company behind next JS
- 00:41:27and they made it deployment a lot easier
- 00:41:30uh so you can basically go to Verso
- 00:41:32create account and choose this purchase
- 00:41:33GitHub repo and going through a
- 00:41:35deployment process which normally
- 00:41:37involves some kind of debug process as
- 00:41:38well I'm not going to go into details
- 00:41:41and if you want to learn details about
- 00:41:42how do you actually deploy the web app
- 00:41:45Val versal you can check out the other
- 00:41:47video where I dive deep into every
- 00:41:48single step that's needed to put your
- 00:41:51app life I've put that link in the
- 00:41:53description below so you can check out
- 00:41:54so this is some of my best practice
- 00:41:56workflow of how do I use cursor to build
- 00:41:59fully functional application by creating
- 00:42:01very detailed documentations I hope you
- 00:42:03find this useful I highly recommend to
- 00:42:05try out and even build some kind of more
- 00:42:07advanced function that maybe chat with
- 00:42:09this redit data and if you want to learn
- 00:42:11detail things like how do you build user
- 00:42:13authentication with cursor and how do
- 00:42:15you connect to stripe so that you can
- 00:42:17charge different pricing tier you can
- 00:42:19join my community AI Builder Club where
- 00:42:21I share a lot of tips and detailed
- 00:42:23prompts and code example of how to build
- 00:42:25AI applications and each one of them has
- 00:42:27my best practice prompts that I
- 00:42:29personally use for every single project
- 00:42:31where you can just copy paste Plug and
- 00:42:33Play plus you get to connect with other
- 00:42:35AI Builders who might already experience
- 00:42:37problem that you are facing right now so
- 00:42:39you can click the link in the
- 00:42:41description below to join my community
- 00:42:42today I hope you enjoy this video I will
- 00:42:44continue sharing interesting a Pur I'm
- 00:42:46doing so please like And subscribe if
- 00:42:49you want to keep update thank you and I
- 00:42:50see you next time
- Cursor
- AI code editor
- Gummy Search
- Reddit analytics
- Superbase
- Hadon
- Vercel
- Next.js
- community support
- application development