-
Notifications
You must be signed in to change notification settings - Fork 26
Kyrix Local Debugging
Wenbo Tao edited this page Aug 25, 2020
·
2 revisions
Note: this is the setup for local debugging for the nba example, but it should generalize to any kyrix visualization ideally
-
initialize/start the db using normal postgres method --> https://www.postgresql.org/docs/11/install-short.html
-
In local pg instance shell, run:
CREATE USER kyrix WITH SUPERUSER PASSWORD 'kyrix_password';
CREATE DATABASE kyrix OWNER kyrix;
CREATE DATABASE nba OWNER kyrix;
-
change reload script & run
- e.g. "./compiler/examples/nba/reload-nba.sh"
- add PGCONN set to localhost, etc
- run manually to build source data tables
-
run backend using maven
-
compile:
mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn compile | tee mvn-compile.out >/dev/null 2>&1
-
start backend:
mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn exec:java -Dexec.mainClass="main.Main"
-
-
send project definition via node if starting app for first time, run
node nba.js
otherwise, to avoid recompute, run:node nba.js -s
- "-s" option makes backend server not recompute data from source or rebuild indexes