Skip to content

Latest commit

 

History

History

SamplePoMoSClientApp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

SamplePoMoSClientApp

This is a very simple web application that demonstrates how PolicyModels Server's API can be used. It allows users to see what models are available, obtain models and version metadata, and request an interviews.

This application is intended as a reference for people who need to write client software that integrates with a PolicyModels Server.

How to run this

You'll need:

  • Java 11 or later.
  • SBT
  • A running PolicyModels Server running somewhere it can post back to this app (easy option: on the same computer).
  • The code here, downloaded to your computer.
  • Run this application:
    1. Using a terminal, navigate to the samplepomosclientapp folder in the downloaded repo.
    2. Type sbt. SBT loads the project and may initialize some data, this may take a while.
    3. Type run -Dplay.server.http.port=9001. This runs the application locally, on port 9001.
    4. Navigate to http://localhost:9001 using your browser.

Screenshots

Controls and console:

Screenshot

Interview request UI

Screenshot