Coder Social home page Coder Social logo

rahulrawat11 / neo4j-js-ng2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adadgio/neo4j-js-ng2

0.0 1.0 0.0 8.46 MB

A Neo4j graph editor written in javascript.

Home Page: https://github.com/adadgio/neo4j-js-ng2

HTML 38.62% TypeScript 46.43% CSS 14.58% JavaScript 0.38%

neo4j-js-ng2's Introduction

Neo4jJs (v2)

A Neo4j graph database editor. Explore your neo4j graph, create and edit nodes and relationships

Features and bugs roadmap

Table of Contents

Improvements over v1

Bug improvements

  • Settings can now be updated on the fly via the UI.
  • Better separated components thanks to Angular2.
  • Much much cleaner code for developers to build upon.
  • Better events handling in graph and database interaction.
  • Annoying bugs and annoying features fixed from v1.

New features

  • Editable relationships types and properties.
  • Links/relationships can be created in the create mode.
  • Added a plain cypher query mode in the main search bar (@todo will be deprecated)
  • Settings are served from neo4j.settings.json and can be changed on the fly (stored in local storage).

Demo gif 01

Demo gif 02

Demo gif 03

Getting started

  • Clone or download the project
  • Rename neo4j.settings.json.dist into neo4j.settings.json.
  • Run ng serve or npm start.

Pre-requisites

  • Neo4j must be installed Neo4j quick install instructions here
  • Neo4j Basic Authentication must have been configured (by default)
  • Angular2 CLI is required for running with ng serve or building into the dist folder.

Quick configuration

  • With Angular2: serve project with ng serveand navigate to http://localhost:4200/
  • Without Angular2: create a virtual host on your machine and point it to the dist folder
  • Copy src/assets/neo4j.settings.json.dist to neo4j.settings.json and change with your settings
  • Change client authBasic value to Basic: <authString>. Auth string is a base64 encode of neo4j username:password

Simple queries

Simple queries let you pop nodes on the graph very quickly without writing cypher queries. Simple queries are types in the main exploration search bar.

Why use this instead of cypher queries? Because it's a little bit more complicated to allow any alias such as MATCH (myAlias) RETURN myAlias, but that's coming in the future. Besides, for exploration, simple queries are faster user-end wise.

Examples

// simple query pseudo code format
:Label1:Label2 property="Value" limit,skip

// numbers, limit and multiple properties (AND...)
:Person name="Ben" age=12 10

// limit and skip
:Person name="Ben" age=34 50,0

// queery and show 1st level relationships (+1 flag)
:Company name="Gougle" +1

Running in production

Clone the repository and point an Apache2 or Nginx virtual host to the ./dist folder (see ./support files for examples).

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Known issues

  • Chrome: Compatibility OK (no known issues)
  • In Firefox local storage is not shared between tabs so you might experience settings or debug logs inconsistent views.

Licence

You do absolutely what you want with that project (MIT Licence).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.