Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
dist
test
.bowerrc
.editorconfig
.gitattributes
.gitignore
.jshintrc
Gruntfile.js
README.md
component.json
package.json

README.md

Award Calendar

Powered by spreadsheets.latimes.com, Awards Calendar pulls in the JSON from any LAT spreadsheet and spits them back out via a template.

See the spreadsheet here: awards spreadsheet You'll need to go into databank to edit the content

Installation

Here's what you're going to need

  • Node
  • NPM (now included in node package)
  • Grunt
  • Bower

You can download the Node package from the official site (nodejs.org) or...

On Mac OS X (with homebrew): brew install node

Linux (I have not tested): sudo apt-get node

Once Node and NPM are installed download the grunt and bower command-line tools globally. npm install -g grunt-cli bower

Dependencies

The Awards Calendar uses the following JS libs:

  • Handlebars
  • Moment
  • jQuery

These will all be installed via bower

Time for some action

  1. clone the repo git clone git@github.com:datadesk/awards-calendar.git

  2. Hop into the repo and download the dependecies cd awards-calendar npm install && bower install

  3. Peep your handy work grunt server

Deploy

Once everything looks good run grunt to build the final porject

grunt will create a dist directory with the following structure:

dist
├── index.html
├── scripts
│   ├── main.js
│   └── vendor
│       ├── modernizr.js
│       └── require.js
└── styles
    └── main.css

In the future, require will be compiled in main.js so there will be only one JS file.

You'll need to manually combile the HTML, CSS and JS into a blurb for P2P.

Next Steps

  • Auto complile HTML, CSS, JS into one flat file
  • Send stuff to s3
Something went wrong with that request. Please try again.