Sha256: fe9111bd54273bd91da51fb2f30009332c037bbd20b1f73c3f45957e3f0d8fbf
Contents?: true
Size: 1.97 KB
Versions: 2
Compression:
Stored size: 1.97 KB
Contents
[![Maintainability](https://api.codeclimate.com/v1/badges/a0b7d744a73e42bb731d/maintainability)](https://codeclimate.com/github/nisevi/dollar_to_euro/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a0b7d744a73e42bb731d/test_coverage)](https://codeclimate.com/github/nisevi/dollar_to_euro/test_coverage) [![Build Status](https://semaphoreci.com/api/v1/nisevi/dollar_to_euro/branches/master/shields_badge.svg)](https://semaphoreci.com/nisevi/dollar_to_euro) # DollarToEuro Command line tool to convert a dollar amount to euro. It keeps a database updated with the latest values for exchange from `1999-01-04` till now. ## Dependencies - MongoDB: - You will need to [install MongoDB](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/); - For starting MongoDB you may need to run `sudo mongod`; - If you face an issue saying `/data/db` is missing, just run `sudo mkdir -p /data/db`; - Redis: - [Quick installation guide](https://redis.io/topics/quickstart); - Sidekiq: - For running locally you will need to run `bundle exec sidekiq -r ~/absolute/path/to/your/worker.rb`; - More info [here](https://www.youtube.com/watch?v=bfPb1zD91Rg&list=PLjeHh2LSCFrWGT5uVjUuFKAcrcj5kSai1); - Whenever: - If you want to activate the cron job for updating the database once per day remember you have to add the cron job, locally `whenever -i`; ## Tests - Rspec: - `bundle exec rspec`; - Cucumber: - `bundle exec cucumber`; ## Running the converter - Help: - `bundle exec bin/dollar_to_euro --help` to see the available options; - Options: - `--amount` to specify the amount you want to convert; - `--date` to specify the date to pick the value of the euro from that day, default `today`; - `--update` updates the database with the latest values; - Usage: - `bundle exec bin/dollar_to_euro --date 2018-02-25 --amount 200`; - `bundle exec bin/dollar_to_euro --amount 200`; - `bundle exec bin/dollar_to_euro --update`;
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dollar_to_euro-0.1.1 | README.md |
dollar_to_euro-0.1.0 | README.md |