
Installing the Unmanaged Extension

Once you have that, we do still need to do a few manual interventions to activate and enable the extension.
Creating the directory and copying the guide's html file
The extension assumes that you add a new directory in the "data" directory of your Neo4j installation: "guides". Once you have created that, you can copy the HTML file that I had created in the previous post, into this directory - this is where we will serve all future Guides from.Configuring the Neo4j server
Then we need to make a few more easy configs to the neo4j-server.properties file in the ./conf directory of your Neo4j installation.1. Disable authentication for the Neo4j server
Michael has not added a way to authenticate to the server yet, and therefore you just turn the dbms.security.auth_enabled switch from true to false.
2. Donfigure the extension .jar file
Two things we need to do:- In order to load the extension from a specific URL (in this case: http://localhost:7474/guides) we add property to the neo4j-server.properties file.
- We let the extension know where the guides will be located (the data/guides directory)
3. Edit the whitelist for the browser to load Guides from
Again, we edit a particular section of the neo4j-server.properties file, and allow the browser to load data from the localhost server. Two ways to do that:- simply allow ANY server with a "*"
- or specifically allow the localhost on the specific port that your server is running
And that should do it. All we need to do now is bounce the Neo4j server, and we should have our guide in the browser: just try
:play http://localhost:7474/guides/beer_graph.html
in the browser, and tah-daaaaaah:
Yey! That was easy!
Hope you like this as much as I did. Big kudos to Michael, again - and I look forward to seeing your Guides somewhere in our community.
Cheers
Rik
No comments:
Post a Comment