Full Stack Web App: Next.js, Node.js , Express, Prisma, Posgres, Docker (PERN)

  Рет қаралды 26,406

Francesco Ciulla

Francesco Ciulla

Күн бұрын

Пікірлер: 87
@ayushshende4290
@ayushshende4290 10 ай бұрын
Monorepo setup with this one would have been a bonus. Still an amazing tutorial.
@francescociulla
@francescociulla 10 ай бұрын
Thanks
@ksivasuriyaprakash9976
@ksivasuriyaprakash9976 Жыл бұрын
Thanks for this video, really brush up my docker memory from past!
@francescociulla
@francescociulla Жыл бұрын
Nice, more are coming!
@chnkrydv
@chnkrydv 8 ай бұрын
@@francescociulla thanks a lot. Needed exactly this stack tutorial.
@devardilshad3944
@devardilshad3944 5 ай бұрын
thanks for the great tutorial, buttery smooth pace and loved that you were laughing when things worked
@francescociulla
@francescociulla 5 ай бұрын
thnak you for your comment. It has been featured here x.com/FrancescoCiull4/status/1816773321578389517
@Bitfumes
@Bitfumes Жыл бұрын
very nice explanation bhai Keep doing amazing work
@francescociulla
@francescociulla Жыл бұрын
more stuff is coming...hint: 🦀
@Bitfumes
@Bitfumes Жыл бұрын
@@francescociulla excited
@abujayed-dot-com
@abujayed-dot-com 7 ай бұрын
Just what i need, Now i am at intro point of this video. let's see if I can finish the video.
@francescociulla
@francescociulla 7 ай бұрын
lmk if you need help
@RazorBack-ps3cy
@RazorBack-ps3cy Жыл бұрын
I have a question, Is not possible to do backend with Next.js? Instead of Express? and have "all in one" ?
@francescociulla
@francescociulla Жыл бұрын
yes. check this kzbin.info/www/bejne/fZecg56XfdOmiJo
@marlonlr63
@marlonlr63 2 ай бұрын
Hi Francesco, great video! A quick one, POST endpoints (create user) are not working with the backend is running with Docker. I've got this error message "Cannot read properties of undefined (reading 'name')": I stopped the backend container and ran the app locally and it works. Have you faced this issue before? My express version is ^4.21.1 btw.
@francescociulla
@francescociulla 2 ай бұрын
I will check it thank you
@MitkoGeorgiev-re5xg
@MitkoGeorgiev-re5xg 4 ай бұрын
@francescociulla One question, do we need somewhere to define this DB migration, that you do manually ?
@francescociulla
@francescociulla 4 ай бұрын
it can be done with a spearate script and executed in the docker compose command, or in the app itself.
@MrRicardosgeral
@MrRicardosgeral 8 ай бұрын
Why didn`t you put the "npx prisma migrante dev --name init" instruction índice the docker file. Any inconvenience?
@francescociulla
@francescociulla 8 ай бұрын
I dont' want to do it when I build the image, but rather when the app is running
@primeshheshan3662
@primeshheshan3662 5 ай бұрын
@@francescociulla what is the reason for that?
@senhor_lucao
@senhor_lucao Жыл бұрын
Amazing video! Thank you!
@francescociulla
@francescociulla Жыл бұрын
you are welcome. here is an edited and shorter version in case you didn't see it all kzbin.info/www/bejne/hF6apoyjZrWmsK8si=u8nZ5mTVIJQ5n62v
@fujimotorenato
@fujimotorenato 10 ай бұрын
perfect video! thank for this
@francescociulla
@francescociulla 10 ай бұрын
You are welcome
@roseklaynk3087
@roseklaynk3087 2 ай бұрын
Hey Francesco amazing video the way you explained it put so simple just what i needed but i am having a problem with prisma studio it's not letting me add the new user on there for some reason i am getting an error any idea how i can go about it?
@francescociulla
@francescociulla 2 ай бұрын
not sure why, did you mnage to launch it?
@roseklaynk3087
@roseklaynk3087 2 ай бұрын
@@francescociulla No i wasn't able to use the prisma studio but i am extremely grateful for the video it helped me grasp docker much better and i was able to utilize this for my own project you are a life savior
@MuhamadAzizPrasetyo
@MuhamadAzizPrasetyo 10 ай бұрын
Thanks for this video! But i have an issue called error "Prisma Client Error" when opening Prisma Studio in the browser (after command: npx prisma studio) What do I have to do?
@francescociulla
@francescociulla 10 ай бұрын
what is the error? are you sure you are running the command on the right folder and that the port is not in use? I never had problems with it
@MuhamadAzizPrasetyo
@MuhamadAzizPrasetyo 10 ай бұрын
I've made sure all the code follows what you wrote, but it looks like I'll have to double check everything...@@francescociulla
@ander-pgl
@ander-pgl 6 ай бұрын
I have the same problem, when executing the npx prisma studio command, a prisman client error appears, how to solve it?
@asyraf454
@asyraf454 Ай бұрын
@@ander-pgl i had that too, my solution was to recheck DATABASE_URL in .env file inside backend (wrong username) and rebuild
@ossurf
@ossurf Жыл бұрын
Grande Francesco!
@francescociulla
@francescociulla Жыл бұрын
Mitico!!
@rajneeshhtml1
@rajneeshhtml1 Жыл бұрын
Amazing fran
@francescociulla
@francescociulla Жыл бұрын
let's go Rajneesh 🔥🔥
@Amy-gt5jw
@Amy-gt5jw 7 ай бұрын
Grazie mille per questo tutorial, sto imparando next e mi preoccupava la parte serverless/hosting e possibili costi e stavo proprio cercando di capire come usare express e docker con next, è il video che stavo cercando
@francescociulla
@francescociulla 7 ай бұрын
Ciao, e prego!
@IrfanAnsari-g8k
@IrfanAnsari-g8k 5 ай бұрын
If i make a backend project in Typescript. What changes fo i need to do ?
@francescociulla
@francescociulla 5 ай бұрын
that's a whole refactoring, but for sure it can be done. If you are rewriting it froms cratch, you can select "TS" when creating the ent project. otherwise, you can start refactoring file by file, by renaming them to .ts and start applying TS rules to make it work
@ogunleyeoluwafemi7243
@ogunleyeoluwafemi7243 Жыл бұрын
Hi there, is there a way to get the sourcecode to follow along properly? 🙏🏾
@francescociulla
@francescociulla Жыл бұрын
yes, the code is available in the video description
@webdevbyte
@webdevbyte 8 ай бұрын
thank you loving it
@francescociulla
@francescociulla 8 ай бұрын
you are welcome
@Howdyhowthis
@Howdyhowthis 7 ай бұрын
what copilot did you use??
@francescociulla
@francescociulla 7 ай бұрын
GitHub Copilot
@tonyvito5062
@tonyvito5062 2 ай бұрын
Can you please disable github copilot in your tutorials? It's so annoying to see auto completion when you're explaining. Thanks for the tutorial Francesco
@francescociulla
@francescociulla 2 ай бұрын
it's a style, someone likes it, someone doesn't. I prefer to not spend hours typing but rather explaining what happened. If there is anything that is not clear just let me know. You are welcome.
@Bobovino
@Bobovino 8 ай бұрын
Hi, thank you for this video! How would you add sso authentication with this stack?
@francescociulla
@francescociulla 8 ай бұрын
thanks! good idea!
@Tajdev
@Tajdev Жыл бұрын
NextJss', Node.jss', Express', Prisma', Postgress', Dockerr'
@myriaquekoko4758
@myriaquekoko4758 4 ай бұрын
every time i do RUN npx prisma migrate dev --name init --preview-feature it works and yet everything is correct. i get the error Error: P1001: Can't reach database server at `db:5432`
@francescociulla
@francescociulla 4 ай бұрын
how did you name your container for postgres and how are you accessing it? it seems a network issue. Containers need to stay in the same network to find each other
@bryllejhonyatong
@bryllejhonyatong 6 ай бұрын
Really amazing video but I encountered this error after running the "docker compose build" in the frontend directory: "failed to solve: process "/bin/sh -c if [ -f yarn.lock ]; then yarn run build; elif [ -f package-lock.json ]; then npm run build; elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; else echo \"Lockfile not found.\" && exit 1; fi" did not complete successfully: exit code: 1" I also copied the dockerfile in the docs of next js, is there any way to resolve this issue? Thanks
@francescociulla
@francescociulla 6 ай бұрын
have you tried to clone the project and run it?
@bryllejhonyatong
@bryllejhonyatong 6 ай бұрын
@@francescociulla I did not clone the project from the nextjs. I just copied the dockerfile they have
@bryllejhonyatong
@bryllejhonyatong 6 ай бұрын
@@francescociulla I already fix the issue
@francescociulla
@francescociulla 6 ай бұрын
@@bryllejhonyatong nice to know!
@rusdeexii
@rusdeexii 8 ай бұрын
What extension in vscode word auto
@francescociulla
@francescociulla 8 ай бұрын
that's github copilot
@vanshvasishtha7082
@vanshvasishtha7082 Жыл бұрын
When i am trying to fetch the data, it is giving me server error 500, with Axios error , i tried checking the api again on postman (as i had a break in between), Docker Desktop is running, backend server is running and frontend is running, but the data is not getting fetched, can anyone please assist
@francescociulla
@francescociulla Жыл бұрын
Is the database schema there?
@vanshvasishtha7082
@vanshvasishtha7082 Жыл бұрын
@@francescociulla Yes it is there.
@vanshvasishtha7082
@vanshvasishtha7082 Жыл бұрын
@@francescociulla Well i figured out the error and now it is working Fine, Thanks for the Help though
@francescociulla
@francescociulla Жыл бұрын
glad you fixed it@@vanshvasishtha7082
@sai9692
@sai9692 Жыл бұрын
What's the advantage of using docker for both frontend and backend? Can I host the frontend on vercel if it's implemented inside docker container as in your video?
@francescociulla
@francescociulla Жыл бұрын
I made a video about this: kzbin.info/www/bejne/fnPEnHqOpbqhoK8
@DevDhyGolang
@DevDhyGolang 5 ай бұрын
Can I deploy it on netilify?
@francescociulla
@francescociulla 5 ай бұрын
yes you can
@PeriklesPeriklesoglu
@PeriklesPeriklesoglu 5 ай бұрын
thank you
@francescociulla
@francescociulla 5 ай бұрын
you are welcome
@techandstream
@techandstream Жыл бұрын
useful video
@francescociulla
@francescociulla Жыл бұрын
an edited version is coming up next week
@LuigiBuono-k3z
@LuigiBuono-k3z 20 күн бұрын
is not working
@Dev-Phantom
@Dev-Phantom 2 ай бұрын
cool
@francescociulla
@francescociulla 2 ай бұрын
thank you!
@zoki5388
@zoki5388 Жыл бұрын
⚠ I don't know if it's about me but if you try to run docker compose up it will work but there won't be any relations in db because prisma migration wasn't performed. if you try to add npx prisma migrate dev --name init to backend.dockerfile it will also fail because db is not initiated before backend. I've tried fix it health check (pg_isready) but it didn't workout. So if anyone is having trouble running this you should define .env file in backend then run docker compose up, then run this (docker exec -it backend npx prisma migrate dev --name init) then you will have tables and relations in DB, and app will be fully functional. Thanks for stream.
@francescociulla
@francescociulla Жыл бұрын
Yes that's what I do in the video, if I find a more efficient way I will share it ofc.
@vimalsonara2819
@vimalsonara2819 Жыл бұрын
Hey, I'm facing same issue.Did you find solutions?
@zoki5388
@zoki5388 Жыл бұрын
@@vimalsonara2819 I wrote in my comment how to do it, it's basically what Francesco wrote himself
@vimalsonara2819
@vimalsonara2819 Жыл бұрын
@@zoki5388 Oh I didn't notice that. Will check is that works for me. Thanks 😊
@Dev-Phantom
@Dev-Phantom 2 ай бұрын
cool
@francescociulla
@francescociulla 2 ай бұрын
thank you!
Next.js with a separate server - good idea?
22:53
ByteGrad
Рет қаралды 73 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Стыдные вопросы про Китай / вДудь
3:07:50
вДудь
Рет қаралды 4,6 МЛН
Best of CES 2025
14:50
The Verge
Рет қаралды 407 М.
Build a Full Stack App in 3 Minutes
3:41
Deno
Рет қаралды 23 М.
Docker + Typescript: Setting up Typescript to run in Docker container
43:19
Sanjeev Thiyagarajan
Рет қаралды 21 М.
진짜✅ 아님 가짜❌???
0:21
승비니 Seungbini
Рет қаралды 10 МЛН