lappi-lynx / fixer_rates_report_service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is Exchange Rates Consumer Application for Freska test application. Part of Test assignment for fetching exchange currencies data from fixer.io.

ruby

Description

Create a reports on currency development. Addplication configuration stored in DevConfig, AwsConfig etc in /config folder via anyway_config lib.

For a given it calculates the value and delta for:  - today vs yesterday  - today vs 7 days ago  - today vs 1 month ago  - today vs 1 year ago

You can add and remove any currency supported by Fixer to the report via app configuration. The application supports the following output formats: HTML, XLS, CSV, JSON. The report is created in one or several of these formats, depending on the applications configuration.

Tech info:

  • Ruby version 2.6.3

Setup

Please run bundle install before starting the script. You can start this app with ruby execute.rb:

Run tests:

RACK_ENV=test rspec spec/

Report example:

1 step

TODO List

  • Add Sidekiq worker for scheduling application reports generation
  • Add Formatter for JSON reports

About


Languages

Language:Ruby 93.1%Language:HTML 6.9%