Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 61 lines (36 sloc) 1.426 kb

Node driver for Neo4j

This driver let's you access the Neo4j graph database from Node.

Installation

git clone git@github.com:gasi/node-neo4j.git neo4j
cd neo4j
npm link

Development

git clone git@github.com:gasi/node-neo4j.git neo4j
cd neo4j
npm link

You'll also need a local Neo4j database instance for the tests:

curl http://dist.neo4j.org/neo4j-1.3.M05-unix.tar.gz --O neo4j-1.3.M05-unix.tar.gz
tar -zxvf neo4j-1.3.M05-unix.tar.gz
mv neo4j-1.3.M05 db

If you're new to Neo4j, read the Getting Started page. Start the server:

db/bin/neo4j start

Stop the server:

db/bin/neo4j stop

Usage

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

function print(err, res) {
    console.log(err || res);
}

db.createNode({hello: 'world'}, print);

License

This library is licensed under the Apache License, Version 2.0.

Reporting Issues

If you encounter any bugs or other issues, please file them in the issue tracker.

Something went wrong with that request. Please try again.