TypeScript REST API with NodeJS, Postgres & TypeORM

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2021
  • We're going to build a REST API using TypeScript, node, docker, postgres & TypeORM.
    In this first video we're going to be initializing the project using the TypeORM CLI. We're then going to run postgres inside a docker container & our application will be able to connect to it.
    Code: github.com/kriscfoster/typesc...
    Install NodeJS: nodejs.org/en/
    Install Docker: docs.docker.com/get-docker/
    TypeORM: typeorm.io/#/
  • НаукаНаука

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

  • @KrisFoster1
    @KrisFoster1  2 года назад

    Part 2 - ruclips.net/video/rflZhPzr_G4/видео.html

  • @cameronmoore6663
    @cameronmoore6663 2 года назад +3

    Great content dude - really solid stuff

    • @KrisFoster1
      @KrisFoster1  2 года назад

      Thank you Cameron, glad you enjoyed!

  • @IamMiracleAlex
    @IamMiracleAlex 2 года назад

    This is awesome -- please keep it up

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

    Great tutorial, thanks for the insight

  • @rickylall2401
    @rickylall2401 2 года назад

    Thank you helped a lot.

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

    Great tutorial mate!

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

    waiting for it

    • @KrisFoster1
      @KrisFoster1  2 года назад

      Great, I'm planning on uploading the next video in the series this weekend!

  • @FireOn2107
    @FireOn2107 2 года назад

    great tutorial master, I have a question, what’s the extension that use in the minute 6:01 ? Cheers

    • @Krior07
      @Krior07 2 года назад +2

      Is JSONVue

  • @HSnake5
    @HSnake5 Год назад +9

    For anyone watching this in 2022, perhaps even later, there is no "ormconfig.json" generated anymore. Instead it will be in "data-source.ts" so no need to panic like I did.

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

      How did you handle the database creation part, beacause the whenever I run `npm run start` I get error: database "mydb" does not exist

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

      nvm there is a 'postgres' database already created when you mount the docker container, that's why when I change datasource database option to something other than postgres it'll fail

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

      Life saver, thank you !

  • @odetamaslovaite2574
    @odetamaslovaite2574 2 года назад

    Hi Kris,
    Thanks for a great tutorial! :) But I encountered one problem, even when I cloned your Github repo. The error which I am getting after npm start is: error: role "postgres" does not exist. I have run out of ideas how to fix it. Maybe do you have any insights why it is occuring?

    • @odetamaslovaite2574
      @odetamaslovaite2574 2 года назад

      Ah Nevermind! I managed to solve it - server is running! :D

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

      @@hat-skits Yes you can do it works even on a locally hosted postgres server

  • @RahulJhaJourney
    @RahulJhaJourney 3 месяца назад

    data still coming I have done this part docker compose down and again I restart the docker compose up -d but data is still coming and I also remove the data

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

    not beginner friendly

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

    unless video. every youtuber gives info like from scrool 1-st grade?