Next.js, JavaScript, Docker: Build a fullstack REST API using Node.js, Express, Prisma, PostgreSQL

  Рет қаралды 28,885

Francesco Ciulla

Francesco Ciulla

Күн бұрын

Пікірлер
@sebastian-mitco
@sebastian-mitco 10 ай бұрын
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.
@francescociulla
@francescociulla 10 ай бұрын
Thanks, I'm gonna try that aswell!
@cherribomb88
@cherribomb88 4 ай бұрын
@@francescociulla what a noob
@myriaquekoko4758
@myriaquekoko4758 4 ай бұрын
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
@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.Killer
@Red.Killer 11 ай бұрын
You are very sympathetic, I like your accent
@francescociulla
@francescociulla 11 ай бұрын
Thanks, I hope it was not too disturbing! 😂
@TheUIArchitect
@TheUIArchitect Жыл бұрын
We have a full stack, maestro!!
@francescociulla
@francescociulla Жыл бұрын
trying my best!
@adeyemiowolabi6062
@adeyemiowolabi6062 8 ай бұрын
I like your intro already 👍
@francescociulla
@francescociulla 8 ай бұрын
thank you!
@hhkl3bhhksm466
@hhkl3bhhksm466 9 ай бұрын
Hey thanks for the tutorial. Do you setup everything from scratch for every project? This process seems very tedious, lol
@francescociulla
@francescociulla 9 ай бұрын
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
@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
@francescociulla Жыл бұрын
interesting concept, I think it's possible but I should double check that.
@AlEgorova
@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
@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
@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
@powercircuitacademy Жыл бұрын
Thank You so much sir ❤ specially for this video🙏
@francescociulla
@francescociulla Жыл бұрын
Appreciated
@saharilarshad1628
@saharilarshad1628 11 ай бұрын
@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?
@francescociulla
@francescociulla 11 ай бұрын
I can create a video about this, but it's deef possible
@MuhamadAzizPrasetyo
@MuhamadAzizPrasetyo 7 ай бұрын
@@francescociulla create a video, pleaseee
@BailinCAI
@BailinCAI 7 ай бұрын
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?
@francescociulla
@francescociulla 7 ай бұрын
Ineanted to have a single repository on GitHub for both of the projects, that's the main reason
@alvinchristianto-p2d
@alvinchristianto-p2d 8 ай бұрын
did prisma or express have ability to migrations like laravel(php artisan migrate:...) ?
@francescociulla
@francescociulla 8 ай бұрын
yes, I think I did it in the video
@alvinchristianto-p2d
@alvinchristianto-p2d 8 ай бұрын
@@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
@Rider_12413 Жыл бұрын
Can't we simply install cors package to manage cors issue?
@francescociulla
@francescociulla Жыл бұрын
yes I think that's fine too
@3IMAD69
@3IMAD69 10 ай бұрын
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)
@francescociulla
@francescociulla 10 ай бұрын
you can put depends_on in teh docker compose or adding a restart policy
@code_cn
@code_cn 9 ай бұрын
hey Brother thank you for sharing this totorial i'm from Cambodia i want become Fullstack developer
@francescociulla
@francescociulla 9 ай бұрын
you are welcome!
@hoodapurvender
@hoodapurvender Жыл бұрын
which extension are you using for auto complete code in vscode?
@francescociulla
@francescociulla Жыл бұрын
Hi, the extension is called GitHub Copilot
@nikeboys3134
@nikeboys3134 23 күн бұрын
what is autocomplite code?
@francescociulla
@francescociulla 17 күн бұрын
it's GitHub Copilot
@sunnyyasin2107
@sunnyyasin2107 11 ай бұрын
should i install postgres in my terminal?
@francescociulla
@francescociulla 11 ай бұрын
no, jsut use docker to use an instance of Postgres
@shravan2891
@shravan2891 Жыл бұрын
damn, seriously you read my mind i am building a project using same techstack, you saved my time for configuration
@francescociulla
@francescociulla Жыл бұрын
thank you. your comment has been featured here twitter.com/FrancescoCiull4/status/1738272313173307822
@shravan2891
@shravan2891 Жыл бұрын
@@francescociulla Thank you brother!!
@jsbr
@jsbr 11 ай бұрын
Hi, do I need to have WSL 2 on windows to use Docker ? Or I can just use docker desktop ?
@francescociulla
@francescociulla 11 ай бұрын
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
@Rider_12413 Жыл бұрын
I noticed that you ran prisma migrate command from within docker container itself. Why not in dockerfile?
@francescociulla
@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
@nguyenvuquang2670
@nguyenvuquang2670 11 ай бұрын
pl share video how to setup windows tool for develop in this video
@francescociulla
@francescociulla 11 ай бұрын
What do you mean? Requirements to follow along?
@nguyenvuquang2670
@nguyenvuquang2670 11 ай бұрын
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-sight
@out-of-sight 11 ай бұрын
Perfection! 👌🏻👏🏻
@francescociulla
@francescociulla 11 ай бұрын
Thank you!!
@kinjalnshah239
@kinjalnshah239 11 ай бұрын
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 :)
@francescociulla
@francescociulla 11 ай бұрын
First, thanks for your kind words. I am planning to do this in the future, so stay tuned!
@Jerac07
@Jerac07 Жыл бұрын
Great tutorial!!!
@francescociulla
@francescociulla Жыл бұрын
Thank you Jerac!!
@Jerac07
@Jerac07 Жыл бұрын
@@francescociulla looking forward to future content!
@francescociulla
@francescociulla Жыл бұрын
@@Jerac07 we have more coming soon!
@humblezeed
@humblezeed Жыл бұрын
Thanks you mr francesco
@francescociulla
@francescociulla Жыл бұрын
you are welcome Humblez!
@dumpster-jackson
@dumpster-jackson 10 ай бұрын
Hi. Great video! But when I try to dockerize frontend, it is running into multiple errors. Did anyone else face this problem?
@francescociulla
@francescociulla 10 ай бұрын
are you using the default dockerfile from vercel and changing the next.config.js?
@dumpster-jackson
@dumpster-jackson 10 ай бұрын
@@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-jackson
@dumpster-jackson 10 ай бұрын
@@francescociulla Will this be considered as a good project for a fresher entering software development after Uni?
@francescociulla
@francescociulla 10 ай бұрын
@@dumpster-jackson it's a good one imo
@francescociulla
@francescociulla 10 ай бұрын
@@dumpster-jackson was it called config.js in my project?
@treasuregiftedtv4240
@treasuregiftedtv4240 7 ай бұрын
For bills
@francescociulla
@francescociulla 7 ай бұрын
what?
@treasuregiftedtv4240
@treasuregiftedtv4240 7 ай бұрын
@@francescociulla got school bills
@vanshvasishtha7082
@vanshvasishtha7082 11 ай бұрын
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).
@francescociulla
@francescociulla 11 ай бұрын
you linked this same exact video. I usually make a livestream and this is the editev version of that
@dailydotdev
@dailydotdev Жыл бұрын
🔥🔥
@francescociulla
@francescociulla Жыл бұрын
🚀🚀
@treasuregiftedtv4240
@treasuregiftedtv4240 7 ай бұрын
Nice accent
@francescociulla
@francescociulla 7 ай бұрын
lol thanks
@aakash2665
@aakash2665 Жыл бұрын
great
@francescociulla
@francescociulla Жыл бұрын
you are welcome
@pripri-h4d
@pripri-h4d Жыл бұрын
super job thx
@francescociulla
@francescociulla Жыл бұрын
Thank you!!
@pripri-h4d
@pripri-h4d Жыл бұрын
you're welcome@@francescociulla
@out-of-sight
@out-of-sight 11 ай бұрын
Perfection! 👌🏻👏🏻
@francescociulla
@francescociulla 11 ай бұрын
Hey Thanks!
Next.js 14, Rust, Docker: Build a fullstack rest API in typeScript and Rust
49:34
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Build a CRUD API with Docker Node.JS Express.JS & PostgreSQL
26:02
Introduction Aux APIs en PHP - Partie 2
25:01
The Codepreneur
Рет қаралды 14
Is Next.js 15 any good? "use cache" API first look
8:16
Beyond Fireship
Рет қаралды 124 М.
Ryan Dahl @ DenoFest Tokyo, "Deno ❤️ npm"
30:56
Deno
Рет қаралды 9 М.
NestJs Course for Beginners - Create a REST API
3:42:09
freeCodeCamp.org
Рет қаралды 1,6 МЛН
Building Real-time Apps with Go | Azim Pulat
54:58
Azim Pulat
Рет қаралды 57 М.
Node.js: The Documentary | An origin story
1:02:49
Honeypot
Рет қаралды 680 М.
Learn Prisma In 60 Minutes
59:25
Web Dev Simplified
Рет қаралды 432 М.
[Tuto] Créer un chat vocal avec Node.js et React Native Expo
1:10:50
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН