The User Interface (UI) provided is meant to allow public defenders or others an ability to easily review contents of a case to determine when bias was detected. Since public defenders are so busy we wanted this to be an item that could be utilized very quickly and easily. No knowledge of the programming behind the tool is needed for an end user.
The Open Sentencing UI is part of the overall Open Sentencing tool.
Check out the main GitHub repo for more information:
Call for Code for Racial Justice - Open Sentencing: https://github.com/Call-for-Code-for-Racial-Justice/Open-Sentencing.
- Contents
- Getting started
- Built with
- Contributing
- Versioning
- Authors
- License
- How to Help We'd love your involvement!
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
The Invision Prototype shows what we're currently implementing.
- Node.js 10 or above
- Angular CLI . Last tested with 12.2.1.
- IBM App ID service
- Clone or download the GitHub repository.
- Change directory to
Open-Sentencing-UI/web
. - Run
npm install
to install all the packages.
Fill out the App ID credentials in web/src/app/services/appid-authentication.service.ts
. To obtain the credentials, complete the following 3 steps:
- Add new application in your App ID service. Select "Single-page application" from Type drowdown.
- Register
http://localhost:4200/*
or other redirect_uri you trust to a list of authorized clients. This should be the uri your app uses, eg,https://localhost:8080/*
- Now you can obtain the values from the
Applications
tab on the main page of your service instance.
- CLIENT-ID: clientId
- DISCOVERY-ENDPOINT-URL: discoveryEndpoint
this.appid.init({
// REPLACE with credentials from IBM CLOUD APPID Service
clientId: '<CLIENT-ID>',
// REPLACE with credentials from IBM CLOUD APPID Service
discoveryEndpoint: '<DISCOVERY-ENDPOINT-URL>'
});
- Change directory to Open-Sentencing-UI/web
- Run
npm start
to start the application on port8080
.
You can choose your own image name and tag, such as os-ui:oct18
. The .
at the end represents the location for the new image. You can also choose your own container name.
docker build -t <image name> .
docker run --rm --name <image name> -p 8080:8080 <container name>
example:docker build -t os-demo:oct19 .
docker run --rm --name os-ui -p 8080:8080 os-demo:oct19
Run the Following command:
ng test
Run the following command:
ng lint
- Angular
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Kandarp Thakar
- Xinzhan Lin
- Max Veit
- David Nugent
- Jean Carlos Ricardo Arruda
This project is licensed under the Apache 2 License - see the LICENSE file for details.
Please visit our main repo here: https://github.com/Call-for-Code-for-Racial-Justice/Open-Sentencing. More detailed areas on where we need assistance are provided. If you would like to Help with the cause to use technology to battle racism, we would love for you to get involved! Please submit updates to us for review. Together we can use technology to fight systemic racism!