-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Ubin External Service
Junwei edited this page Aug 20, 2019
·
1 revision
Ubin external service should be set up in the Central Bank
virtual machine. This is a mock service of the current RTGS system, MEPS+.
1. Clone the repository locally
$ git clone https://github.com/project-ubin/ubin-ext-service.git
2. Go to newly created folder
$ cd ubin-ext-service
3. Build project using gradle
$ ./gradlew build
4. Build artifact can be found at
build/libs/ubin-ext-service-0.0.1-SNAPSHOT.jar
1. Update the application.properties
file
$ cd ~/ubin-ext-service
$ vim application.properties
With Quorum configurations:
PledgeURI=http://192.168.56.4:9001/api/fund/pledge
RedeemURI=http://192.168.56.4:9001/api/fund/redeem
Dlt=Quorum
Note:
-
192.168.56.4
is the Central Bank domain name in the current network.
2. Copy built JAR artifact and properties files to the Central Bank VM
ubin-ext-service/build/libs/ubin-ext-service-0.0.1-SNAPSHOT.jar
ubin-ext-service/application.properties
Note: Ensure both files are in the same directory
3. From Central Bank VM, start the mock service application
$ java -jar -Dspring.config.location=application.properties -Dserver.port=9001 ubin-ext-service-0.0.1-SNAPSHOT.jar