https://github.com/agrc/uic-inventory
A line of business application to manage the creation, permitting, and payment for underground injection control sites in Utah
https://github.com/agrc/uic-inventory
billable government-app terraform-managed website
Last synced: 5 months ago
JSON representation
A line of business application to manage the creation, permitting, and payment for underground injection control sites in Utah
- Host: GitHub
- URL: https://github.com/agrc/uic-inventory
- Owner: agrc
- Created: 2021-04-02T01:16:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-02-04T02:21:54.000Z (5 months ago)
- Last Synced: 2026-02-04T14:26:25.727Z (5 months ago)
- Topics: billable, government-app, terraform-managed, website
- Language: JavaScript
- Homepage: https://uic-inventory.deq.utah.gov/
- Size: 15.1 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: Readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# UIC Inventory
[](https://github.com/agrc/uic-inventory/actions/workflows/release.yml)
## Debugging
```sh
./scripts/watch.sh
```
## Rebuilding database
```sh
./scripts/rebuild_db.sh
```
chmod +x ./scripts/yada yada
## Secrets
### API secrets
```sh
dotnet user-secrets init
dotnet user-secrets set "Redis:Configuration" "localhost:6379"
dotnet user-secrets set "UtahId:Authority" "https://login.dts.utah.gov:443/sso/oauth2"
dotnet user-secrets set "UtahId:ClientId" ""
dotnet user-secrets set "UtahId:ClientSecret" ""
dotnet user-secrets set "CloudSql:Host" "localhost"
dotnet user-secrets set "CloudSql:Port" "5432"
dotnet user-secrets set "CloudSql:Db" "app"
dotnet user-secrets set "CloudSql:Username" "postgres"
dotnet user-secrets set "CloudSql:Password" "what password"
dotnet user-secrets set "App:AdminEmail" "you@email.com"
dotnet user-secrets set "SendGrid:Key" "your send grid api key"
dotnet user-secrets set "UPLOAD_BUCKET" "the gcp storage bucket where uploaded files are processed"
dotnet user-secrets set "STORAGE_BUCKET" "the gcp bucket where scanned files are stored"
dotnet user-secrets set "GroundWaterContacts:Connection" "the connection string for the ground water contacts database"
```
### App secrets
1. Duplicate `./src/api/uic-inventory/.env` to `./src/api/uic-inventory/.env.local` and add an API key.
## Deployment
> [!WARNING]
> There are a lot of chicken and egg issues with this project deployment.
### API deployment
1. Request the Cloud Run service account is attached to the DTS shared VPC
1. Request an authorized network for the Memorystore Redis
1. Update those values in the terraform and apply the plan. It will fail.
1. Update the `secret-appsettings` with the database password, redis URI, UtahID client information, and report function URI.
### Malware scanner deployment
1. Run the `Scheduled Events` GitHub Action to create the clam AV data
1. Run the `Workflow Dispatch Events` GitHub Action to create the clam AV Cloud Run
1. Rerun the terraform