Skip to content

Basic ORM-like structure that uses Gremlin package to interact with Janus Graph DB. Also there is a docker-compose file that will help you to run JanusGraph, Cassandra and Elastic (all connected to each other)

Notifications You must be signed in to change notification settings

dev1pavlo/JanusGraph-Cassandra-Gremlin-ORM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

Infrastracture

This project was done during and after discovery of Graph databases. As an example I used free, open-source graph database Janus Graph. However Janus does not provide ability to store data without additional storage backends. I've chosen Cassandra as storage for Janus Graph. Also it is possible to connect External indexing backend, so I've chosen Elastic.

Run Database

All these thing can be run and configured using one simple command docker-compose up

Code

In src/Gremlin.ts you can see a class that implements ORM-pattern that sould help developer to write his code without thinking too much about Gremlin queries. To test this class I created 2 more classes User and Software. I managed to easily create, list all, search by id, add relation and get all relations of these 2 models. What's more I managed to save all the types by correct usage of Typescript.

About

Basic ORM-like structure that uses Gremlin package to interact with Janus Graph DB. Also there is a docker-compose file that will help you to run JanusGraph, Cassandra and Elastic (all connected to each other)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published