Please note: do not reproduce Boston Globe logos or fonts without written permission.
- components: https://bostonglobe.github.io/elections-2016/
- utils API: https://bostonglobe.github.io/elections-2016/utils
yarn
-
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 ofHpElectoralCollege, HpMap, HpFeaturedRaces. -
npm run doc- generate documentation
-
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 ofHpElectoralCollege, HpMap, HpFeaturedRaces. -
npm run prod:hp- run the homepage app.
make homepage env=<env> user=<user>- deploy js/css files toapps.upload- run this onapps.
MIT © The Boston Globe