Banking REST API with NestJS
$ npm install -g @nestjs/cli
$ nest --version
$ nest --help
$ npm install -g ts-node typeorm
$ npm install --save @nestjs/typeorm
$ npm install --save typeorm
$ npm install --save mysql moment moment-timezone
$ nest new banking-nest
MYSQL_UPC_BANKING_NEST_URL=mysql://{user}:{password}@{host}:{port}/{database}
$ nest generate module customers
$ nest generate controller customers
$ nest generate service customers
$ nest generate module accounts
$ nest generate controller accounts
$ nest generate service accounts
$ nest generate module transactions
$ nest generate controller transactions
$ nest generate service transactions
$ typeorm migration:generate -n InitialSchema -d src/app/infra/migrations
$ typeorm migration:create -n InsertCustomers -d src/app/infra/migrations
$ typeorm migration:create -n InsertAccounts -d src/app/infra/migrations
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov