An example of my JavaScript code.
This is a Web application built in JavaScript. It connects to a JSON API owned by the Daily Mirror that I architected and constructed when I was working for Trinity Mirror.
The application allows a user to quickly look through the latest articles in various categories on the Daily Mirror site.
When the user opens the application first they are faced with a choice of 4 categories. The user can proceed by clicking on one of the categories. This loads articles associated with the category.
On the next screen the user can change category by clicking buttons at the top of the window, or filter the current articles by entering a case-sensitive search term in the filter box (only articles that contain matches for this phrase in their titles will be displayed.
Once downloaded or unzipped, the application can be run by opening the index.html file in a web browser (I have tested against the most recent versions of Chrome, Firefox and Safari).
The tests use karma. To run them do the following:
npm install -g karma-cli
npm install
(from inside the project)karma
The application uses gulp so after running npm install
you can run $(npm bin)/gulp
to recompile.