Nest framework TypeScript starter repository.
$ npm install
$ npm i -g @nestjs/cli
$ cd project-name
$ nest new project-name
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covMigrations are created in the src/migrations folder. Run the command below
npx typeorm migration:create ./src/db/migration/createMediaTable
To run migrations, Run the following commands
yarn typeorm migration:run -d ormconfig.ts
For more information about typeorm nest-js migration, see https://anjith-p.medium.com/typeorm-database-migrations-in-nestjs-apps-ace923edf1bf