Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Santander AML Example (Web Client part) #180

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gbarcomu
Copy link
Contributor

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]

gbarcomu and others added 6 commits November 6, 2019 15:22
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]>
Copy link
Contributor

@rranjan3 rranjan3 left a 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.
Copy link
Contributor

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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component seems to break on chrome 78.0.39.
image


8. Go to "deployment" folder.

9. Execute
Copy link
Contributor

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/',
Copy link
Contributor

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.

Copy link
Contributor Author

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?

Copy link
Contributor

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
Copy link
Contributor

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++){
Copy link
Contributor

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 (

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants