/FkPrice

Chrome extension to check Future/historical price of the given product

Primary LanguageJavaScript

Get Historical and Future Price for the given Product Page

Iphone

  • This is extension to fetch future/historical price from the fk services.
  • Future price is indicated by Red Data Points.

Files and their usage.

  • background.js

    • this is empty.
    • Use: this file runs like a cron.
  • ContentScript.js

    • this is empty as we are not loading anything based on user action.
  • popup.js

    • has a listener which is executed when the popup.html is loaded.
  • Config.js

  • model

    • Request.js
    • Response.js
  • client

    • This has all the client to fetch the data
    • Step1: fetches Request body and Header from the Request.js
    • Step2: Call the util method: getAPIResponse/getPostAPIResponse.
    • Parse the response to fetch pricePoints.
  • assets

  • Sequence of call

    • extensionIconClick -> popup.html -> popup.js -> eventListener() -> getTimePoints() -> callHps(), CallRtg -> adaptTimelineToChartData() -> loadChart()
    • here is the HLD
      • HLD
Bibliography