React app for rendering candidate questionnaires from a Google sheet.
In order to build the application, execute the following:
> yarn install
> yarn build
The JavaScript application is currently deployed to firebase at:
https://candidate-questionnaire.firebaseapp.com/main.js
To install the app into a page, it is necessary to add three elements to the HTML of your page.
This element is a div with an id
attribute of main
. This element is where the questionnaire
will be inserted into the page.
<div id="main"></div>
You will need to insert a script tag that references the app code itself.
<script src="https://candidate-questionnaire.firebaseapp.com/main.js"></script>
In order to configure the app to find your Google sheet(s), it is necessary to add the configuration
as a script
tag:
<script>
window.CandidateQuestionnaire = {
districtSpreadsheetMap: {
"District 1 Name": "<Google Sheets ID>",
"District 2 Name": "<Google Sheets ID>",
},
supportSearch: false
};
</script>