commit | 8a7f0be2513e2aa4b2caf3d9833f4e2707f0001d | [log] [tgz] |
---|---|---|
author | Emmanuel Allison <emmanuelallison@outlook.com> | Fri Mar 22 01:12:08 2024 +0100 |
committer | GitHub <noreply@github.com> | Thu Mar 21 17:12:08 2024 -0700 |
tree | 78dd428f7ad9c477b52cb966f68e25334f16f874 | |
parent | f557486e99bec8df7d1581d8e27a0a57374b301d [diff] |
Fix Metadata Load Error in PG v13, v14 and v15 (#154) * add: meta_data.sql for PostgreSQL 13 * add: meta_data.sql for PG14 nd PG15
Apache-Age Viewer is a web based user interface that provides visualization of graph data stored in a postgreSQL database with AGE extension. It is graph visualisation tool, for Apache AGE.
This is a sub-project of the Apache AGE project.
Node version - ^14.16.0
Node Module - pm2
Install latest pm2 with : npm i pm2
pm2 is an NPM module to run the project in production mode, and hence is optional for getting started with setting up development environment for Age-Viewer
npm run setup
npm run start
This will start the age-viewer on http://localhost:3000 if port 3000 is free.
Build the front-end : npm run build-front
Build the back-end : npm run build-back
Start the project in production mode :
pm2 stop ag-viewer-develop pm2 delete ag-viewer-develop pm2 start ecosystem.config.js
To start using Age-Viewer we need to have a running postgreSQL database server with Apache Age Extension
Install docker in advance (https://www.docker.com/get-started), install the version compatible with your OS from the provided link.
Run Using Docker :
Get the docker image - docker pull apache/age
Create AGE docker container
docker run --name myPostgresDb -p 5455:5432 -e POSTGRES_USER=postgresUser \ -e POSTGRES_PASSWORD=postgresPW -e POSTGRES_DB=postgresDB -d apache/age
Docker variables | Description |
---|---|
--name | Assign a name to the container |
-p | Publish a container’s port(s) to the host |
-e | Set environment variables |
-d | Run container in background and print container ID |
To Get the running log of the docker container created - docker logs --follow myPostgresDb
To Get into postgreSQL Shell (There are two ways this can be done) -
docker exec -it myPostgresDb bash
psql -U postgresUser postgresDB
OR
psql -U postgresUser -d postgresDB -p 5455 -h localhost
and put in postgresPW
when prompted for password.After logging into postgreSQL shell follow the Post-Installation instruction to create a graph in the database.
Initial Connection Layout To Connect to postgreSQL server running from Docker Container
The following field is same as used to make the docker container specified above as flags.
Apache AGE Viewer is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.