0.0.6 • Published 3 years ago

@djorellanab/n8-orm v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Awesome Project Build with TypeORM

dependencies:

  1. Run ts-node

cli of TypeOrm:

  • Create an entity: ./node_modules/.bin/ts-node ./node_modules/typeorm/cli.js entity:create -n "{nameEntity}"
  • generate a migration of entities ./node_modules/.bin/ts-node ./node_modules/typeorm/cli.js migration:generate -n "{nameMigration}"
  • create a migration ./node_modules/.bin/ts-node ./node_modules/typeorm/cli.js migration:create -n "{nameMigration}"
  • run migrations ./node_modules/.bin/ts-node ./node_modules/typeorm/cli.js migration:run

Steps to run this project:

  1. Run npm i command
  2. Setup database settings inside ormconfig.json file
  3. Run npm start command