Stock Ticker is an example of using Polymer to create a stock ticker component to render stock/trading information from google's financial public url.
It will get data from URL, then parse it and render appropriately; all within component that can be used elsewhere.
The project has 2 types of stock tickers
- Stock ticker - Separation between template and logic code
- Stock ticker (raw) - both template and logic code is combined into a single file
You can execute following NPM commands to do things with the project
npm start- build and start local http server. It will listen at port 3000, you can go to your browser at http://localhost:3000 to test things out.
npm build- build project; this will specifically run
vulcanizeto manage dependency on html import and
crisperto extract JS code into separate file, then finally
babelJS file. This command will be run automatically as part of
npm start. It runs commands ass seen in
npm test- start
jasminetest suite for both types of Stock ticker. This is with intention to demonstrate how to test polymer-based project.