JavaScript CRUD Rest API: Nodejs, Express, Postgres, Sequelize, Docker

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024

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

  • @johnmichaeldejesus9041
    @johnmichaeldejesus9041 Год назад +5

    As someone who has recently started in the cloud field, this tutorial helped alot! Looking forward for more live walkthroughs of mini projects such as this. Thank you

  • @Trecia_KS
    @Trecia_KS Год назад +2

    I love how you talk through everything you do.
    I think it does help with remembering things. Something i must start doing :)
    Great stream, Fran :D

  • @arshadjamal5405
    @arshadjamal5405 Год назад +2

    Straight forward, to the point, just liked it

  • @pradumnasaraf
    @pradumnasaraf Год назад +4

    Great stream. Will help lots of people.

    • @francescociulla
      @francescociulla  Год назад +2

      thanks Pradumna. great response in this video! JavaScript never fails you!

  • @mauricionatacci
    @mauricionatacci Год назад +2

    awesome tutorial, thanks for that!

  • @JuliaFMorgado
    @JuliaFMorgado Год назад +2

    I'm late to the stream but will watch the recording!

    • @francescociulla
      @francescociulla  Год назад

      probably one of my best livestreams so far! It just misses the Kubernetes part!

  • @fmiftah
    @fmiftah Год назад +2

    Beautifull tutorial, thank you

  • @francescociulla
    @francescociulla  Год назад +8

    Find Francesco: francescociulla.com
    0:00 Architecture, project init, dependencies
    1:59 db connection, User model
    5:02 Users Controllers: Create, Read, Update, Delete
    10:06 routes, index.js
    14:11 Docker: .dockerignore, Dockerfile, docker-compose.yml
    22:11 running the Postgres container, build node app, run the container app.
    24:17 Test endpoints

  • @adityasharma1241
    @adityasharma1241 Год назад +1

    Great Tutorial. Will help a lot of them out there. 😃

  • @narzantaria1102
    @narzantaria1102 Год назад +2

    Amazing channel!

    • @francescociulla
      @francescociulla  Год назад +1

      thank you so much Nar! what have you been exploring so far?

    • @narzantaria1102
      @narzantaria1102 Год назад +1

      @@francescociulla Hello Francesco! Currently i'm exploring Docker and CI/CD to make the workflow and deployment more efficient. And of course a lot of other tools represented in your channel

    • @francescociulla
      @francescociulla  Год назад +1

      @@narzantaria1102 thanks for the feedback

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

    Excellent

  • @user-rf9qd2lf3m
    @user-rf9qd2lf3m Год назад +2

    Merci beaucoup c'est très bien expliqué. Bravo :) Si jamais vous pourriez faire une suite avec comment connecter un Frontend avec Vuejs 3 ça serait parfait avec la récupération d'un token .

  • @ranveerancharaz6732
    @ranveerancharaz6732 Год назад +2

    This one is 1hr shorter that the one with yotam :P And it will go smoother if someone has done the other one first :P

  • @user-qj8mt8gb3b
    @user-qj8mt8gb3b Год назад +1

    Thank you, very cool video))

  • @ryanfavour4
    @ryanfavour4 Год назад +1

    If I coded like you I don't think my MD would be screaming at me our head 247 😂

  • @me.dwesley
    @me.dwesley Год назад +1

    Esse vídeo é perfeito!

  • @vanshsrivastava882
    @vanshsrivastava882 Год назад +1

    nice man thanks

    • @francescociulla
      @francescociulla  Год назад

      you are welcome!

    • @vanshsrivastava882
      @vanshsrivastava882 Год назад

      @@francescociulla hey , my ports are not getting mapped to localhost ,the connection is successful but i am unable to view it on local host

  • @RajeshJaswalPune
    @RajeshJaswalPune Год назад +2

    awesome tutorial! Though, I am facing a problem when I run update user (updateUser) - > return user.save(); it results in "TypeError: user.save is not a function" Could someone plase help!

    • @francescociulla
      @francescociulla  Год назад +2

      I think you should provide both the name and the email to it in this case. of course it should and it will be updated in another version

  • @nick-pu4zae
    @nick-pu4zae Год назад +1

  • @abrahamjude6666
    @abrahamjude6666 11 месяцев назад +1

    how canone start the server if you dont have the postgress gui ?
    you didnt take us arround downloading it fr those who are new

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

      what do you mean by postgres ui? do you mean the tableplus tool?

  • @user-wo8mq5hx9t
    @user-wo8mq5hx9t 11 месяцев назад +1

    also i cant change the values in the db name even when i try changing both and rebuilding why is that?

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

      you need to do "docker compose down -v" then create a whole new one

  • @user-wo8mq5hx9t
    @user-wo8mq5hx9t 11 месяцев назад +1

    hey what if i dont want to use your image in your docker hub, what would be a good alternative to the image?

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

      build your own by following the tutorial! just change the image: xyz and it will create a new one.

  • @ngamsomset
    @ngamsomset Год назад +1

    I follow yours steps but why when I try to create users from postman just like you did, the name and email are null? its successfully created but both fields are null.

    • @francescociulla
      @francescociulla  Год назад +3

      the header in the request should be "content-type: application/json"

  • @Dalsy97
    @Dalsy97 Год назад +2

    Great stream really, I'm a complete ignorant in Docker so this video is literally a manna dal cielo but I have a problem I can't resolve, after running the command ```docker compose -d node_db``` I can't connect to the db with table plus, error says "database node_live_db does not exist". I've tried to debug it for a couple hours now but seems like today luck is not on my side. Anyone knows what might have gone wrong?

    • @francescociulla
      @francescociulla  Год назад +1

      how did you define the db in docker compose?

    • @Dalsy97
      @Dalsy97 Год назад +1

      @@francescociulla Luck finally got on my side, i rewrote the docker compose and now I can connect from tablePlus, probably just misspelled something and couldn't see it even after reading it 100 times, sometimes it's just like this. Thanks for the quick answer anyway, I'm going to finish the stream later hoping everything goes as it should go so big thanks again Francesco and buona domenica!!

    • @francescociulla
      @francescociulla  Год назад +1

      @@Dalsy97 Ciao un commento positivo in italiano mi fa sempre sorridere 💙

    • @Dalsy97
      @Dalsy97 Год назад +1

      @@francescociulla da Junior non posso far altro che ringraziare chi crea questo tipo di contenuti, sopratutto quando sono spiegati e supportati cosi bene!

  • @joaosoares1504
    @joaosoares1504 10 месяцев назад +1

    Hi. How do you make these pre-text ready to deploy with one key away?
    It seems that you have all the code in light gray right after you write a few lines and just press one key to print at your vscode.

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

      it's Github copilot. if you dont' have it, the code is alla vialable on github

  • @bonprog
    @bonprog Год назад +2

    what is the name of the extension that completes your code?

  • @pesforlife1966
    @pesforlife1966 Год назад

    docker compose -d node_db is not working it shows (root) Additional property node_db is not allowed

    • @francescociulla
      @francescociulla  Год назад

      try to clone the repository as it is and run it again

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

    Can you do another video with sequelize migration

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

      that's a good idea

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

      @@francescociulla Yes I will be expecting it. I actually struggled with it sometimes back but there is no video about it on RUclips

  • @teothedoor
    @teothedoor Год назад +1

    Hello! I'm new to docker-compose. Is it necessary to deploy this project to render or anywhere else? If yes, how to deploy docker-compose?

    • @francescociulla
      @francescociulla  Год назад +1

      you use the docker-compose.yml file to deploy it. a simple wat is to run "docker compose up" in the project folder

    • @teothedoor
      @teothedoor Год назад

      @@francescociulla Thank you. So docker-compose is enough for deploying? I have also a few questions to ask, if you don't mind.

  • @venugopal-nc3nz
    @venugopal-nc3nz День назад

    Hi Francesco, I hate javascript and love python. Now I wanted to learn rust . Is Rust easy to learn ? How much time it will take to learn Rust ?

    • @francescociulla
      @francescociulla  День назад

      you can start here ruclips.net/video/R33h77nrMqc/видео.html