Git Product home page Git Product logo

currency-watcher's Introduction

Currency monitor Build Status Coverage Status

This application is built on the framework Ruby on Rails 6. The client part of the application is being assembled on webpack. Its working on React and Redux;

The application with a background script updates the data on the quotation of the currency and in real time displays the rate on the open pages of the application.

Root path is: / - this is the page with currency realtime monitor;

Also, the application provides the ability to set a fixed exchange rate for a certain time, during which the application will only show it.

Admin path is: /admin - this is the page with admin interface to force currency rate. You are can set fixed rate and this rate will shown on all opened pages;

  • This app runned on Heroku: https://ancient-temple-64629.herokuapp.com/

  • Ruby version

    2.7.0

  • System dependencies

    • Foreman (gem install foreman)
    • PostgreSQL
    • redis
  • Configuration

    copy file /config/.env.local.example to /config/.env.local

    set all secrets. Remember, if your password includes some unusual symbols like : - wrap password into single quotes.

  • Database creation

bundle exec rails db:create
  • Database initialization
bundle exec rails db:migrate
  • How to run the test suite
bundle exec rake spec
  • Services (job queues, cache servers, search engines, etc.)

    When Rails server are running, its periodically call market api and fetch currency rate. No any setups needed for that.

    To set forced currency rate from console, run:

    rake currency_monitoring:set_forced_currency_rate pair='USD/RUB' buy=77.99 sell=99.77 expired_at='2020-05-19 21:11:10'

    To renew currency rate from console, run:

    rake currency_monitoring:fetch_currency_rate

currency-watcher's People

Contributors

bsa7 avatar dependabot[bot] avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.