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