A website to view and approve to monument record sheet submissions
- Install dependencies
pnpm installpnpm copy:arcgis
- Duplicate
.envas.env.localwith local secrets. - Install functions dependencies
cd functionspnpm install
- Duplicate
functions/.secretsas.secrets.localwith local secrets. - Start the website
pnpm start- Windows:
pnpm start-win- Note: If restarting pnpm, be sure to close the
cmdwindows that it opens first.
- Note: If restarting pnpm, be sure to close the
- Log in via Firebase in order to access the
Staff Revieweruserpnpx firebase-tools login --reauth- Select A and Yes, hit Enter, and click Allow on the browser popup
- Browse to the development server and login as
Staff Reviewer
- Create a site in firebase hosting
- Enable multi tenancy in the Google Identity platform
- Add credential created in apadmin to the tenant
- Update the authentication blocking functions after deployment
- Allow the storage rules to query the database in the firebase console
GitHub Actions installs dependencies for the standalone functions/ package before Firebase deploys, and firebase.json continues to use functions as the deploy source for both local development and CI.
To add new users:
- Ask the user to register on plss.utah.gov (or plss.dev.utah.gov in dev)
- Find the user's record in the submitters collection in firebase and update the elevated field to be true.
The following dependencies need to stay at the tailwind v3 versions
| Package | Tailwind 3 | Tailwind 4 |
|---|---|---|
| tailwind-merge | v2 | v3 |
| tailwindcss | v3 | v4 |
| tailwindcss-react-aria-components | v1 | v2 |
This project was developed with the assistance of GitHub Copilot.