A playground to test neo4j in nodejs
Latest instructions for this are here.
There are instructions here for Ubuntu installation.
I use this dockerfile to get up and running fast.
You can just run the following command and you'll be up and running with an installation of neo4j on port 7474 of your localhost.
docker run -i -t -d -privileged -p 7474:7474 tpires/neo4j
Running the app.js
script will create test data in the DB:
node app.js
The script doesn't clean up after itself, but you can get it to delete all data in the DB before it creates the test data with the -d
argument:
node app.js -d
It will use the contents of the data.json
file to create the test nodes and relationships, but you can also tell the script to generate a random amount of test data using the -r
argument:
node app.js -r