Frontend Masters - Build an AI-Powered Fullstack Next.js App, v3 2023
14 👀
Harry Potter

Harry Potter

Aug 31, 2023

Frontend Masters - Build an AI-Powered Fullstack Next.js App, v3 2023

Make a full-stack AI-powered Journal app without any preparation in Next.js. Perceive how every one of the bits of Next.js/React fit together: client components, server components, static and dynamic routing, server actions, middleware, and layouts. Store information in a serverless Prisma DB on PlanetScale and coordinate the OpenAI API and Langchain prior to sending your app to the world!

This course and others like it are available as a component of our Frontend Masters video subscription.

Published: August 12, 2023


Chapter by chapter guide


00:00:00 - 00:08:29


Scott Moss presents the course and exhibits the AI-powered application that will be worked without any preparation with Next.js. The application permits clients to sign in and manage journal sections with the standard Muck tasks. The sections are analyzed and given an AI-produced opinion worth, rundown, and variety. The application will be worked without any preparation, and the last form can be found in the GitHub repo connected underneath.

App Arrangement and Confirmation

00:08:30 - 00:13:54

Arrangement App and Landing page

Scott utilizes the 'make next-app' CLI device to platform another application. Next.js variant 13.4.5 is suggested for this course. The default application code is eliminated, and a Prettier config is added.

00:13:55 - 00:23:38

Landing page with Tailwind CSS and Connection

Scott codes the landing page format. JSX is added and incorporates a title, portrayal, and a button to take the client to the journal page. Tailwind CSS classes are applied to style the page.

00:23:39 - 00:40:05

Verification with Assistant

Scott presents Representative, which will handle the application's confirmation. Representative permits various auth suppliers to be arranged. The Agent library is introduced, and SignIn and Information exchange components are added to their comparing pages.

00:40:06 - 00:51:53

Validation Middleware

Scott makes a middleware capability to guarantee all courses with the exception of the landing page are safeguarded by the validation supplier. Sign-in and join redirection is designed and the confirmation stream is tried.

Interfacing with an Information base

00:51:54 - 00:57:21

Understanding Webhooks

Scott explains why webhooks can assist with incorporating numerous administrations. At the point when an occasion in one help is set off, an API call can push information to another assistance or server to maintain synchronicity between administrations. The auth branch can be utilized as a beginning stage for this illustration.

00:57:22 - 01:10:43

Serverless Data set with PlanetScale

Scott makes a data set in PlanetScale, a data set climate viable with serverless applications. The data set is provisioned, and the pscale CLI instrument is introduced, which permits the neighborhood application to interface with the data set.

01:10:44 - 01:20:20

Arrangement Prisma ORM

Scott introduces and instates the Prisma ORM. A fundamental Client blueprint is composed and pushed to PlaneScale.

01:20:21 - 01:29:59

Client and JournalEntry Blueprints

Scott finishes the Client and JournalEntry blueprints. A connection between the two blueprints is laid out, and Prisma will guarantee the names and types between the joined fields match.

01:30:00 - 01:35:32

Analysis Outline

Scott makes the Analysis outline. An analysis contains the state of mind, outline, variety, and a boolean worth addressing whether the section is negative.

01:35:33 - 01:39:36

Information base Utility Techniques

Scott makes an information base utility technique for managing associations. With hot module reloading, different data set association articles can be made and cause issues in the application. These utility strategies check assuming that the association has proactively been laid out and reuse the current association.

Building the Journal Page

01:39:37 - 02:00:14

Making Another Client

Scott codes the work process for making another client. At the point when Representative makes another client, they are diverted to new-client course where the client information is shipped off Prisma. When Prisma is refreshed, the client is diverted to the journal page. The db branch can be utilized as a beginning stage for this illustration.

02:00:15 - 02:07:50

Making the Journal Page

Scott makes the journal page. A format is made to contain any components like headers and sidebars that will be reused across the subpages of the journal course.

02:07:51 - 02:10:22

Client Profile Gadget

Scott exhibits how to integrate a client profile gadget given by the Representative validation administration.

02:10:23 - 02:23:48

Choosing Journal Sections

Scott imports the data set partner library to the journal page and makes a getEntries strategy for recovering sections from the ongoing client.

02:23:49 - 02:37:12

New Journal Section UI

Scott makes EntryCard and NewEntryCard components. These components are answerable for showing existing sections and making new passages. They are added to the journal page, and extra Tailwind CSS classes are applied.

Making and Refreshing Journal Sections

02:37:13 - 02:56:46

Making Another Section

Scott makes the course for the new journal passages. A tick handler is utilized to explore to the new course by appending the ID of the new passage to the furthest limit of the URL. The journal-page branch can be utilized as a beginning stage for this illustration.

02:56:47 - 03:01:09

EntryCard Part UI

Scott adds a couple of Tailwind CSS classes to the EntryCard part. A Connection part is utilized to explore to the singular section page.

03:01:10 - 03:06:23

Making the Section Page

