andrew/clasher — pull request #1 by AMRoche (2013-07-17 13:07:01+00:00)
Title: Ui+dynamic city+dynamic tags

Added some code which does the following;

On scrape, parses the JSON in to two separate maps, one being City to Country and the other being Tag to City maps. These are saved as countryCities.json and cityTags.json respectively.

There is a node script in the tests folder to check if the events.json file is in the write format to be parsed. This check is ran at the end of the scraper, and depending on the result one of two things happen;

1) pass case; the events.json is parsed in to the two previous files and the server is started.
2) fail case; the server is started.

The server then checks whether the files exist, and depending on that pass information to the pages being rendered.

On a pass, the data files are then used in the front end to dynamically modify the contents of the dropdown menus such that a user cannot select a city outside of the selected country (as per Lanyrd information). On a fail, the script is not ran.

Additionally, input type="date" was used to replace the text boxes used for date input currently, and some labeling was added to each text field.

The readme.md was also modified to give a short and brief description of how to run the clasher project.