The BEST Next.js setup: Next.js + Postgres + Docker (Dev / Prod)

Опубликовано: 03 Октябрь 2024
на канале: ByteGrad
33,900
1.1k

Get Docker Desktop here: https://dockr.ly/4dkjx8a (paid sponsorship).
Disclaimer: this is a sponsored video (paid). It's your responsibility to evaluate safety, accuracy and other relevant parts of the reviewed product.
NEW - React & Next.js Course: https://bytegrad.com/courses/professi...

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).
👉 Check out Kinde for auth and more https://bit.ly/3QOe1Bh

👉 NEW React & Next.js Course: https://bytegrad.com/courses/professi...
👉 Professional JavaScript Course: https://bytegrad.com/courses/professi...
👉 Professional CSS Course: https://bytegrad.com/courses/professi...

👉 Web development roadmap 2024 & 2025: https://email.bytegrad.com
👉 Email newsletter (BIG update soon): https://email.bytegrad.com
👉 Discord: all my courses have a private Discord where I actively participate
👉 Kinde: check out Kinde for auth and more https://bit.ly/3QOe1Bh

⏱️ Timestamps:
00:00 Intro
01:13 Quick example of Dockerizing Next.js for local development
01:31 docker init
03:04 Docker compose watch (hot reload!)
03:55 Docker Scout
04:54 Postgres development setup (with Docker)
06:39 Prisma setup
11:53 Docker debug
13:05 Production environment
13:29 Vercel setup
18:54 Database migrations
22:45 Docker + Next.js + Postgres final overview

#webdevelopment #reactjs #nextjs #docker