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'.
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 ofbuild: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 aQUESTIONNAIRE_AUTH
env var in the form 'user:pass'.