BitnineGlobal / AgensGraphViewer

Web-based user interface that provides visualization of graph data stored in an AgensGraph database.
1 stars 2 forks source link

AgensGraphViewer

Web-based user interface that provides visualization of graph data stored in an AgensGraph database.

This is a sub-project of AgensGraph

Recommended Node Version & install module

Install latest pm2 with :

npm i pm2

pm2 is an NPM module to run the project in production mode.

Installing AgensGraphViewer

Extract the release .zip or .tar.gz package into your desired directory.

From the commandline, navigate to the directory agv-package.

npm run setup

How to start using AgensGraphViewer

AgensGraphViewer is a graphical user interface for AgensGraph, so it needs an AgensGraph server running on the background.

Tipically, this is done with the command

ag_ctl start [-D /path/created/by/initdb]

For the other settings or usage instructions, please follow AgensGraph's documentation.

Running AgensGraphViewer

pm2 start ecosystem.config.js --env release

This will start AgensGraphViewer on http://localhost:3000 if port 3000 is free.

To stop the process use the commands:

pm2 stop ag-viewer-release 
pm2 delete ag-viewer-release

Connect AgensGraphViewer to AgensGraph Database

Standard Connection Settings

Using the Docker image:

docker pull markgomer/agensgraphviewer
docker run --name agviewer -p 3000:3000 -d markgomer/agensgraphviewer:1.1.0

Then open the URL 127.0.0.1:3000 on your browser.

Tip: if your AgensGraph server is running on your host machine, the URL to connect to it should be "host.docker.internal".

For developers:

Fork this repository, then clone your fork

## install node modules
npm run setup
## start the development environment
npm run start