Steps to run this project:
Criar imagem postgres: $ docker run --name postgres-server -e POSTGRES_PASSWORD=postgres -d -p 5434:5432 postgres
Migration run $ npx typeorm-ts-node-esm migration:run -d ./src/data-source.ts
Migration revert $ npx typeorm-ts-node-esm migration:revert -d ./src/data-source.ts
Migration generate $ npx typeorm-ts-node-esm migration:generate ./src/database/migrations/MIGRATION_NAME -d ./src/data-source.ts
- Run
npm i
command - Setup database settings inside
data-source.ts
file - Run
npm start
command