Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.28 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.28 KB

Admitad test

Description

Currency service parsed from Central Bank of Russia

Built with

Installation

$ git clone [email protected]:kayalova/admitad-test.git
$ npm install

Prerequisites

You need redis running on your computer and pm2 installed globally

Running the app

# development
$ npm run nodemon

# production mode
$ npm run prebuild && npm run build && pm2 start ecosystem.config.js

Examples

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

License

Nest is MIT licensed.