Python Full Stack App: Next.js 14, Flask, PostgreSQL, Docker
HTML-код
- Опубликовано: 28 сен 2024
- Let's create a very minimalistic Full Stack App, with these technologies:
- nextjs 14
- Flask
- SQLAlchemy
- PostgreSQL
- Docker
- Docker Compose
We will focus on the connection between these 3 services.
GitHub link github.com/Fra...
find Francesco: francescociull...
Today's live was great.
Thank you for the membership❤
you are welcome!!
Hi Francesco - this is an extremely helpful tutorial!
I just have one question - why no virtual environment? I'm used to creating one for each python project I build.
Again, excellent job, especially with using Docker and walking us through the service(s) setup!
thanks you. I replied here twitter.com/FrancescoCiull4/status/1783600809265008851
I guess he's going to use containers so shouldn't matter
@@adityajoshi5 eaxactly that's the point, especially for simple apps, having a virtual env inside another virtual env doesn't make much sense
@@francescociulla thank you!
Go Franky GOOOOOOO
buon anno secco!!
niceee thank you
you are welcome!
Lastimosamente tuve un error en la db 😢, pero me alegro haber podido tener un nuevo stack por practicar 😮
what error? did you try to copy the repo?
wow thanks
you are welcome, and funny nickcname
@@francescociulla thanks
each time i use postman for a request after dockerizing the project i get ,400 bad request ,i don't know why
Only after dockerizing or even before? Check the url and be sure there are no other processes running on those ports
thanks for quickly answering me.Actually it's doing it in this project, as well as in your go full stack project even before dockerizing it @@francescociulla
¿Qué herramienta utiliza para diseñar las presentaciones?
Da Vinci Resolve for editing and OBS to record
@@francescociulla ¿y para mostrar la gráfica de su stack?😄
Hi, in minute 5.41, you promised we will get back to the issue when database is empty "Did not find any relations.". we just noticed 31.58 minute we now have a table. can you explain how we got the table😁
line 20 on app.py, where I type something like "db.createall()"
Loved your videos 😍❤
Thank you so much 😁
GREAT TUTORIAL!
You are welcome!!
Voglio creare una versione in portoghese di questo tutorial.
ok! just give credit and tag the channel, adding a link
@@francescociulla Of course, thank you!
@@programacaocomramon good luck! are you just recording it yourself or using some ai tools?
I'll record it myself and use your code as a starting point, but I'll adapt it to Portuguese, like variable naming and such
@@programacaocomramon got it! You never know on this crazy AI era! 😂
Hi, I haven't finished watching your video yet, but looks like you're creating the projects separated and making http requests from NextJS to Python API. I saw somewhere in the NextJS docs that's possible to host the Flask API inside the Next "/api" directory, then we can map the requests in the next config file for the api to the Flask port.
I'm trying to do that but I'm really newbie in Python and docker compose. And I'm unable to make the connection to flask container to work. I have my nextjs app running on port 3000 and the flask api on port 5000. When I try to make the http request, it can't find flask-app:5000
Do you have any examples using this approach?
I'm still going to take some time and try making it work
interesting approach. MY main goal is to show how to dockerie the flask app and connect it to a postgres db, so although I like Next,js, I dont' want to be dependant by it