This projects consists of two parts:
- Firebase web mapping application
- Salesforce Lightning Component
This web site is embedded via iframe in several DEQ web applications. See src/index.html for an example of how this is done.
Staging: https://deqspills.dev.utah.gov/
Production: https://deqspills.deq.utah.gov/
This project also contains a Salesforce Lightning Component (/salesforce) that embeds the Firebase web application via iframe in a similar way to other DEQ web applications.
Development Sandbox: https://utahdeqorg--eid.sandbox.my.salesforce.com/
Production Salesforce Instance: https://utahdeqorg.lightning.force.com/
Note
For DEQ web developers developing on localhost
: You need to define the following global variable and pass a wide-open quad word: AGRC_testQuadWord
.
Pushes to dev
and main
branches will automatically deploy to staging and production Firebase instance respectively using the standard UGRC release and deploy actions.
The Salesforce Lightning Component is developed in the /salesforce
directory. The component is built using the Salesforce Lightning Web Components framework.
- Install the Salesforce CLI
- Authenticate with the DEQ Salesforce org:
sfdx org login web --instance-url https://utahdeqorg--eid.sandbox.my.salesforce.com/ --alias spillsSandbox
- Right-click on
manifest/package.xml
and selectSFDX: Retrieve Source in Manifest from Org
- Right-click on
lwc
folder and selectSFDX: Deploy Source to Org
- Go to a case record in the sandbox (e.g. https://utahdeqorg--eid.sandbox.lightning.force.com/lightning/r/Case/5003R000007Vao4QAC/view)
- Click the gear icon in the upper right corner and select
Edit Page
- Click on the "Save" button and then go back to the page (this is a hack to make sure that salesforce gets your changes).
- Setup Cog button -> Setup
- Quick Find -> Outbound Change Sets
- Create a new set and add the component(s) that you want to deploy
- Upload the change set and then ask Barry to deploy your change set to production.