A single page app for tracking the travels of 2016 presidential candidate Ted Cruz. Built and maintained with the News Apps App Kit.
git clone texastribune/tedtracker
npm install
To update the data from the Google spreadsheet, run npm run spreadsheet/fetch
. Please note – if you do not have access to that spreadsheet and/or have not been authenticated against access to Google's Drive API with the Texas Tribune's graphics app, this will not work for you. (This should only apply to those of you playing a long at home/not members of News Apps.)
You'll then need to pull down the raw assets from S3. We don't commit images and the like.
npm run assets/pull
To test the site locally, run gulp serve
.
Always be sure to get the latest data first!
npm run spreadsheet/fetch
Then build the site:
gulp
And finally deploy:
npm run deploy
(Similar caveats as above – if you do not have clearance to access the Texas Tribune's S3 buckets this step will break for you.)