Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apache/age-viewer
Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL.
https://github.com/apache/age-viewer
age-database analytics graph-database graphdb multi-model-dbms postgresql postgresql-extension
Last synced: 3 days ago
JSON representation
Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL.
- Host: GitHub
- URL: https://github.com/apache/age-viewer
- Owner: apache
- License: apache-2.0
- Created: 2021-08-19T15:49:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T07:35:53.000Z (8 months ago)
- Last Synced: 2024-12-15T00:06:40.570Z (10 days ago)
- Topics: age-database, analytics, graph-database, graphdb, multi-model-dbms, postgresql, postgresql-extension
- Language: JavaScript
- Homepage: https://age.apache.org
- Size: 8.21 MB
- Stars: 256
- Watchers: 26
- Forks: 239
- Open Issues: 79
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
# What is Apache-Age Viewer
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](https://age.apache.org/#).
# Recommend Node Version & install module
- Node version - ^14.16.0
- Node Module - pm2
Install latest **pm2** with :
``` npm i pm2 ```> [pm2](https://www.npmjs.com/package/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
# Running Age-Viewer
- Install the required node modules using :
```npm run setup```
- Run Age-Viewer using :
```npm run start```>This will start the age-viewer on http://localhost:3000 if port 3000 is free.
# How to build using command
- 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-developpm2 delete ag-viewer-develop
pm2 start ecosystem.config.js
```
# How to start using Age-Viewer
- To start using Age-Viewer we need to have a running postgreSQL database server with Apache Age Extension
### Setting up the PostgreSQL server with AGE extension
- Easiest way for Windows, Mac-OS and Linux Environment using **Docker**
> 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
```bash
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) -
- First get into docker shell using - `` docker exec -it myPostgresDb bash``
Then get into postgreSQL shell using - `` psql -U postgresUser postgresDB``
OR
- Alternatively postgres shell can also be assessed directly (without getting into the docker shell) -
`` 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](https://github.com/apache/age#post-installation) instruction to create a graph in the database.
### Connect Apache Age-Viewer to PostgreSQL Database
**Initial Connection Layout**
![enter image description here](https://user-images.githubusercontent.com/69689387/211624181-9644f489-1a45-4eed-ac8e-7aaf156b97ea.png)
To Connect to postgreSQL server running from Docker Container
- Connect URL - localhost
- Connect Port - 5455
- Database Name - postgresDB
- User Name - postgresUser
- Password - postgresPW
> The following field is same as used to make the docker container specified above as flags.# License
Apache AGE Viewer is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.