Тёмный

CRUD in NextJS 13.4 (app router) and Postgresql. 

Dhriti
Подписаться 427
Просмотров 4,3 тыс.
50% 1

This video is about using postgresql as the database with NextJS 13.4. (app router). We will see how to connect next and postgres by using a package called PG and also build a simple CRUD application.

Наука

Опубликовано:

 

24 сен 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@sudo-apt-upgrade-brain
@sudo-apt-upgrade-brain 10 дней назад
Pure sql + nextjs. No prisma and other junk. Thanks.
@dhriti3080
@dhriti3080 10 дней назад
You are welcome.
@PeeJoyHuaikrai
@PeeJoyHuaikrai 7 дней назад
Nuxt JS + PostgreSQL for the upcoming video please.
@gilesjustinlabastilla2119
@gilesjustinlabastilla2119 Месяц назад
Is it important to have a table first in the database before connecting from NextJS?
@dhriti3080
@dhriti3080 Месяц назад
It is not required at first but if you post or if you try to get a some data that you want to render then it will start throwing errors because there won't be a table.
@Boss-wl2gr
@Boss-wl2gr 6 месяцев назад
I have a question, what is the reason of having DBConnect function? I noticed that queries working good without i call it!
@dhriti3080
@dhriti3080 6 месяцев назад
Yeah you don't need to call the dbConnect function. Actually this application was initially made with mongodb as the data base and then dbconnect was required to be called every time a request was made. I just changed the database to postgres and made required changes to the backend. Sorry for the inconvenience.
@Boss-wl2gr
@Boss-wl2gr 6 месяцев назад
Very nice. Why you don't share the code (on githup for example?)
@dhriti3080
@dhriti3080 6 месяцев назад
I usually do share the code but sometimes I just want to upload the video and get done with it. Anyways here is the link to the repo for this video github.com/dhritich20baruah/Postgresql_Projects/tree/master/nextjs_post/src.
@Boss-wl2gr
@Boss-wl2gr 6 месяцев назад
thank you so much. keep the good work up @@dhriti3080
@scotly_emi
@scotly_emi 8 месяцев назад
Can you do a MySQL version please without using Prisma, I'm working on a project and am using next auth for signup and login but I want to be able to update my user info and also upload profile picture using multer
@dhriti3080
@dhriti3080 8 месяцев назад
I don't use prisma instead use pg and I don't want to go through the process of installing MySQL in my computer. Postgres is gaining a lot of traction these days. If you are using next auth try to use the credentials provider with bcrypt or jwt. As for uploading the image you can use a package called formidable here is a link to that video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QTD9L0jL0dU.html
@shanewa
@shanewa 6 месяцев назад
have github url?
@dhriti3080
@dhriti3080 6 месяцев назад
Yes I do have it. Look at the previous comment I have shared the link there.
Далее
DO NOT Dunk Here ❌🏀
00:20
Просмотров 8 млн
Next.js + Postgres Setup Walkthrough: Dev/Production
36:24
Full-Stack Blog App Tutorial | Next.js and Prisma
1:19:55
How to set up Prisma with Next.js and Postgres!
17:40