Currency exchange API.
Nest.js App
MySQL Database
$ docker compose up -d
Run seed to populate the database
http://localhost:3000/seed/data
Swagger
http://localhost:3000/api/
Description : Perform currency exchange.
URL: GET
http://localhost:3000/exchange
Query :
{
"from": "string",
"to": "string",
"amount": 0
}
Description : Retrieve information about all available currencies.
URL: GET
http://localhost:3000/exchange/list
$ npm i
$ npm run start:dev
# ExChange Controller
$ npm run test exchange
# Auth Controller
$ npm run test auth
Using .env when starting the docker does not connect the app with the database.
Move raw data to environment variables.