AP&P web application
If you are using vscode, download the recommended extensions from this workspace.
- Change directories to the react App
cd src/ClientApp
- Using node lts get all of the project dependencies
npm install
- Duplicate
src/ClientApp/.env
tosrc/ClientApp/.env.local
and add the correct values - Start the development server
npm start
The offender feature service will not function since the reverse proxy dotnet service is not running.
-
Install the dotnet 8.0.* SDK
-
Create an
appsettings.Development.json
file to overwrite and add properties to theappsettings.json
file for development -
Add an
ArcGIS
property inappsettings.Development.json
with the following properties filled out"ArcGIS": { "username": "", "password": "", "host": "dns.of.arcgis" },
-
Add a
ReverseProxy
property inappsettings.Development.json
with the address of the arcgis map service"ReverseProxy": { "Clusters": { "arcgis": { "Destinations": { "arcgis/destination1": { "Address": "https://arcgis/rest/services/the/MapServer" } } } } },
-
Add a
ConnectionStrings
property toappsettings.Development.json
with the connection string for the database"ConnectionStrings": { "DefaultConnection": "Server=;Database=;UID=;PWD=;Timeout=5;Encrypt=True;" },
-
Set the client secret and id from the ApAdmin UtahId project credentials page from the
/src
folderdotnet user-secrets set "Authentication:UtahId:ClientId" "<client-id>" dotnet user-secrets set "Authentication:UtahId:ClientSecret" "<client-secret>"
-
Start the application
- You can debug with the
Debug
vscode launch profile or dotnet run
- optionally run both the dot net and client apps by running
npm run start:all
fromsrc/ClientApp
- From python 3 create a virtual environment
python -m venv .env
- Update pip
python -m pip install -U pip
- Install python requirements
pip install -r requirements.dev.txt
- Create
api.py
anddatabase.py
files from the templates in thevault
folder
This website uses standard version and conventional commits. The changelog and versions are managed by conventional commit messages and semantic versioning.
GitHub action pipelines will deploy this application to the cloud.
- Install python requirements to forklift environment
pip install -r requirements.txt
- Update secrets in the following files
- Remove
.template
fromvault\database.template.py
- Remove
.template
fromvault\api.template.py
- Create
corrections
database - Run schema.sql to create the
offenders
table
The logs for this project are sent to Stackdriver