neodb
Creates a temporary neo4j db listening on :port
Last updated 2 years ago by catalint .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install neodb 
SYNC missed versions from official npm registry.

npm node

What does this do?

Greenkeeper badge Creates a temporary neo4j db listening on http://localhost:port

Why do you I need it?

It's here if you want to test nodejs neo4j integrations

Neo4j setup

This module includes binaries to start neo4j, you’ll only need Java installed on your computer.

Usually you already have Java installed, if not we recommend that you install OpenJDK 8 (preferred) or 7 or Oracle Java 8 (preferred) or 7

Supported neo4j versions

  • 2.3.3
  • 3.1.1 with new bolt connection

Supported OS

osx, linux

Install

npm install --save-dev neodb

Usage

"use strict"

let NeoTestDB = require('neodb')

let testDB = new NeoTestDB(6363, '2.3.3') // port, version, boltPort

testDB.start()
    .then(function (data) {
        console.log('Started Neo4j Test DB', data)
        setTimeout(function () {
            testDB.stop()
                .then(function (data) {
                    console.log('Stopped Neo4j Test DB', data)
                })
                .catch(function (e) {
                    console.error(e)
                })
        }, 2000)
    })
    .catch(function (e) {
        console.error(e)
    })

It always starts with an empty database.

when calling .start() you will get an Promise object that when resolved will have the following keys

  • version, running Neo4j version ex. 2.3.3
  • port, http port ex. 6363
  • url, http url ex. http://localhost:6363
  • boltPort, bolt port ex. 6364
  • boltURL, bolt url ex. bolt://127.0.0.1:6364

Learn more

Current Tags

  • 3.0.0                                ...           latest (2 years ago)

19 Versions

  • 3.0.0                                ...           2 years ago
  • 2.0.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.2.4                                ...           4 years ago
  • 1.2.3                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.10                                ...           5 years ago
  • 1.1.9                                ...           5 years ago
  • 1.1.8                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.1.6                                ...           5 years ago
  • 1.1.5                                ...           5 years ago
  • 1.1.4                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |