Client repository for New America's Varying Degrees project. Backend code lives here
- clone repo
- run
npm install
The project can be run locally by running the npm run start-dev
script.
The backend must also be running locally in order to support data fetches. Alternatively, the dbPath can be changed to the production backend that is hosted on heroku.
Running npm run build
will emit two files (varying_degrees-submodule.js and varyingdegrees-emebed.js and upload them to the appropriate buckets in S3.
The embed script is used to power the https://varyingdegrees.newamerica.org/, which is used for creating iframes for individual questions/topics from the survey.
The submodule script is added into the varying degrees bundled script in the data-projects repo and is used to include chart modules directly into the org website's data viz block template.