The spatial mapping component to the Watershed Restoration Initiative
Production: wri.utah.gov
Staging: wri-stage.at.utah.gov
- Duplicate
.env.exampleas.env.localin the root directory and fill in the required values - Start your Cloud SQL proxy for the at database
- See
functions/README.mdfor the local Firebase Functions and database requirements - Install dependencies with
pnpm installin the root directory; this installs all workspace packages.
Set DEV_USER_EMAIL in .env.local if you want pnpm start to inject your local edit credentials from the dev database.
- Run
gcloud auth application-default loginand authenticate - Run
cloud-sql-proxy ut-dnr-dwr-wri-app-at:us-west3:nrgcwridbt -p 7777 - In a new tab, make sure you are in the WRI repo, and run
pnpm start - Navigate to http://localhost:5173/
This is required for the export to PDF functionality. We need our own service to support custom layouts. Follow the instructions in Esri's documentation to create the service.
- The Pro project is in
/maps - The Pro project requires Pro 3.5 or higher (other wise some of the map surround elements, such as the scale bar, will be dropped)
- Leave the service set to
asynchronous
After the service has been published, you can update the layout by exporting the Layout to Layout.pagx (overwrite) in the ArcGIS Server directory (e.g. arcgisserver\directories\arcgissystem\arcgisinput\WRI\ExportWebMap.GPServer\extracted\cd\layouts). No need to republish the service.
The Pro project is on the "D" drive.
See gptasks/Readme.md
-
secret DATABASE_INFORMATION needs to be accessible with
{ "user": "", "password": "", "instance": "" }
This project was developed with the assistance of GitHub Copilot.