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/#/ Наука
Part 2 - ruclips.net/video/rflZhPzr_G4/видео.html
Great content dude - really solid stuff
Thank you Cameron, glad you enjoyed!
This is awesome -- please keep it up
Great tutorial, thanks for the insight
Thank you helped a lot.
Great tutorial mate!
Thank you James!
waiting for it
Great, I'm planning on uploading the next video in the series this weekend!
great tutorial master, I have a question, what’s the extension that use in the minute 6:01 ? Cheers
Is JSONVue
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.
How did you handle the database creation part, beacause the whenever I run `npm run start` I get error: database "mydb" does not exist
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
Life saver, thank you !
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?
Ah Nevermind! I managed to solve it - server is running! :D
@@hat-skits Yes you can do it works even on a locally hosted postgres server
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
not beginner friendly
unless video. every youtuber gives info like from scrool 1-st grade?