Getting Started

This page describes first steps towards getting the CVA Risk Capital Accelerator Reference Implementation up and running.

GitHub: https://github.com/activeviam/cva-risk-capital-accelerator.git

Download

Go to the Release Note page for the version of the CVA Risk Capital Accelerator you wish to download.

Maven Repository

Unzip the downloaded repositories and copy over your existing maven repository.

Configuration

The only configuration required to start is to edit cvarc-combined-starter/src/main/resources/properties/cvarc.properties

Set input.data.root.dir.path to the directory you want to put your data.

Alternatives

  1. If you only want to use the sample data embedded in the project along with the Jetty server, then you don’t need to configure the data directory.
  2. You can copy the sample data (cvarc-combine-starter/src/test/resources/data-samples/data/) into frtb-activepivot/src/main/resources/ then the sample data will be included in the .war file and you won’t need to set the data directory.

This second alternative is not recommended beyond initial experimental deployments. It is not best practice to include the data in the .war file.

Deployment

Tomcat

[Eclipse / Intellij] + Jetty

role=“alert”>You may run into a Java.Lang.StackOverflow exception due to an unresolved Oracle issue when attempting to build the project, detailed stack trace in CVARC-275. If this occurs, then you will need to add the following PATH variable to increase the memory available to Maven during build processes.

MAVEN_OPTS="-Xms2048m -Xmx4096m -Xss8m"

Extra steps to run in InteliJ

To Successfully run CVA Risk Capital inside InteliJ, you will need to allocate more memory to the InteliJ compiler. Add the necessary memory flags inside the ‘User-local build process VM options’ field found here:

Preferences | Build, Execution, Deployment | Compiler | 'User-local build process VM options'.

Example value: -Xms2048m -Xmx4096m -Xss8m

(Set the values to allocate enough memory to the compiler considering the amount of RAM available in your machine).

Extra steps to run in Eclipse

To Successfully run CVA Risk Capital inside Eclipse, you will need to allocate more memory to the Eclipse Maven Build:

-Xms1024m -Xmx2048m -Xss5m

Eclipse JRE VM Args

How to Run All Tests

mvn clean install -P IT

ActiveUI Development

role=“alert”>Since CVARC-1.1.0 release, CVARC Accelerator use MonoRepo.

If you are actively developing the UI, you can use yarn or npm to pick up changes as you make them.

search.js