16 How to run or setup migrations in Nest JS with TypeORM

Published: 15 April 2022
on channel: Amitav Roy
26,639
253

#nodejs #nestjs #javascript

In this video, we are going to look at how we can set up our Nest JS application to start using Migrations.

So far our database was running on Sync. However, TypeORM allows you to create migration files based on the Entities inside your application.

We will see how we need to configure the app to have a different configuration of Nest JS with Type ORM for the app to run normally. And, we will also create a new configuration that will be used by TypeORM to run the CLI-based commands like creating new migrations and running migrations etc.

Code: https://my-lnk.com/2188012324

0:00 What are we trying to do?
2:45 Configuration changes for TypeORM
4:10 Exporting TypeORM config for Nest JS and TypeORM cli
9:00 Exporting TypeORM config for Migrations to run
11:00 Quick recap
11:21 Setting up npm commands in Package JSON
12:50 Generate migration file for current entities

You can find me on:
Twitter:   / amitavroy7​  
Discord:   / discord  


Watch video 16 How to run or setup migrations in Nest JS with TypeORM online without registration, duration hours minute second in high quality. This video was added by user Amitav Roy 15 April 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 26,639 once and liked it 253 people.