- The app was written in such a way that it is able to be statically hosted here on github. Goto https://grobot.github.io/splosion and the app will work.
- If you want, you can host it statically on your own servers or on S3. Keep all the files in the repo where they are and it will work.
-
The majority of what is going on here is in two files:
-
indexquerieshttp://stocksplosion.apsis.io/api/companyand lists all available companies -
detailsquerieshttp://stocksplosion.apsis.io/api/company/LABELand charts the past 30 days prices and runs analysis. The logic for the analysis lies in theanalyzeDatafunction.
- The logic in this app is very simple. Most of the code is there to query the API and then display. The one function that could be tested would be
analyzeDatain thejs/details.jsfile. It would be nice to fine tune that function more to give better results.