Using Sequelize With TypeScript: Basic Project Setup

preview_player
Показать описание
#Sequelize #TypeScript

In this video, we set up a project using Sequelize and TypeScript along with a Postgres database.

Рекомендации по теме
Комментарии
Автор

This is probably the only tutorial I have seen that also covers how where in the documentation things are. Thank you so much!

greykor
Автор

almost 2 years later and your video saved me! thank you, sequelize was making me lose it bit time. I followed the docs 100% and yet wasn't able to make it work, but following your instructions (even though some thing changed, and I implemented some changes because of it) I made it work, thank you so much

raulriatosilva
Автор

Man can I just say, this is probably the best video on this topic out there.
Your way of explaining, coupled with the general structure of the video (referencing the doc, mentioning how other people do stuff, and even just learning by doing) is my favourite so far.

Thank you

rewrose
Автор

This video solved all my Sequelize with TypeScript problems

THANANANWORRAWONGVUTIKRAI
Автор

Really awesome quick hands on tutorial. Spent whole afternoon with it, it turns on many useful part here. So thanks again!

GfastGao
Автор

Thanks a lot!
This video was really helpful and enlightening 🖤
I loved how you showed us important parts of the documentation while coding.

Keep it up 👏

faris.abuali
Автор

Thanks! This is what have been looking for.

lawrencekatuva
Автор

just this tutorial showed me what i need to know about sequelize

icokafor
Автор

I have been looking for this video, thank you so much.

sigmacoolbeatz
Автор

Great tutorial! I personally like to write my own models without sequelize-cli and also write my own migrations and run them with umzug library, which is quite popular. TypeScript part cleared some things up for me so thanks for that!

didziszvaigzne
Автор

It works but when I make the tsc command, node fails trying to excecute yield 😓

jorgegarnicablanco
Автор

you gave a very good explanation of this topic

abbaemmanuel
Автор

Excellent tutorial. Thanks for putting this up. Only wish is before ending you would have added a where clause in the query, but super complete!

CptBongue
Автор

If we do as in the vid, we won't touch the migration folder to operate, right? If so, what is the migration folder of sequelize for?

angtuanninh
Автор

Thank you so much! Helped clear up a lot of frustrations. Would be great if the sequelize documentation for Typescript wasn't just a code dump.

deanhuber
Автор

Excellent tutorial, got like and one more subscriber. Hugs from Brazil!!

antonioteixeira
Автор

const result = await db.User.findAll({
include: {
model: db.Project
}
})

If I fetch the data using db.User then the result type is any insted of UserAttributes! How can I achieve the correct type for each model?

SanjayS-fzlw
Автор

Thanks a lot for this video! It helped me a lot to set all this up!

Robytsu
Автор

46:05 Wait, that shouldn't be a an async/await function ? Is not insert something into a DB an asynchronous procedure ?

axelelpro
Автор

Really Great, Thank you ! Only one issue which I am facing is getting error as ---- Cannot find Have you run "sequelize init"? ---- While running the command node_modules/.bin/sequelize db:migrate

happinessprogram