Our 2016 general election results coverage
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
client
common
data
docs
server
.babelrc
.eslintignore
.eslintrc
.gitignore
.npmignore
Elections-ElectoralCollege.jpt
Elections-FeaturedRaces.jpt
Elections-Nav.jpt
Elections-PresidentMap.jpt
LICENSE
Makefile
README.md
business.js
indoc.json
package.json
webpack.config.dev.js
webpack.config.homepage.dev.js
webpack.config.homepage.prod.js
webpack.config.prod.js
yarn.lock

README.md

elections-2016

Please note: do not reproduce Boston Globe logos or fonts without written permission.

documentation

setup

  • yarn

dev

  • API_URL=<API_URL> npm start - start the main app.

  • API_URL=<API_URL> HP_CONTAINER=<HP_CONTAINER> npm run start:hp - start the homepage app, where HP_CONTAINER is one of HpElectoralCollege, HpMap, HpFeaturedRaces.

  • npm run doc - generate documentation

prod

  • npm run build - build the main app.

  • API_URL=<API_URL> npm run prod - run the main app.

  • API_URL=<API_URL> HP_CONTAINER=<HP_CONTAINER> npm run build:hp - build the homepage app, where HP_CONTAINER is one of HpElectoralCollege, HpMap, HpFeaturedRaces.

  • npm run prod:hp - run the homepage app.

deploy homepage

  • make homepage env=<env> user=<user> - deploy js/css files to apps.
  • upload - run this on apps.

License

MIT © The Boston Globe