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...

Комментарии • 36

  • @abbylynn8872
    @abbylynn8872 9 месяцев назад +3

    Today's live was great.
    Thank you for the membership❤

  • @mattmccredy3530
    @mattmccredy3530 5 месяцев назад +2

    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!

    • @francescociulla
      @francescociulla  5 месяцев назад +1

      thanks you. I replied here twitter.com/FrancescoCiull4/status/1783600809265008851

    • @adityajoshi5
      @adityajoshi5 5 месяцев назад +3

      I guess he's going to use containers so shouldn't matter

    • @francescociulla
      @francescociulla  5 месяцев назад +3

      @@adityajoshi5 eaxactly that's the point, especially for simple apps, having a virtual env inside another virtual env doesn't make much sense

    • @mattmccredy3530
      @mattmccredy3530 4 месяца назад

      @@francescociulla thank you!

  • @ossurf
    @ossurf 9 месяцев назад +2

    Go Franky GOOOOOOO

  • @irfansaeedkhan7242
    @irfansaeedkhan7242 9 месяцев назад +2

    niceee thank you

  • @coff3andprograming
    @coff3andprograming 5 месяцев назад +2

    Lastimosamente tuve un error en la db 😢, pero me alegro haber podido tener un nuevo stack por practicar 😮

    • @francescociulla
      @francescociulla  5 месяцев назад

      what error? did you try to copy the repo?

  • @404-not-found-service
    @404-not-found-service 5 месяцев назад +1

    wow thanks

  • @pripri-h4d
    @pripri-h4d 9 месяцев назад +2

    each time i use postman for a request after dockerizing the project i get ,400 bad request ,i don't know why

    • @francescociulla
      @francescociulla  9 месяцев назад

      Only after dockerizing or even before? Check the url and be sure there are no other processes running on those ports

    • @pripri-h4d
      @pripri-h4d 9 месяцев назад

      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

  • @coff3andprograming
    @coff3andprograming 4 месяца назад +2

    ¿Qué herramienta utiliza para diseñar las presentaciones?

    • @francescociulla
      @francescociulla  4 месяца назад +1

      Da Vinci Resolve for editing and OBS to record

    • @coff3andprograming
      @coff3andprograming 4 месяца назад +1

      @@francescociulla ¿y para mostrar la gráfica de su stack?😄

  • @bigphido
    @bigphido 7 месяцев назад +1

    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😁

    • @francescociulla
      @francescociulla  7 месяцев назад

      line 20 on app.py, where I type something like "db.createall()"

  • @abhishekshukla115
    @abhishekshukla115 9 месяцев назад +2

    Loved your videos 😍❤

  • @thscho
    @thscho 4 месяца назад +1

    GREAT TUTORIAL!

  • @programacaocomramon
    @programacaocomramon 7 месяцев назад +1

    Voglio creare una versione in portoghese di questo tutorial.

    • @francescociulla
      @francescociulla  7 месяцев назад

      ok! just give credit and tag the channel, adding a link

    • @programacaocomramon
      @programacaocomramon 7 месяцев назад +1

      @@francescociulla Of course, thank you!

    • @francescociulla
      @francescociulla  7 месяцев назад

      @@programacaocomramon good luck! are you just recording it yourself or using some ai tools?

    • @programacaocomramon
      @programacaocomramon 7 месяцев назад +1

      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

    • @francescociulla
      @francescociulla  7 месяцев назад

      @@programacaocomramon got it! You never know on this crazy AI era! 😂

  • @tiagoc9754
    @tiagoc9754 9 месяцев назад +2

    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

    • @francescociulla
      @francescociulla  9 месяцев назад +1

      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