Skip to main contentAccelerated Decision Making with AI

AppServer Setup

To setup the application server, follow the following steps:

Encrypt master and server password

As described here, encrypt the master and server password to allow access to the ungana-models from Jfog Artifactory.

  1. Create and encrypt master password with

    mvn --encrypt-master-password
  2. Store the generated encypted master password in ${user.home}/.m2/settings-security.xml in this format

    settings-security.xml
    <settingsSecurity>
    <master>{ENCRYPTED_MASTER_PASSWORD}</master>
    </settingsSecurity>

    N.B : If the .m2 folder does not exist, create it in the root directory then perform step 2

  3. Create and encypt sever password with

    mvn --encrypt-password
  4. Store the generated encypted server password in ${user.home}/.m2/settings.xml in this format

    settings.xml
    <settings>
    <servers>
    <server>
    <id>central</id>
    <username>SERVER_USERNAME</username>
    <password>{ENCRPTED_SERVER_PASSWORD}</password>
    </server>
    <server>
    <id>snapshots</id>

Install mvn dependencies and package

In the AppServer directory, run the following command:

mvn clean package

Create the configurations YAML file (application-local.yaml) using the following format:

ADMAI/AppServer/src/main/resources/application-local.yaml
spring:
datasource:
jdbc-url: ${POSTGRES_URL}
username: ${POSTGRES_USERNAME}
password: ${POSTGRES_PASS}
driver-class-name: org.postgresql.Driver
platform: postgres
hikari:
connection-test-query: SELECT 1

Edit the credentials

NOTE The application-local.yaml file is the configuration file used to setup the server and add a database.

Setup pgAdmin

Using the credentials in the application-local.yaml file add a server and create a database

Run the Application Server

Run the TaskClerkMainApplication.java file

Continue setting up…