Тёмный

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

ByteGrad
Подписаться 152 тыс.
Просмотров 33 тыс.
50% 1

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

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@ByteGrad
@ByteGrad 4 месяца назад
I had a wonderful time working with Docker once again, get Docker Desktop here: dockr.ly/4dkjx8a (paid sponsorship). My latest course is out now (Professional React & Next.js): bytegrad.com/courses/professional-react-nextjs -- I'm very proud of this course, my best work!
@spectagodx3958
@spectagodx3958 4 месяца назад
Great Video. I have deployed several NextJS container and it’s all fun and games until the container is behind a Proxy. For some reason NextJS 14 ignores env variables like HTTP_PROXY that node typically can handle. NextJS then is not able to send requests to services outside that proxy network like Auth providers. Do you know how set proxy variables to NextJS so the app can pass proxy’s?
@whatislove4587
@whatislove4587 2 месяца назад
Need a postgres + next.js + docker + VPS deployment workthrough video!
@amraromoro
@amraromoro 4 месяца назад
What i like more about your videos your calm voice while explaining.
@VishalSharma-ls4pq
@VishalSharma-ls4pq Месяц назад
very very informative video..learnt so much in just 25 mins..awesome
@not_a_human_being
@not_a_human_being 4 месяца назад
great tutorial about going live with next/pg app in Vercel!
@MatanPresberg
@MatanPresberg 2 месяца назад
I would love a tutorial on how to deploy postgres and next js in the same docker-compose instead of using Vercel storage. I have it set up, but I keep getting database connection errors because the build step of the next js app requires access to the database
@devardilshad3944
@devardilshad3944 2 месяца назад
i would like this too
@BowlineDandy
@BowlineDandy 4 дня назад
buenisimo video muchas gracias!
@ShahNawaz-oj5xt
@ShahNawaz-oj5xt 4 месяца назад
Loved the tips on hot reload on Docker. Can you please make more videos on docker and kubernetes? Thanks!
@netTraverser
@netTraverser 4 месяца назад
I don't know if this qualifies as being out of the scope of what you typically put out, but can you do a full on tutorial of docker? If it isn't too much to ask for
@ByteGrad
@ByteGrad 4 месяца назад
Was thinking about it, may do it!
@netTraverser
@netTraverser 4 месяца назад
@@ByteGrad appreciate it
@coders_rant
@coders_rant 4 месяца назад
Thanks. Needed help with docker
@kritsrijakkot9175
@kritsrijakkot9175 4 месяца назад
If I want to use docker compose to create containers for nextjs and postgre in the same time I build because I have problem about after build docker compose not connect to database. Can someone help me or show the example for me pls. Thank you
@pixbug3359
@pixbug3359 4 месяца назад
Legend.
@andrejkling3886
@andrejkling3886 4 месяца назад
Good video. Thank you. Using orm for real production it’s not good practice …
@PaulMerupu91
@PaulMerupu91 4 месяца назад
Great content!
@prashantindurkar1457
@prashantindurkar1457 4 месяца назад
Great Great Video Thanks
@sandzz
@sandzz 4 месяца назад
Very well made tutorial. I am looking for a stack for my side project. So I can use vercel for the edge compute. but my postgresql will sit in 1 region only. So there is no point using edge compute for my nextjs app at all, because the responses will get delayed due to DB query anyway. Is there a good cheap way to handle db latency?
@sandzz
@sandzz 4 месяца назад
or should I put all in a single VPS and call it a day?
@vinoopb
@vinoopb 4 месяца назад
Hey, great video! May I know what theme you are using for VSCode please? Thanks!
@athwala
@athwala 8 дней назад
I had a error from bcryptjs, When i dockerize my nextjs 14 nextauth app. Is there any alternative for bcryptjs
@AlexanderBelov-y8o
@AlexanderBelov-y8o 4 месяца назад
Do you think Drizzle is better than Prisma?
@doob50
@doob50 4 месяца назад
thank you for the video! I was looking for a docker nextjs postgres video with prisma 😊
@ByteGrad
@ByteGrad 4 месяца назад
Enjoy!
@dianab536
@dianab536 Месяц назад
Is Prisma or Drizzle ORM required as database to be part of my tech stack if I use Next.js? If so, why is this option better than the regular database connection setup? And is Neon or Planetscale necessary when using ORM's?
@cisdolce
@cisdolce 4 месяца назад
i love this guy
@academyonnet
@academyonnet 4 месяца назад
Did I miss the timestamp where you explained why I would need a docker if I can develop on my local machine, push it to git and from there I can deploy it on Vercel?
@Dom-zy1qy
@Dom-zy1qy 4 месяца назад
If you dockerize something, you can deploy it anywhere that you can host docker containers (which is pretty much everywhere). Also allows you to host it locally in an environment that much more closely mirrors the deployed environment
@Devlou333
@Devlou333 4 месяца назад
I'm a Front-end Developer. I learn SQL in High School. I want to learn Next.js. Should I learn Algorithm & Data Structures first or just GO for Next.js ?? Please Help
@azamataliqulov1601
@azamataliqulov1601 4 месяца назад
If you never learn Algorithm & Data Stuctures, first learn them
@Devlou333
@Devlou333 4 месяца назад
Thanks 🙏
@Alex-bc3xe
@Alex-bc3xe 4 месяца назад
Even as a fronted developer you need at least data structures nested arrays of nested objects maps sets and so on this is like the foundation
@poznianski
@poznianski 4 месяца назад
You don't need linked lists and and binary search for the 99 % of front end tasks. If you are already a frontend developer and want to learn the most modern framework - just do it and don't waste your time.
@breachr4696
@breachr4696 4 месяца назад
Learn react before you do Nextjs, it's much more important. DSA is important but more so for a back-end developer than a front-end developer. Like the comment above me says, you just need to learn the fundamental data structures.
@haiffy
@haiffy 4 месяца назад
Would be nice if you publish this as a starter in GitHub
@eriscrypt
@eriscrypt 4 месяца назад
what the color theme u use ?
@maksymdudyk1718
@maksymdudyk1718 4 месяца назад
I would be so nice of you, Wesley, if you could provide your true subscribers a link to github repo's codebase for this video.
@lostinthenarrativve
@lostinthenarrativve 4 месяца назад
do I need to learn SQL before postgres or I can just jump in ?
@MatanPresberg
@MatanPresberg 2 месяца назад
generally yes (depending on the scale of usage/complexity), but if you're using an ORM layer like prisma then it's less necessary
@secretcommander2519
@secretcommander2519 3 месяца назад
How does this work on yours and not on mine? Does this not work on windows? >docker compose up --watch unknown flag: --watch
@matthewgiger6120
@matthewgiger6120 3 месяца назад
This is incredibly detailed and dense. It's like you used LZW compression on this subject.
@jhontimy01
@jhontimy01 2 месяца назад
Hey! trying to follow along with your tutorial! but some how i am getting unknown flag: --watch when i am trying to hot reload docker container, does any one know what is happening ?
@Alex.Shalda
@Alex.Shalda 4 месяца назад
Awesome vid! Exactly what I need 🎉 thank you ❤
@finetopethiopia4095
@finetopethiopia4095 12 дней назад
For the docker init command to work, you need docker desktop
@romanyfayiez3829
@romanyfayiez3829 12 дней назад
Could you please provide the repo link?
@jfhandfield
@jfhandfield 4 месяца назад
Wow great video once more. Do you think you could do a video on dockerizing a next JS app in a TurboRepo. How to bundle all the dependencies and everything. That would be my next step in my company. Thank you for your time!
@zerefdev
@zerefdev 4 месяца назад
Please add "prisma" to the title:)
@edhahaz
@edhahaz 4 месяца назад
Postgres (Prisma) so... not postgres
@404-not-found-service
@404-not-found-service 4 месяца назад
Thank you for this material, your content helps me a lot
@zacharyshifrel9107
@zacharyshifrel9107 4 месяца назад
How do you guys feel about using the server side of Next.js (e.g., for fetching) while you already have an express backend? I do it, but it feels weird to talk about having two servers, lol.
@ustav_o
@ustav_o 4 месяца назад
really nice video but lets please stop using prisma
@kaan1882
@kaan1882 4 месяца назад
then what to use in your opinion
@looming_
@looming_ 4 месяца назад
@@kaan1882Drizzle
@muhammadalifdanielbinmohdh3188
@muhammadalifdanielbinmohdh3188 4 месяца назад
@@kaan1882drizzle
@copperweave
@copperweave 3 месяца назад
​@@kaan1882 they'd probably say Drizzle but Prisma is fine for most applications tbh. Drizzle can be more performant and is more customizable, but Prisma is functional out of the box. When Prisma didn't support joins it was a lot more important.
@runankaroy2687
@runankaroy2687 3 месяца назад
​@@copperweaveOr not to use any ORM. SQL commands do fine.
@BarisPalabiyik
@BarisPalabiyik 4 месяца назад
We can pass the path value from window to the server action along with the formData to revalidate sender path dynamically right?
@subhranshudas8862
@subhranshudas8862 4 месяца назад
Thanks dude!
Далее
Dockerize Next.js & Deploy to VPS (EASY!)
19:43
Просмотров 59 тыс.
Next.js + Postgres Setup Walkthrough: Dev/Production
36:24
The BEST way to host Next.js websites
17:37
Просмотров 47 тыс.
Multi-Tenant SaaS Architecture (Next.js Auth)
22:57
Просмотров 21 тыс.
Next.js 14 Deployment to VPS with GitHub Actions CI/CD
52:31
Create your own Next.js Starter Template
2:35:29
Просмотров 20 тыс.