Varying degrees for 2018 on, using Teddy and the data-viz-boilerplate. Each year has a branch named for that year.
2017 version: varying-degrees and varying-degrees-backend
- Make sure you have the AWS CLI configured properly on your machine. If you have Homebrew installed, run
brew update && brew install awscli
and thenaws configure
and finallyaws configure set preview.cloudfront true
- Make sure you have renamed your project in
package.json
. - Run
npm run deploy
- All deployments are cached by AWS cloudfront and available at https://data.newamerica.org/ and on s3 here.
-
React
,ReactDOM
,ReactRedux
, andRedux
are all globally scoped on newamerica.org, and defined as externals within this repo's webpack config. There is no need to install or bundle those dependencies if the graphic will exist exclusively on newamerica.org. -
Critical styles from newamerica.org are included in the head. This includes all fonts and type styles, bootstrap columns, margins, and containers.