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/.envtosrc/ClientApp/.env.localand 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 9.0.* SDK
-
Create an
appsettings.Development.jsonfile to overwrite and add properties to theappsettings.jsonfile for development -
Add an
ArcGISproperty inappsettings.Development.jsonwith the following properties filled out"ArcGIS": { "username": "", "password": "", "host": "dns.of.arcgis" },
-
Add a
ReverseProxyproperty inappsettings.Development.jsonwith the address of the arcgis map service"ReverseProxy": { "Clusters": { "arcgis": { "Destinations": { "arcgis/destination1": { "Address": "https://arcgis/rest/services/the/MapServer" } } } } },
-
Add a
ConnectionStringsproperty toappsettings.Development.jsonwith 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
/srcfolderdotnet user-secrets set "Authentication:UtahId:ClientId" "<client-id>" dotnet user-secrets set "Authentication:UtahId:ClientSecret" "<client-secret>"
-
Start the redis database
- docker-compose up -d cache
-
Start the api
- You can debug with the
Debugvscode launch profile or execute ./scripts/watch.sh
- You can debug with the
-
optionally run both the dot net and client apps by running
npm run start:allfromsrc/ClientApp -
Navigate to
http://localhost:5001/development
- 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.pyanddatabase.pyfiles from the templates in thevaultfolder
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
.templatefromvault\database.template.py - Remove
.templatefromvault\api.template.py
- Create
correctionsdatabase - Run schema.sql to create the
offenderstable
The logs for this project are sent to Stackdriver