Do you want to developer a website with neo4j as backend? If you want to get started fast on the frontend, without your server code being ready, this small blog post will show you how to do it.

First you will have to setup node and npm. After this you will need to setup browserify with one simple command

npm install -g browserify

Then you need to generate the client side driver code. This only works on Linux and MacOS at the moment.

npm install neo4j@2.0.0-RC2
browserify ./node_modules/neo4j -s neo4j > neo4j.js

This will be using new v2 branch of thingdom/node-neo4j and generate the driver for you as neo4j.js. Now simply include it in your html

<script src="neo4j.js"></script>

And you are ready to write your first query

var db = new neo4j.GraphDatabase('http://username:password@localhost:7474');

db.cypher({
  query: 'MATCH (n) RETURN n'
}, function(err, results) {
  console.log(results);
  if (err) throw err;
});

That's it, there is really not much else to it. Have fun developing!