Talking to Neo4J through Console - noduslabs/infranodus GitHub Wiki

Neo4J by default can only be accessed via the localhost. In order to enable remote access, the

 #org.neo4j.server.webserver.address=0.0.0.0

In conf/neo4j-server.properties should be uncommented.

In case of WebFaction hosting:

Their firewall filters connection attempts to ports other than http, https, ssh and database ones.

You can update your website record at https://my.webfaction.com/websites/WEBSITE_ID/edit-website and add your 'neo4j' there, to a specific URL path, and whenever you access that URL, our frontend nginx webserver will proxy requests to it.

If you want to directly access your app, you can enable the open port option at https://my.webfaction.com/applications/APP_ID/edit-application. This will enable access to port PORT_NUMBER on the server's secondary IP address, IP.IP.IP.IP.

Launching Neo4J Shell

For easy access to Neo4J commands, add its bin directory to $PATH in .bashrc

From SSH Neo4J shell (for use with Cypher query language) can be launched like this:

 neo4j-shell

To use REST API, use

 curl http://locahost:PORT_NUMBER

(launching this will give cues on how to use the rest)