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

YouTube

Next.js with Postgres Development and Production Setup - VPS Coolify, Prisma, Migrations

ByteGrad via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to set up a complete Next.js application with PostgreSQL database from local development through production deployment on a VPS using Coolify and Prisma migrations. Start by creating a new Next.js application and configuring a local PostgreSQL database with the necessary setup commands. Master Prisma setup and configuration for database management, then create and manipulate data within your database structure. Understand the migration process and how to properly manage database schema changes. Progress to VPS setup using Hostinger as your hosting provider, followed by Coolify configuration for streamlined deployment management. Configure your production database environment and deploy your Next.js application to the VPS infrastructure. Handle production connection strings securely and execute Prisma migrate deploy commands for production database setup. Complete the deployment process and configure custom domain settings for your live application.

Syllabus

00:00 Intro
00:19 Create Next.js app
01:16 Local Postgres setup
01:41 Command for Postgres setup
02:32 Prisma setup
07:27 Create data in database
08:27 Migrations
11:38 VPS setup Hostinger
13:25 Coolify setup
14:16 Prod database setup
15:30 Deploy Next.js app to VPS
18:10 Prod connection string
18:44 prisma migrate deploy
19:27 Deploy
20:43 Custom domain

Taught by

ByteGrad

Reviews

Start your review of Next.js with Postgres Development and Production Setup - VPS Coolify, Prisma, Migrations

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.