Mock Transaction Authorizer Generator

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Libraries

Install Axios to make http requests

npm i --save @nestjs/axios axios

Install schedule module

npm install --save @nestjs/schedule
npm install --save-dev @types/cron

UUID

npm install --save uuid

Install NestJS Config to read env vars

npm i --save @nestjs/config

Resources

nest g resource transactions
Exemplos:
Consulta: https://webhook.site/#!/CHANGE_HERE
Envio: https://webhook.site/CHANGE_HERE

Docker

$ docker build -t luizimcpi/mock-transactions-authorizer .
$ docker run --name transactions-app -d -p 3000:3000 --restart always --env WEBHOOK_API_URL=https://webhook.site/bd5fa43a-a345-4ab0-8d3d-c8021258520c luizimcpi/mock-transactions-authorizer:latest