Integrate a Django REST API with a Next.js Frontend
Welcome
0:00
Overview & Requirements
0:00
Demo
0:00
Project Setup
0:00
Hello World with Django Ninja
0:00
User Auth with Django Ninja JWT
0:00
Custom Django Model with Matching Ninja Schema
0:00
Get and List Models via Django Ninja Router
0:00
Your First API request from Next to Django
0:00
Solve CORS Errors from Next to Django
0:00
Get API Data on Page Load with SWR
0:00
Submit Form Data with NextJS
0:00
httpOnly Cookies with Nextjs API Routes
0:00
Data from Nextjs Server to Django Backend
0:00
Auth Token Methods
0:00
Logout Page and API Route in Nextjs
0:00
User Required Requests from Nextjs to Django
0:00
Custom Context Provider and useAuth Hook
0:00
Login Required Redirect for Invalid Auth Tokens
0:00
Install shadcn to Nextjs
0:00
Login Page with shadcn ui
0:00
Base Layout with Navbar
0:00
Navbar Component
0:00
User and Non User Navbar Links
0:00
Waitlist Form and NextJS API Endpoint
0:00
Django Ninja Create Object via POST
0:00
Django Ninja User or Annon User Required
0:00
Django User Foreign Keys
0:00
Decouple Navbar Components
0:00
NextJS API Proxy Class
0:00
NextJS List view as shadcn Table
0:00
Improve API Proxy Class
0:00
Django Form Validation with Django Ninja
0:00
Rendering Django Form Validation Errors in Nextjs
0:00
Nextjs Config for Environments
0:00
Environment Variables in Django
0:00
Deploy Django Project to Railway
0:00
Production Django Database with Neon Postgres
0:00
Prepare our Nextjs Production Build
0:00
Nextjs Production Frontend on Railway
0:00
Dynamic Routing in Nextjs Pages and Routes
0:00
Adding and Updating New Database Fields
0:00
Deployed
0:00
Thank you and thoughts on how practical this is
0:00