API PROJESI - Node.js Express & PostgreSQL

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 7

  • @Tecladochino
    @Tecladochino 2 роки тому

    Hi, and how should i do to make the connection between tables?

    • @mustafaenestepe
      @mustafaenestepe  2 роки тому +1

      Firstly you should create a relation between in two define. Like a foreign key and if you want both table data, you should use "include" in data fetching.
      I have example repo, you can review it = github.com/MET-DEV/nasa-api
      Defines in models
      Include in routes > questionRouter > router.get

    • @Tecladochino
      @Tecladochino 2 роки тому +1

      @@mustafaenestepe Oh my god. Thanks a lot!! I've been struggling with this a few weeks. I'm from argentina. I don't understand the video languaje but it helped me a lot! Good luck bro

    • @mustafaenestepe
      @mustafaenestepe  2 роки тому +1

      @@Tecladochino thanks

  • @eylulucar8046
    @eylulucar8046 Рік тому

    npm start hatası alıyorum sürekli,yardımcı olabilir misiniz?

    • @mustafaenestepe
      @mustafaenestepe  Рік тому

      Node kurmamış olabilirsiniz ya da package.json dosyasında yolu doğru vermemiş olabilirsiniz.

    • @mustafaenestepe
      @mustafaenestepe  Рік тому

      Ya da nodemon kurmamış olabilirsiniz