Hello guys, if you are facing problems on running the backend just change the first line in backend.dcokerfile FROM node:alpine I also add the line RUN npx prisma migrate dev --name init --preview-feature after the RUN npx prisma generate so the migrations is automatically made also on a new machine. After that you can run the project with just one command. Nice video & happy coding.
@francescociulla10 ай бұрын
Thanks, I'm gonna try that aswell!
@cherribomb884 ай бұрын
@@francescociulla what a noob
@myriaquekoko47584 ай бұрын
each time I add the line npx prisma migrate dev I get ERROR [7/8] RUN npx prisma migrate dev 6.1s ------ > 7/8] RUN npx prisma migrate dev: 0.972 Prisma schema loaded from prisma/schema.prisma 0.977 Datasource “db”: PostgreSQL database “postgres”, schema “public” at “db:5432”
@francescociulla Жыл бұрын
find Francesco: francescociulla.com 0:00 intro - Architecture, prerequisites, project initialization 2:47 Database 5:30 Backend 23:50 Frontend 38:12 Dockerize the frontend and final test
@Red.Killer11 ай бұрын
You are very sympathetic, I like your accent
@francescociulla11 ай бұрын
Thanks, I hope it was not too disturbing! 😂
@TheUIArchitect Жыл бұрын
We have a full stack, maestro!!
@francescociulla Жыл бұрын
trying my best!
@adeyemiowolabi60628 ай бұрын
I like your intro already 👍
@francescociulla8 ай бұрын
thank you!
@hhkl3bhhksm4669 ай бұрын
Hey thanks for the tutorial. Do you setup everything from scratch for every project? This process seems very tedious, lol
@francescociulla9 ай бұрын
it's tedious but I want to give something as good as possible and that everyone can follow. I also provide the code if you want to just get that
@JaacielBrisenoEspinoza Жыл бұрын
Great video! I have a question, is there a way to build the frontend image with the database running in case you use prisma with server components ? So it build some pages at build time
@francescociulla Жыл бұрын
interesting concept, I think it's possible but I should double check that.
@AlEgorovaКүн бұрын
Thank for helpful explanation. I have question: when I change some code in my app how I update code in docker? Just docker compose build and docker compose up -d frontend (or backend)?
@Pedro-Pontes Жыл бұрын
what the difference between, server components for query and routes, and backend with node. We can do the backend in server components, right?
@francescociulla Жыл бұрын
yes you can, the point here is to show how you can connect a backend with a frontend. for example, next week we'll do something similar with rust and next js, so it will mke more sense.
@powercircuitacademy Жыл бұрын
Thank You so much sir ❤ specially for this video🙏
@francescociulla Жыл бұрын
Appreciated
@saharilarshad162811 ай бұрын
@francescociulla, how to add volumes in frontend and backend? because when i make changes in code, its not reflected. i need to restart docker again. how to avoid to restart docker when i made changes?
@francescociulla11 ай бұрын
I can create a video about this, but it's deef possible
@MuhamadAzizPrasetyo7 ай бұрын
@@francescociulla create a video, pleaseee
@BailinCAI7 ай бұрын
Hi Francesco, i want to know more about the reason why don't put different .gitignore in frontend and backend and also a .gitignore in root directory, in the project i'm working on, i'm gonna use next.js as frontend and the python fastapi as backend, is there any particular reason why don't seperate them? can you explain deeper about it?
@francescociulla7 ай бұрын
Ineanted to have a single repository on GitHub for both of the projects, that's the main reason
@alvinchristianto-p2d8 ай бұрын
did prisma or express have ability to migrations like laravel(php artisan migrate:...) ?
@francescociulla8 ай бұрын
yes, I think I did it in the video
@alvinchristianto-p2d8 ай бұрын
@@francescociulla another question francesco, when we use express js to connect to db. since next js also can directy (with prisma) connect to db ? need to convince myself the use of expressjs
@Rider_12413 Жыл бұрын
Can't we simply install cors package to manage cors issue?
@francescociulla Жыл бұрын
yes I think that's fine too
@3IMAD6910 ай бұрын
Thanks For the video m i have a problem building the frontend , cuz it depends on the backend to make some requests to cache them the problem is the frontend get builded before the server ? which is necessary to build my nextjs app (im using a diffrent project structure frontend nextjs 14 backend express js)
@francescociulla10 ай бұрын
you can put depends_on in teh docker compose or adding a restart policy
@code_cn9 ай бұрын
hey Brother thank you for sharing this totorial i'm from Cambodia i want become Fullstack developer
@francescociulla9 ай бұрын
you are welcome!
@hoodapurvender Жыл бұрын
which extension are you using for auto complete code in vscode?
@francescociulla Жыл бұрын
Hi, the extension is called GitHub Copilot
@nikeboys313423 күн бұрын
what is autocomplite code?
@francescociulla17 күн бұрын
it's GitHub Copilot
@sunnyyasin210711 ай бұрын
should i install postgres in my terminal?
@francescociulla11 ай бұрын
no, jsut use docker to use an instance of Postgres
@shravan2891 Жыл бұрын
damn, seriously you read my mind i am building a project using same techstack, you saved my time for configuration
@francescociulla Жыл бұрын
thank you. your comment has been featured here twitter.com/FrancescoCiull4/status/1738272313173307822
@shravan2891 Жыл бұрын
@@francescociulla Thank you brother!!
@jsbr11 ай бұрын
Hi, do I need to have WSL 2 on windows to use Docker ? Or I can just use docker desktop ?
@francescociulla11 ай бұрын
what I'd recommend is to install docker desktop and check the WSL checkbox, so you will have it both on windoes and on wsl
@Rider_12413 Жыл бұрын
I noticed that you ran prisma migrate command from within docker container itself. Why not in dockerfile?
@francescociulla Жыл бұрын
I want the process at runtime and not at build time, so the 2 procedures are not tightly coupled (and you could ideally make the migration in anotehr moment, not every time you build the image). but it depends on your requirements
@nguyenvuquang267011 ай бұрын
pl share video how to setup windows tool for develop in this video
@francescociulla11 ай бұрын
What do you mean? Requirements to follow along?
@nguyenvuquang267011 ай бұрын
i do not know how to setup terminal. code vs. docker. i mean all tool you use to develop like you in video
@out-of-sight11 ай бұрын
Perfection! 👌🏻👏🏻
@francescociulla11 ай бұрын
Thank you!!
@kinjalnshah23911 ай бұрын
Dear Francesco.. this is fantastic. Thank you so much, SIR!! :) Requesting additional guidance. I was trying to deploy this app on Azure (migrating to Azure Cloud), so that I can access it via a public facing internet URL. I went thru a lot of tutorials on moving container images to Azure, and I have not yet successfully cracked it. Esp. examples cover use-cases where entire app is a single image - unlike the case here where we have a frontend image, a backend image, and a postgres image, all under full-stack. Kindly guide please. Once again, thank you! Your tutorials are superb :)
@francescociulla11 ай бұрын
First, thanks for your kind words. I am planning to do this in the future, so stay tuned!
@Jerac07 Жыл бұрын
Great tutorial!!!
@francescociulla Жыл бұрын
Thank you Jerac!!
@Jerac07 Жыл бұрын
@@francescociulla looking forward to future content!
@francescociulla Жыл бұрын
@@Jerac07 we have more coming soon!
@humblezeed Жыл бұрын
Thanks you mr francesco
@francescociulla Жыл бұрын
you are welcome Humblez!
@dumpster-jackson10 ай бұрын
Hi. Great video! But when I try to dockerize frontend, it is running into multiple errors. Did anyone else face this problem?
@francescociulla10 ай бұрын
are you using the default dockerfile from vercel and changing the next.config.js?
@dumpster-jackson10 ай бұрын
@@francescociulla Thank you so much for this amazing tutorial! I had to rename the file from config.tjs to config.js and change the content and it worked Cheers!
@dumpster-jackson10 ай бұрын
@@francescociulla Will this be considered as a good project for a fresher entering software development after Uni?
@francescociulla10 ай бұрын
@@dumpster-jackson it's a good one imo
@francescociulla10 ай бұрын
@@dumpster-jackson was it called config.js in my project?
@treasuregiftedtv42407 ай бұрын
For bills
@francescociulla7 ай бұрын
what?
@treasuregiftedtv42407 ай бұрын
@@francescociulla got school bills
@vanshvasishtha708211 ай бұрын
You are using Typescript for frontend and in the title it is mentioned Javascript. but this video is the exactly same with the You Uploaded For typescript Prisma App (kzbin.info/www/bejne/hF6apoyjZrWmsK8).
@francescociulla11 ай бұрын
you linked this same exact video. I usually make a livestream and this is the editev version of that