MeteorJs : How to use meteor Js + Neo4J database ?

Install Neo4j :

brew install neo4j

Screen Shot 2015-08-23 at 11.39.37 AM

Start the Neo4j in your machine :

neo4j start

Screen Shot 2015-08-23 at 11.39.54 AM

Go to console and configure your user :

Open this link : http://localhost:7474/

You will see this :

Screen Shot 2015-08-23 at 11.41.05 AM

The default user and password is neo4j.

After put this informations you need change your password .

Screen Shot 2015-08-23 at 11.41.18 AM

Now you have the Neo4j database running in your machine.

Create the meteor application

$ meteor create [name]   

Example :

$ meteor create appneo4j

Add packages for neo4j

Inside your project you need :

$ meteor add ostrio:neo4jdriver

$ meteor add ostrio:neo4jreactivity

Configure your application to use Neo4j:

  • Create the directory inside your application with name lib;
  • Create the file neo4j.js inside this directory;

Your configurations :

/* Allow client query execution */
Meteor.neo4j.allowClientQuery = true;
/* Custom URL to Neo4j should be here */
Meteor.neo4j.connectionURL = 'http://neo4j:password@localhost:7474';
/* But deny all writing actions on client */

Example :

Screen Shot 2015-08-23 at 11.48.12 AM

Finish. Now start your application. You have now a meteor project running with neo4j database.

Screen Shot 2015-08-23 at 11.50.45 AM


    1. The ideia of this blog is give short solutions . I mean, you have the question and you have a directly answer which is sometimes impossible to find. We need looking for and read a lot of things to get the basics of something. This post is a POC with meteorJs and Neo4J. There you can find how to connect, how to do a select, update and delete. You have the start point for can go deeply after 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s