var neo4j = require('neo4j');
var db = new neo4j.GraphDatabase(
//process.env['NEO4J_URL'] ||
//process.env['GRAPHENEDB_URL'] ||
'http://localhost:7474'
);
var db = new neo4j.GraphDatabase(
//process.env['NEO4J_URL'] ||
//process.env['GRAPHENEDB_URL'] ||
'username:pw@localhost:7474'
);
This is a template app showing the use of Neo4j from Node.js. It uses the node-neo4j library, available on npm as neo4j
.
This app is a simple social network manager: it lets you add and remove users and "follows" relationships between them.
Get started: View all users
***
I get the error when I click on "View all users" to the URL http://localhost:3000/users
Thanks Richard, that's helpful.node-neo4j-template currently still points to node-neo4j v1:So is it possible that you have node-neo4j v2 installed?What output do you get when you run `npm ls`?