Skip to content
/ parcels Public

A web application for viewing Utah parcel data

License

Notifications You must be signed in to change notification settings

agrc/parcels

Repository files navigation

Utah Parcel Viewer

firebase deploy code style: prettier Conventional Commits Standard Version

This application allows people to find and view the information UGRC has available for all of the county parcels in Utah.

parcels.utah.gov

More information about the parcel source data can be found on cadastre data page our website.

This application is displaying the UGRC aggregated Utah Statewide Parcels ArcGIS Online service.

Development

Set up

Checkout repository and install dependencies

git clone https://github.com/agrc/parcels.git
cd parcels
npm install

Secrets

Create a .env.local file

VITE_DISCOVER_KEY=
VITE_API_KEY=
VITE_FIREBASE_CONFIG=
  • The discover key can be obtained by following the instructions on our website
  • The API key can be obtained by creating an account on developer.mapserv.utah.gov
  • The firebase config can be obtained from firebase

Deployment

When commits are pushed to the main or dev branch, a GitHub action is triggered and the website is deployed to Firebase Hosting.

GitHub environments are used with this project to enable deployments to production and development.

Create two environments

  • prod
  • dev

Within these two environments add the following secrets

  • DISCOVER_QUAD_WORD - your discover quad word
  • FIREBASE_CONFIG - the config object for firebase analytics
  • PROJECT_ID - the google project id
  • SERVICE_ACCOUNT - the service account with the roles
    • roles/storage.admin
    • roles/firebase.admin
    • roles/serviceusage.apiKeysAdmin
  • WEB_API_KEY - your api.mapserv.utah.gov api key

This project uses conventional commits and release please to manage the change log and version.