Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 578 Bytes

README.md

File metadata and controls

26 lines (22 loc) · 578 Bytes

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