-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93823ea
commit 01a6689
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
# Local Testing | ||
|
||
## From Neo4j Desktop | ||
Start a Neo4j instance. Choose a password `<password>`.Allow it to create the default database namespace `neo4j`. | ||
|
||
``` | ||
export LIBRA_GRAPH_DB_URI='neo4j://localhost' | ||
export LIBRA_GRAPH_DB_USER='neo4j' | ||
export LIBRA_GRAPH_DB_PASS=<password> | ||
``` | ||
|
||
Import the sample exchange orders | ||
|
||
``` | ||
cargo r enrich-exchange --exchange-json ./tests/fixtures/savedOlOrders2.json | ||
``` | ||
Try to run analytics | ||
|
||
``` | ||
# try without updating data | ||
cargo r analytics exchange-rms | ||
# save the analysis to db | ||
cargo r analytics exchange-rms --persist | ||
``` | ||
|
||
## View graph | ||
|
||
Go to Neo4j Explorer and try: | ||
``` | ||
MATCH ()-[r:Swap]->() | ||
RETURN COUNT(DISTINCT(r)) | ||
``` | ||
|
||
Shoudl return `25450` |