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

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ธ.ค. 2024

ความคิดเห็น • 66

  • @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

  • @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!

  • @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!

  • @mauricionatacci
    @mauricionatacci ปีที่แล้ว +2

    awesome tutorial, thanks for that!

  • @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

  • @adityasharma1241
    @adityasharma1241 ปีที่แล้ว +1

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

  • @opheliepro-d6b
    @opheliepro-d6b ปีที่แล้ว +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 .

  • @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

  • @fmiftah
    @fmiftah ปีที่แล้ว +2

    Beautifull tutorial, thank you

  • @АлексейГендя
    @АлексейГендя ปีที่แล้ว +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 😂

  • @MaximilianoFarfan-r2w
    @MaximilianoFarfan-r2w ปีที่แล้ว +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  ปีที่แล้ว

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

  • @joaosoares1504
    @joaosoares1504 ปีที่แล้ว +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  ปีที่แล้ว +1

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

  • @abrahamjude6666
    @abrahamjude6666 ปีที่แล้ว +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  ปีที่แล้ว

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

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

  • @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

  • @bonprog
    @bonprog ปีที่แล้ว +2

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

  • @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"

  • @me.dwesley
    @me.dwesley ปีที่แล้ว +1

    Esse vídeo é perfeito!

  • @MaximilianoFarfan-r2w
    @MaximilianoFarfan-r2w ปีที่แล้ว +1

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

    • @francescociulla
      @francescociulla  ปีที่แล้ว

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

  • @nadetdevfullstack7041
    @nadetdevfullstack7041 10 หลายเดือนก่อน +1

    Excellent

  • @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!

  • @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

  • @azumahjoshuazilmayee6704
    @azumahjoshuazilmayee6704 7 หลายเดือนก่อน +1

    Can you do another video with sequelize migration

    • @francescociulla
      @francescociulla  7 หลายเดือนก่อน +1

      that's a good idea

    • @azumahjoshuazilmayee6704
      @azumahjoshuazilmayee6704 7 หลายเดือนก่อน

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

  • @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

  • @venugopal-nc3nz
    @venugopal-nc3nz 3 หลายเดือนก่อน

    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  3 หลายเดือนก่อน

      you can start here th-cam.com/video/R33h77nrMqc/w-d-xo.html

  • @nick-pu4zae
    @nick-pu4zae ปีที่แล้ว +1