ADH Covid Observer
Local development
Install dependencies by running yarn in the folder:
You will need a valid CKAN API key.
Add a .env
file in the project route with:
REACT_API_KEY=<provided-key-here>
Then start the local development server with:
Deployment steps
- PR src changes to iframe Branch
- Confirm they are working in iframe branch with yarn dev
- Delete .parcel_cache if need be
- When working. Quit dev server.
- Delete contents of dist folder.
- Delete .parcel_cache just in case
- yarn build
- Note the added class fro the script output. ie. unique-12xfxf
9.
If you are wanting to push to DEV (ie. africadata.webflow.io)
Rename or copy css and js files to inflation-observer.dev.css and inflation-observer.dev.js
else
Rename or copy css and js files to inflation-observer.css and inflation-observer.js
This will update the github pages.