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

YouTube

Build a Real Netflix Clone with Next.js, MongoDB, and NextAuth

Code with Ania Kubów via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a comprehensive Netflix clone application using Next.js, TypeScript, MongoDB, and NextAuth in this 48-minute tutorial. Start by setting up the development environment and creating TypeScript types for your application structure. Build a complete authentication system using NextAuth with login and registration functionality for users. Create a MongoDB database with sample movie data and develop API routes for fetching movies and seeding the database. Construct essential UI components including MovieCard, MovieRow, and MovieDisplay components to showcase content in a Netflix-style interface. Implement user authentication providers and design key pages including the home page, login page, and registration page. Style your application with CSS to achieve a professional Netflix-like appearance. Configure MongoDB integration and NextAuth settings, then organize your final file structure and set up necessary environment variables. Practice troubleshooting common issues and debug your application using Warp's code override features. Extend functionality by adding individual movie landing pages and implementing custom features to enhance the user experience. Complete the tutorial with a fully functional Netflix clone featuring user authentication, movie browsing, and a polished user interface.

Syllabus

00:00 Introduction
01:42 Getting started
04:52 Discarding suggestions
06:59 Creating Typescript types
09:40 Sample data for seeding our MongoDB Database
10:28 Code for creating our NextAuth authentication
12:22 API route for fetching movies
13:29 API route for seeding our MongoDB Database
14:35 Creating our UI components
15:27 The MovieCard component
16:07 The MovieRow component
16:34 The MovieDisplay component
17:09 Creating the NextAuth provider
17:56 The Home page
20:13 The Login page
21:40 The Registration page for new users
23:23 Adding CSS
27:15 Adding MongoDB and NextAuth configuration
28:49 Final file structure
29:28 Adding our environment variables
33:55Troubleshooting
37:50 Reviewing our UI
39:03 Debugging in Warp with code overrides
41:46 Adding landing pages for each individual movie to the existing code
43:43 Adding custom functionality to the existing code
47:38 The finished product

Taught by

Code with Ania Kubów

Reviews

Start your review of Build a Real Netflix Clone with Next.js, MongoDB, and NextAuth

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.