/tdd-exchange-api

Primary LanguageTypeScriptMIT LicenseMIT

Description

API para conversão de moedas desenolvido utilizando a técnica de TDD com as tegnologias: NestJS, Typescript, Mongodb. Acompanhe o processo de desenvolvimento no youtube.

Running the app

$ docker-compose up
# listening in http://localhost

Test

# unit tests
$ npm run test

# test coverage
$ npm run test:cov


Endpoints

Currency exchange

GET
http://localhost/exchange/?from=USD&to=BRL&amount=1

Create Currency

POST
http://localhost/currencies/
Put values in body:
currency=BRL
value=0.2

Update Currency Value

PATCH
http://localhost/currencies/BRL/value
Put value in body:
value=0.22

Delete Currency

DELETE
http://localhost/currencies/BRL


License

Nest is MIT licensed.