Build a Rest API using Node.js, Express, Sequelize, Postgres, Docker

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

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

  • @warner18100
    @warner18100 3 года назад +6

    This is very insightful. Thank you Mr. Shinan.
    I look forward to seeing more of your content.

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

    Find Francesco: francescociulla.com
    0:00 Introduction. Docker intro
    10:40 Project initialization, install dependencies, structure, index.js, test API Hello World
    30:47 Dockerization, Dockerfile, docker-compose, run Postgres container
    1:04:41 connection between the server and the DB
    1:13:!7 users routes, model, controller
    1:44:33 final version of the image and test

  • @ayalon997
    @ayalon997 3 года назад +4

    Ana JavaSpriht alhamdulila

  • @foxypixie
    @foxypixie 3 года назад +3

    So useful!! Thanks man

  • @achonwachris8431
    @achonwachris8431 3 года назад +3

    Nice 👏🏿👏🏿

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

    Really helpful! I only started playing around with Docker yesterday, and was struggling to connect my Node app to the Postgres container, this video solved my problem (and taught me a lot on the way!) Thanks a lot :-)

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

    Thanks to this video I was able to connect my api with my postgres service, I didn't know how to connect it, it gave me an error and it was because of the HOST variable, thank you very much.

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

      I know, that's one of the crucial steps in the connection of the container db to the container app!

  • @ossurf
    @ossurf 3 года назад +3

    Good!!!!

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

    I was a little confused about Docker. Did that tutorial thrice, I've learned a lot of things ! I've stored the commands for personal usage! Thank you ! :)

  • @yaronyahav656
    @yaronyahav656 3 года назад +3

    lit 🔥

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

    i have followed you step by step but at 1:03:13 you are writing a command docker up, for postgres image but it is giving error "volumes should be maping" please help what can i do??? i have to submit my assignment today.

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

      hard to help you in this way. how did you name your db and services?

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

      @@francescociulla i did the same as you were doing...but postgres image is not creating.....when i run the command "docker-compose up" it says "volume must be maping"..

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

      depends_on:
      - node_db
      node_db:
      container_name: node_db
      image: "postgres:12"
      ports:
      - "5432:5432"
      environment:
      - POSTGRES_USER=noorimranrana
      - POSTGRES_PASSWORD=12345
      - POSTGRES_DB=assesment_db
      volumes:
      - nps_data:/var/lib/postgresql/data/
      volumes:
      - nps_data: {}

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

      after writing this when i run the command "docker-compose up" it says "volumes must be a mapping"

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

      try to copy exactly the docker compose as in the repo.

  • @shirasteinitz
    @shirasteinitz 3 года назад +3

    Thanks! This was very helpful!

  • @shailevi87
    @shailevi87 3 года назад +3

    Great 💪🏻

  • @ayalon997
    @ayalon997 3 года назад +4

    Love it! Keep it coming

  • @TeguhDev
    @TeguhDev 2 года назад +1

    hi sir what is pc do u use it is very fast, i run this in mypc but takes a lot time

    • @francescociulla
      @francescociulla  2 года назад +1

      I tihnk it's more about the internet connection

  • @talllb
    @talllb 3 года назад +3

    Love it

  • @caroletuesday8862
    @caroletuesday8862 2 года назад +1

    sir, i have problem. i do your tutorial one by one by always has this problem
    ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 127.0.0.1:5432
    idk how to fix it. i use stack overflow still stuck

    • @francescociulla
      @francescociulla  2 года назад +1

      have you changed the name of the ip with the name of the container in the docker compose?

    • @julianmoreyra8198
      @julianmoreyra8198 2 года назад +1

      i have the same problem. How you fix that? how change the name of the ip?

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

      @@francescociulla thanks for the tutorial, same problem here cloning the github repo, without editing a single line of code

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

      @@happycoder2422 try this updated version of the video ruclips.net/user/liveUv-jMWV29rU?feature=share

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

      try with this video ruclips.net/user/liveUv-jMWV29rU?feature=share

  • @freedtmg16
    @freedtmg16 2 года назад +1

    THIS WAS AWESOME! Thanks for the swee info!

  • @elliotheath9408
    @elliotheath9408 2 года назад +1

    i love tabnine