4.6 out of 5
4.6
13 reviews on Udemy

Next.js & React with ChatGPT – Development Guide (2023)

Build ChatGPT integration with Next.js & React to build an AI-powered chatbot for learning coding. All with javascript!
Instructor:
Eincode by Filip Jerga
447 students enrolled
English [Auto]
Learn to integrate ChatGPT to Next JS app
Get an understanding on how to use ChatGPT in the code
Use Next JS to create an AI chat app
Establish yourself in the field of the AI Web Development

What is Next.js?

Next.js is a React-based framework that provides infrastructure and simple development experience for server-side rendered(SSR) & static page applications.

  • An intuitive page-based routing system (with support for dynamic routes)
  • Pre-rendering, both static generation (SSG) and server-side rendering (SSR), are supported on a per-page basis.

What is ChatGPT?

ChatGPT is a powerful AI language model created by OpenAI that can understand and respond to text inputs like a human. It has been trained on vast amounts of text data, making it a versatile tool for various language-based applications.

 

What are you going to work on?

Throughout the course, you will gain experience developing a Next JS application from the ground up. Additionally, you’ll receive instruction on integrating OpenAI’s ChatGPT to create a chatbot application that enables users to ask the AI any questions about a specific technology stack, such as a library, framework, or programming language that will be taught in the course. The ultimate goal of the course is to equip you with the skills necessary to create a functional chatbot app.

 

A big portion of the course is preparing the application layout, improving user experience, and getting everything together from scratch. Every part of the course is skippable, with the option to download the version of the project from any stage of the course.

 

The course covers a text completion fromΒ OpenAI, mostly used for Chatbots.Β The course doesn’t focus on covering every topic of chatGPT but rather provides a practical development guide on how to integrate the ai model into the Next JS application.

 

The course can be briefly summarized in these points:

 

  • Layout preparationΒ – Several lectures are provided to prepare the application layout, with everything built from scratch. Each lecture is optional and can be skipped.
  • Components – Code parts are organized into components for better management.
  • APIΒ Route -An API route is established to handle user queries and provide ChatGPT’s response.
  • ChatGPT – ChatGPT is initially integrated with a simple setup.
  • ChatGPT parameters – The parameters that influence AI decisions are explained.
  • Markdown – The response generated by ChatGPT is formatted in Markdown.
  • Sessions – Although the course doesn’t cover authentication, different user scenarios are simulated using sessions/cookies.
  • In-memoryΒ DB – The application uses lowDB as an in-memory database for data storage.
  • AIΒ memoryΒ  – Chat history is stored in an in-memory database, enabling the AI model to access more context.
  • Personalize AI – Each chatbot has a unique personality and specific knowledge of a framework.
  • Deployment – The application will be deployed on Vercel.

While working on the features above, the students will learn and understand ChatGPT features and parameters. They will know how to architecture applications and will be able to create their applications with Next JS and ChatGPT integration.

Introduction

1
Introduction
2
What to expect from the course
3
How to resolve issues or skip lecture

Layout Preparation

1
Init Project
2
Tailwind init
3
Center content
4
Json data and assets
5
Render Stacks
6
Border hover classes
7
Code Exercise
8
Quiz

Stack Page

1
Stack Page
2
Adds header
3
Message layout
4
Textarea for prompt
5
Move code to components
6
Different classes for messages
7
Handle prompt value
8
Add messages
9
Scroll to bottom
10
Code Exercise
11
Quiz

Completion API Route

1
Completion Api route
2
Send data to Api
3
Get response from request
4
Add ai message
5
Typewriter effect
6
Blinking cursor
7
Disable typewriter
8
Code exercise
9
Quiz

OpenAI - ChatGPT

1
OpenAI Account + Api keys
2
Completion API
3
ChatGPT Params
4
In-Code Params
5
Debug config
6
Make better prompt
7
Hardcode response
8
Quiz

Markdown

1
React markdown
2
Code highlight
3
Code cleanup
4
Use Effect Fix
5
Fix typewriter styles
6
Quiz

Sessions - Cookies

1
Session keys
2
Set active session
3
Init iron sessions
4
Api endpoint to store session
5
Storing user in session
6
Code exercise
7
Quiz

Get User

1
Retrieve user in Post endpoint
2
Fetch user client side
3
Move fetch user to hook
4
Display uid in ui
5
Set active session on reload
6
Select default session
7
Code Exercise

Message History

1
Init lowDb
2
Cache DB
3
Store message history
4
Save data to DB
5
Feed history to chatGPT
6
Message history memory size
7
Clear history on chat enter
8
Different bots
9
Handle case when no messages
10
Code exercise
11
Quiz

Deployment

1
Github repo
2
Deploy app to vercel
3
Store in-memory & Course Finish
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.6
4.6 out of 5
13 Ratings

Detailed Rating

Stars 5
8
Stars 4
5
Stars 3
0
Stars 2
0
Stars 1
0
45ce8b5702b0245741625487a184cad1
30-Day Money-Back Guarantee

Includes

7 hours on-demand video
1 article
Full lifetime access
Access on mobile and TV
Certificate of Completion