This is Exchange Rates Consumer Application for Freska test application. Part of Test assignment for fetching exchange currencies data from fixer.io.
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.
- Units specs written with
Rspec
. - Rates info is fetched from https://github.com/Extazystas/fixer_rates_proxy_api application.
- Rubocop is used for a good code style. Run example:
rubocop lib
- Ruby version 2.6.3
Please run bundle install
before starting the script.
You can start this app with ruby execute.rb
:
RACK_ENV=test rspec spec/
- Add Sidekiq worker for scheduling application reports generation
- Add Formatter for JSON reports