Scott makes the journal section supervisor page. This page will show when a client explores to a singular section. Issues around the revalidation of information among client and server components are additionally talked about in this example.

03:06:24 - 03:08:48


Scott talked about the issues with revalidating information on resulting courses. Since client and server information are not connected, client-side courses requiring refreshed information from the server should be revalidated.

03:08:49 - 03:17:05

Showing Section Details

Scott starts adding a word processor to the EntryCard part. A compound constraint should be added to the Prisma blueprint to choose remarkable sections having a place with the verified client. The blend of the client's id and the passage's id makes a virtual key for choosing the section from the information base.

03:17:06 - 03:21:00

Journal Passage Supervisor

Scott involves a textarea component as the manager for the journal passage. The client-side state is managed with the useState snare.

03:21:01 - 03:32:36

Refreshing Journal Sections

Scott makes a course for refreshing the section content. A Fix technique gets the solicitation item and URL boundaries. An updateEntry API strategy is additionally added to the application.

03:32:37 - 03:44:32

Autosaving Sections

Scott carries out autosaving with the react-autosave library to save the section content as the application state is refreshed. A stacking state is added, and debouncing can be controlled with the span property.

Understanding AI and Brief Designing

03:44:33 - 03:55:02

Sidebar UI

Scott makes the sidebar to show the section's rundown, subject, and temperament data. A foundation variety changes in light of the general state of mind of the section. The passage manager branch can be utilized as a beginning stage for this illustration.

03:55:03 - 04:01:58

LLMs and Prompts

Scott presents Enormous Language Models (LLMs). One of the most famous LLMs is GPT, made by OpenAI. Prompts and the Langchain system are likewise presented in this example.

04:01:59 - 04:10:24

OpenAI Arrangement

Scott strolls through how to make an OpenAI API account. First-time clients will be given a $5 credit for API utilization. A Visa can be added after the credits have terminated. An API key is made and added to the applications .env.local document, and the principal brief is shipped off the API.

04:10:25 - 04:16:06

Making Steady Prompts

Scott exhibits how to give a brief that profits reliable outcomes. Giving an illustration of the information to be gotten back from the LLM makes more consistency and decreases how much parsing required back in the application.

04:16:07 - 04:29:52

Organized Result with Zod

Scott utilizes the Zod library to supply the LLM with a diagram for the outcomes got back from the LMM. Types and portrayals are accommodated every information property. Temperature is likewise explained in this illustration.

Analyzing Passages

04:29:53 - 04:37:07

Brief Format

Scott utilizes the PromptTemplate object from the Langchain library to make the payload shipped off the OpenAI API. The brief layout incorporates the organized result from the Zod library alongside the directions for the LLM.

04:37:08 - 04:43:50

Testing the Brief Format

Scott tests the new brief format and logs the outcomes to the control center. The layout depicts the JSON object waiting be returned and sends general data about JSON so the LLM understands the configuration.

04:43:51 - 04:53:16

Saving Analysis to Information base

Scott refreshes the journal API so analysis is added to the information base while making a journal section. The OpenAI API call returns the analysis information, and Prisma composes it to the PlanetScale data set.

04:53:17 - 04:57:23

Associating the Sidebar UI

Scott utilizes the incorporate property to pull in the information from the analysis table while choosing an extraordinary journal passage. The analysis information is added to the sidebar UI.

04:57:24 - 05:09:16

Adding Analysis Information to Section

Scott calls the OpenAI API when section content is refreshed. The upsert strategy is utilized, so any passages without analysis will have one made. The analyze branch can be utilized as a beginning stage for this illustration.

05:09:17 - 05:22:57

Revalidation and Client State Management

Scott examines revalidation and how to refresh the client UI when another analysis gets back from the API. The sidebar is moved into the Manager part to use the client-side state management available to client components.

05:22:58 - 05:25:22


Scott adds two or three route connects to the passed on side of the application to explore to the landing page and to the journal page.

Vectors and Closeness Looking

05:25:23 - 05:32:08

Passage Search UI

Scott makes the UI and composes the client-side code for the pursuit structure, permitting clients to pose inquiries to the OpenAI API .

Useful Links:

Wait a second...

Watch 👉How to download video

Fullstack Next.js App ❤️
Zip/rar files password can be one of these :- FreeCourseUniverse OR CheapUniverse
Harry Potter

Harry Potter

Hey Guys We are Tech Enthusiasts and we know knowledge is key to success ! We are here to open path to your success by providing what you want. Today education == business. Our moto is education should be accessible by any person who is not able to purchase overpriced content.

Leave a comment

0 Comment


Membership Plans

We are bringing so many new things at the fraction of a cost....


    How to download ??


    This site is hosted on Digital Ocean

    Get $200 credit Instantly

    Offer available for limited time
    ( Take advantage of free credits 👇 )
    DigitalOcean Referral Badge

    Related Posts

    Taken Down Resources


    © 2023 CheapUniverse. All Rights Reserved