Currency service parsed from Central Bank of Russia
$ git clone [email protected]:kayalova/admitad-test.git
$ npm install
You need redis running on your computer and pm2 installed globally
# development
$ npm run nodemon
# production mode
$ npm run prebuild && npm run build && pm2 start ecosystem.config.js
To register and to login (save token u got from response)
$ curl -X POST -d '[email protected]&password=123' http://localhost:3000/auth/signup
$ curl -X POST -d '[email protected]&password=123' http://localhost:3000/auth/signin
To get currencies (query params are optional)
$ curl http://localhost:3000/currencies -H "Authorization: Bearer your.bearer.token"
To get single currency
$ curl http://localhost:3000/currency/R01820 -H "Authorization: Bearer your.bearer.token"
All application logs can be found in out.log file. Also check out application documentaion at http://localhost:3000/api
Nest is MIT licensed.