AngusLin10 / typeorm_express

Example project showcasing automatic database migrations with TypeORM in an Express app.

Repository from Github https://github.comAngusLin10/typeorm_expressRepository from Github https://github.comAngusLin10/typeorm_express

typeorm_express

Example project showcasing automatic database migrations with TypeORM in an Express app.

Run the server app

The auto migrations running (migrationsRun: true)

yarn start

All custom commands in package.json

yarn typeorm
yarn migration:run
yarn migration:revert
yarn migration:show

Create empty migration files

yarn typeorm migration:create -- src/migration/user

Generate migration files for existing entities.

yarn typeorm migration:generate -- src/migration/user -d src/data-source.ts

About

Example project showcasing automatic database migrations with TypeORM in an Express app.


Languages

Language:TypeScript 100.0%