SUNDERED SEAS MEGAGAME MAP
This two-page Node.js web application was created for an event held by the Cleveland Megagame Council on January 21, 2016. It was roughly hacked together over the course of two days by Jon Stout, based on designs by Jeremy Paul and Christopher Hisey.
The first page of the app is a self-updating map that takes its base data from a Google Sheets workbook, made available via the Google Sheets API. The server routinely polls data from the spreadsheet, creates a complex object to represent the game state, then saves that information in a MongoDB/Mongoose ORM database. The client-side map then refreshes itself from the server's copy of the data via AJAX on a regular basis. This was done to help create a record of the game as it changed over the course of the day.
The app's second page uses the saved game history to create a Civilization-like replay of the event as it happened on a minute-by-minute basis. Roughly 128 changes to the map were recorded over the course of eight hours. The presentation can be presently viewed at https://quiet-spire-95700.herokuapp.com/review.
All specific ids, paths and service account credentials have been removed from this copy of the repository for obvious reasons. This code is nonfunctional and shared purely for demonstration purposes.
- Express Handlebars / Handlebars
The MIT License (MIT) Copyright (c) 2016 Jon Stout
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.