This iteration of the frontend for the Pollaris polling locator uses Gatsby.js along with the contentful CMS plugin.
The guidelines for our content entry process are available here and the polling locator copy workbook is available here. A big thanks to Adam Garner for putting these guides together.
Run the following commands:
yarn install
yarn run setup
setup should populate contentful and your .env files then run:
yarn run dev
- The polling locator is currently solely populated with California specific content, search for an adddress in California.
- There is no fallback page currently for states without data.
Contentful keys can be find in Settings > API Keys.
Found in APIs & Services > Credentials. You will need to enable static maps, places and static.
Imports and exports with the contentful/export.json
file.
yarn run export
yarn run import