Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using Next.js 13 and OpenAI to Build a Joke Generator Website

Linode via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to build a random joke generator website using Next.js 13 and OpenAI's API in this comprehensive tutorial. Explore new features of Next.js 13 while creating a custom root, generating meta descriptions, and implementing layouts. Master import aliases, design a responsive footer and navbar, and integrate a carousel for content display. Dive into JSON manipulation, random joke insertion, and effective use of React hooks like useEffect. Enhance user interaction with a regenerate button and apply styling techniques for a polished interface. Follow along step-by-step to create a fully functional joke generator website, gaining practical experience with Next.js 13 and OpenAI integration.

Syllabus

Introduction
Create New Project
Start YARN Dev
Install Yarn
VSCode TIp!
Create Custom Root
Generate Meta Description
Using Layout.js
Import Aliases
Create Footer
Create Navbar
Style Footer
Create Content
Create Slider
Install Carousel
Remove Unneeded Buttons
Adjust Width
Generate Jokes in JSON Format
Insert Jokes
Ensure Joke Insertion is Random
Import useEffect
Use Dangerously Set HTML
Add Class to Joke Div
Create Regenerate Button
Add Jokes JSON
Check Page
Conclusion

Taught by

Linode

Reviews

Start your review of Using Next.js 13 and OpenAI to Build a Joke Generator Website

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.