In the second part of nestJs tutorial, I will show you how to use real database instead of in memory store. In this lesson, we will use the postgres database together with the typeORM. I will teach you how to run a local instance of postgres using docker-compose, how to connect to it from nestJs app and finally, we will learn all the implementation of CRUD operations in typeORM.
Starting code: [ Ссылка ]
Final code: [ Ссылка ]
Docker installation: [ Ссылка ]
NestJS database documentation: [ Ссылка ]
0:00 Introduction
0:31 How to run postgres on local machine
03:08 How to install typeorm in nestJs project
03:47 How to set typeorm config
06:06 How to create typeorm entity
09:48 How to create one-to-many relation in typeorm
13:09 How to use typeorm repository in nestJs app
14:46 How to implement CRUD operations in typeorm
🎓 Enhance your learning journey! Visit my second channel, for valuable tips & tricks on mastering academics: [ Ссылка ] 👨🎓👩🎓
![](https://i.ytimg.com/vi/MnA_rD8StAg/maxresdefault.jpg)