okfn / ibp-explorer

[ARCHIVED] Data Explorer for the Open Budget Survey, built in collaboration with the International Budget Partnership.
http://survey.internationalbudget.org
7 stars 5 forks source link

Questionnaire builder #104

Closed brew closed 7 years ago

brew commented 7 years ago

This PR adds a build:questionnaires npm command that builds questionnaire/answer pages for each country. These pages are optimised for printing or saving as pdf. The data comes from a static .csv file hosted by Google Sheets. The build command is run during heroku deployment as part of build:prod.

The .csv file ID is defined by the env var QUESTIONNAIRE_SPREADSHEET_ID.

The pages are built into a _build-questionnaires directory that is served by the explorer express app. Basic auth is provided with credentials derived from a QUESTIONNAIRE_AUTH env var in the form 'user:pass'.