Skip to content

for viewing offshore leaks data and creating kml files

Notifications You must be signed in to change notification settings

sophondetector/jraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jraph and j2k

jraph is a basic directed graph data model.

j2k is a module which outputs jraph data as a kml file.

Dev

  • ndev contains shell commands and most config variables at the top.
  • ./ndev without args will list available ndev functions
  • the repo directory is shared with /root/jraph in both the local and prod instances
  • assume everything is going to be run from /root, in other words, write as if you were always going to run from ../
  • .env is for passwords, .env.EXAMPLE is for .git

Building and Running Jraph Service Locally

cp .env.EXAMPLE .env
# enter values into .env
./ndev build # build the service
./ndev loc.start.server # start the sql server 
./ndev loc.start # start the jraph service
./ndev loc # open a shell in the service container

Deployng

  • Deployed to Digital Ocean
  • See ./ndev doc.* commands
  • Currently deployed to jraph.nathanielhtaylor.com

Running as a Service

Jraph runs as a systemctl service named jraph-app.service. To initialize or reinitialize the service, do the following: 1.cp devops/jraph-app.service /usr/lib/systemd/system. 1.systemctl daemon-reload 1.systemctl start jraph-app.service 1.systemctl status jraph-app.service

Building Test DB

  1. Run $ python3 -m jtool.init.csv_*.py in order.
  2. Run $ python3 -m jtool.init.db_*.py in order.

TSQL Functions and Admin

About

for viewing offshore leaks data and creating kml files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published