Rest API made in MongoDB, Nestjs, using TDD (Test Driven Development), TypeORM and TypeScript.
- docker
- docker-compose
- npm
$ npm i
$ docker-compose up --build
# listening in http://localhost:3000
# unit tests
$ npm run test
# test coverage
$ npm run test:coveralls
GET
http://localhost:3003/exchange/?from=USD&to=BRL&amount=1
POST
http://localhost:3003/currencies/
Put values in body:
currency=BRL
value=0.2
PATCH
http://localhost:3003/currencies/BRL/value
Put value in body:
value=0.22
DELETE
http://localhost:3003/currencies/BRL