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

  Рет қаралды 39,332

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 73
@ByteGrad
@ByteGrad 6 ай бұрын
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!
@matthewgiger6120
@matthewgiger6120 4 ай бұрын
This is incredibly detailed and dense. It's like you used LZW compression on this subject.
@whatislove4587
@whatislove4587 3 ай бұрын
Need a postgres + next.js + docker + VPS deployment workthrough video!
@amraromoro
@amraromoro 6 ай бұрын
What i like more about your videos your calm voice while explaining.
@spectagodx3958
@spectagodx3958 6 ай бұрын
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?
@TariqRHijaz-hl9xj
@TariqRHijaz-hl9xj Ай бұрын
I’m looking for a solution for the same issue , let me know if you found out
@spectagodx3958
@spectagodx3958 Ай бұрын
@@TariqRHijaz-hl9xj yes I found a solution with auth0. Auth0s SDK offers a way to set a proxy param that my app uses and it works.
@not_a_human_being
@not_a_human_being 6 ай бұрын
great tutorial about going live with next/pg app in Vercel!
@VishalSharma-ls4pq
@VishalSharma-ls4pq 3 ай бұрын
very very informative video..learnt so much in just 25 mins..awesome
@ShahNawaz-oj5xt
@ShahNawaz-oj5xt 6 ай бұрын
Loved the tips on hot reload on Docker. Can you please make more videos on docker and kubernetes? Thanks!
@Alex.Shalda
@Alex.Shalda 6 ай бұрын
Awesome vid! Exactly what I need 🎉 thank you ❤
@MatanPresberg
@MatanPresberg 4 ай бұрын
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 3 ай бұрын
i would like this too
@404-not-found-service
@404-not-found-service 6 ай бұрын
Thank you for this material, your content helps me a lot
@BowlineDandy
@BowlineDandy Ай бұрын
buenisimo video muchas gracias!
@jfhandfield
@jfhandfield 6 ай бұрын
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!
@v.demchenko
@v.demchenko Ай бұрын
Him could you pls clarify all moments with app directory? I have tried to implement hot reload without src folder. and no success for me. Thx!
@jhontimy01
@jhontimy01 4 ай бұрын
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 ?
@vinoobharadwaj
@vinoobharadwaj 6 ай бұрын
Hey, great video! May I know what theme you are using for VSCode please? Thanks!
@coders_rant
@coders_rant 6 ай бұрын
Thanks. Needed help with docker
@dianab536
@dianab536 3 ай бұрын
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?
@netTraverser
@netTraverser 6 ай бұрын
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 6 ай бұрын
Was thinking about it, may do it!
@netTraverser
@netTraverser 6 ай бұрын
@@ByteGrad appreciate it
@PaulMerupu91
@PaulMerupu91 5 ай бұрын
Great content!
@AlexanderBelov-y8o
@AlexanderBelov-y8o 6 ай бұрын
Do you think Drizzle is better than Prisma?
@subhranshudas8862
@subhranshudas8862 6 ай бұрын
Thanks dude!
@kritsrijakkot9175
@kritsrijakkot9175 6 ай бұрын
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
@sandzz
@sandzz 6 ай бұрын
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 6 ай бұрын
or should I put all in a single VPS and call it a day?
@finetopethiopia4095
@finetopethiopia4095 Ай бұрын
For the docker init command to work, you need docker desktop
@doob50
@doob50 6 ай бұрын
thank you for the video! I was looking for a docker nextjs postgres video with prisma 😊
@ByteGrad
@ByteGrad 6 ай бұрын
Enjoy!
@pixbug3359
@pixbug3359 6 ай бұрын
Legend.
@athwala
@athwala Ай бұрын
I had a error from bcryptjs, When i dockerize my nextjs 14 nextauth app. Is there any alternative for bcryptjs
@prashantindurkar1457
@prashantindurkar1457 6 ай бұрын
Great Great Video Thanks
@zacharyshifrel9107
@zacharyshifrel9107 6 ай бұрын
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.
@academyonnet
@academyonnet 6 ай бұрын
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 6 ай бұрын
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
@romanyfayiez3829
@romanyfayiez3829 Ай бұрын
Could you please provide the repo link?
@cisdolce
@cisdolce 6 ай бұрын
i love this guy
@BarisPalabiyik
@BarisPalabiyik 6 ай бұрын
We can pass the path value from window to the server action along with the formData to revalidate sender path dynamically right?
@eriscrypt
@eriscrypt 5 ай бұрын
what the color theme u use ?
@secretcommander2519
@secretcommander2519 4 ай бұрын
How does this work on yours and not on mine? Does this not work on windows? >docker compose up --watch unknown flag: --watch
@zerefdev
@zerefdev 6 ай бұрын
Please add "prisma" to the title:)
@andrejkling3886
@andrejkling3886 6 ай бұрын
Good video. Thank you. Using orm for real production it’s not good practice …
@Devlou333
@Devlou333 6 ай бұрын
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 6 ай бұрын
If you never learn Algorithm & Data Stuctures, first learn them
@Devlou333
@Devlou333 6 ай бұрын
Thanks 🙏
@poznianski
@poznianski 6 ай бұрын
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 6 ай бұрын
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.
@abishekbaiju1705
@abishekbaiju1705 6 ай бұрын
Algorithms can help you with how you think about solving problems efficiently. learn all of them parallely. my suggestion is you don't have to learn DSA and then learn nextjs, learn DSA consistently everyday along with what you want to learn.
@lostinthenarrativve
@lostinthenarrativve 6 ай бұрын
do I need to learn SQL before postgres or I can just jump in ?
@MatanPresberg
@MatanPresberg 4 ай бұрын
generally yes (depending on the scale of usage/complexity), but if you're using an ORM layer like prisma then it's less necessary
@edhahaz
@edhahaz 6 ай бұрын
Postgres (Prisma) so... not postgres
@haiffy
@haiffy 6 ай бұрын
Would be nice if you publish this as a starter in GitHub
@avi12
@avi12 Ай бұрын
15:09 The method to stop tracking a file with "rm -rf .git" is so bad The correct way to do it will be: git rm --cached .env This way it deletes the file from Git but not from your machine
@ustav_o
@ustav_o 6 ай бұрын
really nice video but lets please stop using prisma
@kaan1882
@kaan1882 6 ай бұрын
then what to use in your opinion
@looming_
@looming_ 5 ай бұрын
@@kaan1882Drizzle
@muhammadalifdanielbinmohdh3188
@muhammadalifdanielbinmohdh3188 5 ай бұрын
@@kaan1882drizzle
@copperweave
@copperweave 4 ай бұрын
​@@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 4 ай бұрын
​@@copperweaveOr not to use any ORM. SQL commands do fine.
@maksymdudyk1718
@maksymdudyk1718 5 ай бұрын
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.
@bobysharma8911
@bobysharma8911 12 күн бұрын
code repo
Dockerize Next.js & Deploy to VPS (EASY!)
19:43
ByteGrad
Рет қаралды 67 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 69 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 3,3 МЛН
NextJS Is Hard To Self Host
39:32
ThePrimeTime
Рет қаралды 118 М.
Next.js 15 Breakdown (Everything You Need To Know)
18:10
Web Dev Simplified
Рет қаралды 64 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 190 М.
Self-Hosting Next.js
45:13
leerob
Рет қаралды 65 М.
If you're not developing with this, you're wasting your time
14:30
Articulated Robotics
Рет қаралды 304 М.
Self-Host Next.js 15 on VPS in 8 Minutes (EASY!)
11:29
ByteGrad
Рет қаралды 1,3 М.
Guide on how to implement Clean Architecture in Next.js
53:07
Lazar Nikolov
Рет қаралды 30 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 69 МЛН