Skip to content

Instantly share code, notes, and snippets.

@jexp
Last active October 22, 2021 01:08
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jexp/70296ce410ff431ddbef to your computer and use it in GitHub Desktop.
Save jexp/70296ce410ff431ddbef to your computer and use it in GitHub Desktop.
How to deploy a Neo4j Graph-Gist locally to not expose any data
# How to run Neo4j GraphGists locally?
git clone https://github.com/neo4j-contrib/rabbithole
cd rabbithole
mvn clean test-compile
mvn exec:java&
sleep 20
# GraphGists only run in your browser, so in your asciidoc-file use the attribute at the top :neo4j-version: local
# and it will connect to http://localhost:8080 for the neo4j-console
# If you don't trust us on this :) you can also run the graphgist locally
cd ..
git clone https://github.com/neo4j-contrib/graphgist
cd graphgist
sed -e 's/:neo4j-version:.*/:neo4j-version: local/g' gists/syntax.adoc > gists/my-graph-use-case.adoc
python -m SimpleHTTPServer&
open http://localhost:8000/?http%3A%2F%2Flocalhost%3A8000%2Fgists%2Fmy-graph-use-case.adoc
# you can put your graphgist files e.g. in graphgist/gists and access them with http://localhost:8000/gists/my-graph-use-case.adoc to paste into the URL-box
@ekkis
Copy link

ekkis commented Jun 12, 2015

jexp: I followed the instructions in your script and I'm now running graphgist locally, however, the last line:

open http://localhost:8000/?http%3A%2F%2Flocalhost%3A8000%2Fgists%2Fmy-graph-use-case.adoc

causes my browser to display an error: Not Found, and trying to open this link: http://localhost:8000/gists/my-graph-use-case.adoc causes my browser to download a file for which I don't have an associated application.

I must be close. what am I missing?

@ekkis
Copy link

ekkis commented Jun 16, 2015

this works:

open http://localhost:8000/index.html?http%3A%2F%2Flocalhost%3A8000%2Fgists%2Fmy-graph-use-case.adoc

@yayati1
Copy link

yayati1 commented May 23, 2016

Hi,
I tried to install the Graphgist on my system but it seems to need Neo4j Version 2.3.
I am currently using the Neo4j-3.0.1 (Milestone release 1). is there a work around for this?

@brianmarkowitz
Copy link

is that still the case that it needs a v2.3 Neo4j server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment