This is a stripped down version of the Ballot - or an iteration of it.
bundle install # for dependencies
rake serve # starts a simple serverWill get you started. But you want to rebuild things when things change - right?
guardguard Will run in the background and rebuild your CSS and HTML as you change it. It'll even reload your browser automatically, if you set up livereload
This is a simple HTML application that's compiled using JSON data and ERB templates. Templates are rendered with a controller class found in controller.rb that sets template variables.
The site also SASS for styles and Gridle for responsiveness.
There are a few other rake commands that might be helpful:
rake sharingwill create the sharing redirection pages (stored in/sharing) that are used for social sharing optimizations.rake alderpeoplewill import data fromdata/alderpeople.csvand use it to overwritedata/alderpeople.jsonrake mayorswill build themayors.md... this is only marginally usefulrake allbuild everything except the sass.