-
Notifications
You must be signed in to change notification settings - Fork 93
Santander AML Example (Web Client part) #180
base: main
Are you sure you want to change the base?
Conversation
This Web application is part of the Santander AML (Anty Money Laundering) example. It is made in Vue.js. There is an nginx to serve the application and also as a reverse proxy to communicate with the TCF via rpc. It shows the workers availables (WorkerLookUp) and their details (WorkerRetrieve), allows to send work orders (WorkOrderSubmit) and shows the response of the AML use case (WorkOrderGetResult). Signed-off-by: pegartillo95 <[email protected]> Signed-off-by: gbarcomu <[email protected]> Signed-off-by: kubasiemion <[email protected]> Co-authored-by: pegartillo95 <[email protected]> Co-authored-by: gbarcomu <[email protected]> Co-authored-by: kubasiemion <[email protected]>
Signed-off-by: pegartillo95 <[email protected]> Signed-off-by: gbarcomu <[email protected]> Signed-off-by: kubasiemion <[email protected]> Co-authored-by: pegartillo95 <[email protected]> Co-authored-by: gbarcomu <[email protected]> Co-authored-by: kubasiemion <[email protected]>
…ives#148 Signed-off-by: pegartillo95 <[email protected]> Signed-off-by: gbarcomu <[email protected]> Signed-off-by: kubasiemion <[email protected]> Co-authored-by: pegartillo95 <[email protected]> Co-authored-by: gbarcomu <[email protected]> Co-authored-by: kubasiemion <[email protected]>
Signed-off-by: pegartillo95 <[email protected]> Signed-off-by: gbarcomu <[email protected]> Signed-off-by: kubasiemion <[email protected]> Co-authored-by: pegartillo95 <[email protected]> Co-authored-by: gbarcomu <[email protected]> Co-authored-by: kubasiemion <[email protected]>
Signed-off-by: pegartillo95 <[email protected]> Signed-off-by: gbarcomu <[email protected]> Signed-off-by: kubasiemion <[email protected]> Co-authored-by: pegartillo95 <[email protected]> Co-authored-by: gbarcomu <[email protected]> Co-authored-by: kubasiemion <[email protected]>
Signed-off-by: pegartillo95 <[email protected]> Signed-off-by: gbarcomu <[email protected]> Signed-off-by: kubasiemion <[email protected]> Co-authored-by: pegartillo95 <[email protected]> Co-authored-by: gbarcomu <[email protected]> Co-authored-by: kubasiemion <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried running the web client. Found a few points worth improvement. We also need to double check if the Santander logo can be used herein, this being a Hyperledger project. https://github.com/hyperledger/avalon/blob/master/LICENSE#L138
docker-compose up | ||
``` | ||
|
||
10. Open a browser and check if everything is deployed correctly. There must be some workers in "Available Workers" slot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of steps to guide through the UI would be much appreciated. And a sample request attached along.
</b-table> | ||
</div> | ||
|
||
<b-modal size="lg" title="Worker Details" ref="modal" @show="nullWorker" ok-only> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
8. Go to "deployment" folder. | ||
|
||
9. Execute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can npm build/run be moved to docker? Need to build outside and then deploy for any new changes.
|
||
export default { | ||
|
||
SERVER_URL : 'http://{YOUR DOMAIN}.com/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refrain from using trailing separators '/'. Sanitize in implementation and use. As I tried to run, I casually removed it as an IP had to be supplied. I spent some build cycles to get over it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should I modify it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SERVER_URL : '{YOUR SERVER URL}', // eg - http://localohost, http://myaml.com
This would suffice. While using, you could append the trailing separator '/'.
} | ||
|
||
/* This function iterates all transaction lists looking for cycles | ||
* and returns a string containing differents sets of suspects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/differents/different/
std::string AmlResultLogic::getNameFromId(std::string id) { | ||
std::string country = id.substr(0,2); | ||
int i; | ||
for(i = 0; i < numberTotalCountries; i++){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For here and everywhere else add a space after for
and if
.
That is change for(
to for (
and if(
to if (
This Web application is part of the Santander AML (Anty Money Laundering) example.
It is made in Vue.js. There is an nginx to serve the application and also as a reverse proxy to communicate with the TCF via rpc.
It shows the workers availables (WorkerLookUp) and their details (WorkerRetrieve), allows to send work orders (WorkOrderSubmit) and shows the response of the AML use case (WorkOrderGetResult).
The other part of the example is already merged in PR #164
Signed-off-by: pegartillo95 [email protected]
Signed-off-by: gbarcomu [email protected]
Signed-off-by: kubasiemion [email protected]