A single page web app to display live stocks data
This app pulls live stocks data from ws://stocks.mnet.website and displays it in a tabular format.
- The connection can be initiated or closed using buttons provided in the UI.
- If a stock value goes up, the value is indicated by a green background.
- If a stock value goes down, the value is indicated by a read background.
- The latest update time is indicated beside the stock value.
App entry end-point: index.html App test end-point: tests.html
Unit tests for the project have been added using QUnit
Automatic deployments on commits to master branch have been set using travis-ci.
ws://stocks.mnet.website can cause 'mixed-content' error when the app is hosted via https due to security rules enforced by the browser. Following are the workarounds:
- Hosting the app via http instead of https (this can expose vulnerability in the app for man-in-the-middle)
- Enabling SSL for the web socket server and hosting it over wss will ensure the server works with both http as well as https enabled websites.