augustbleeds / zinc-coding-challenge

Zinc Platform Take Home

Home Page:https://shakespeare-count.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zinc Platform Coding Challenge

Backend: Node.js
Front-end: jQuery, bootstrap
Testing: Mocha, Chai, Sinon, Nock

Takes an XML file that adheres to DTD "play.dtd" and counts the number of speakers. Works for
any of the Shakespearian plays on http://www.ibiblio.org/xml/examples/shakespeare/ 

I created two main classes, Poet and CountManager which are the scraper object and data store object
respectively. Separating data from application logic makes the store object swappable and
easier for testing.

Application logic:
AJAX request to API Endpoint -> Backend uses XML/HTML parser to count info -> JSON is returned and displayed

On the front-end, I opted to using jQuery because I did not want to reload a new page
every time the user typed in a new XML file link.

About

Zinc Platform Take Home

https://shakespeare-count.herokuapp.com/


Languages

Language:JavaScript 86.5%Language:HTML 13.5%