0.0.6 • Published 3 years ago
@djorellanab/n8-orm v0.0.6
Awesome Project Build with TypeORM
dependencies:
- 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:
- Run
npm i
command - Setup database settings inside
ormconfig.json
file - Run
npm start
command