theunixbeard / cape-cod

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENV Variables

  • ALERT_EMAIL_ADDRESS (ben's email)
  • CURRENCY_SYMBOL (REQ)
  • TARGET_PRICE (250 cents)
  • HOLDINGS (60,049)

Project Goals

  • Log all historical prices in the DB (quotes table ; fields include symbol, price, and holdings_value)
  • Alert the user via email when CURRENCY_SYMBOL rises above a certain price (TARGET_PRICE). It will check hourly
  • Display current CURRENCY_SYMBOL price on a webpage
  • Display current holdings value (HOLDINGS * current price)

Execution Plan

  1. Create the quotes table, model, validations, etc.
  2. Build webpage displaying current price using coinapi.io
  3. Build a background job (worker) checking the price hourly and email if price rises above TARGET_PRICE
  4. Refactor webpage + worker to share code in a service
  5. Adjust webpage to load the price asynchronously (API call occurs after page load)
  6. Add in total holdings value to the webpage ; Also add holdings info in the email

About


Languages

Language:Ruby 83.4%Language:HTML 11.6%Language:JavaScript 2.6%Language:CSS 1.9%Language:CoffeeScript 0.4%