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

YouTube

Your First Full-Stack Next.js Project - Server Components, Server Actions, Suspense, Kinde

ByteGrad via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Build a complete full-stack web application using Next.js 14's latest features including Server Components, Server Actions, and Suspense in this comprehensive 2-hour tutorial. Start by setting up a fresh Next.js project and explore the application structure, then implement routing and global styling with Tailwind CSS. Create essential components like headers, footers, and navigation with proper Link components and active link styling. Learn the fundamental differences between Server Components and Client Components while implementing data fetching patterns and understanding Next.js architecture. Develop dynamic routes with parameters for data fetching and implement Suspense for streaming and loading states at both page and component levels. Build interactive features with client-side functionality including hooks, events, and state management through an upvote component example. Create a post creation page with Server Actions for form handling and integrate Kinde authentication to protect routes using middleware. Set up a complete database solution with Prisma ORM and SQLite, including data insertion and retrieval operations. Implement proper error handling with custom not-found pages and learn about caching strategies with revalidation techniques. Secure server actions with authentication and understand the differences between static and dynamic rendering. Complete the project by deploying to Vercel with GitHub integration, setting up Vercel Postgres database, and configuring Kinde authentication for production environments.

Syllabus

00:00 Intro
02:59 Setup
04:31 Fresh Next.js app lookaround
08:57 Routing
10:25 Global styling with Tailwind CSS
12:58 Basic page content & styling
15:26 Header & Footer
18:37 Image component in Next.js
22:09 Nav with routes
23:22 Link component in Next.js
24:06 Finish header
25:30 Finish footer
27:40 Container
30:21 Metadata
31:12 Active nav link styling
32:11 Server components vs Client components
36:14 Data fetching
40:39 Next.js architecture overview
42:08 Dynamic routes post id
46:14 Params for data fetching
47:49 Suspense & Streaming loading.tsx
50:58 Suspense component more granular
54:31 Upvote Client component example
58:49 Next.js client-side features hooks, events, state
01:00:45 Create post page
01:04:36 Server action
01:13:37 Authentication to protect route Kinde
01:21:08 Middleware auth Kinde
01:23:14 Logout button
01:25:59 Finish create post page
01:30:04 Database & ORM in Next.js architecture
01:30:50 Prisma & SQLite setup
01:37:47 Add data to database
01:38:38 Getting data from database
01:41:10 Not found page
01:42:44 Caching & Revalidating revalidatePath
01:48:56 Auth for server actions Kinde
01:51:30 Static & Dynamic rendering
01:54:36 Deploy to Vercel pt. 1 Push to GitHub
01:56:15 Deploy to Vercel pt. 2
01:58:32 Vercel Postgres database
02:03:49 Kinde Auth for production

Taught by

ByteGrad

Reviews

Start your review of Your First Full-Stack Next.js Project - Server Components, Server Actions, Suspense, Kinde

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.