A demo is running on Heroku at https://node-neo4j-template.herokuapp.com/.
The app is a simple social network manager: it lets you add, remove, follow, and unfollow users. It's basic, and the UI is crappy, but hey, it's a template app. =)
So try it out, browse the code, and fork this project to get a head start on coding your own app. Enjoy!
git clone email@example.com:aseemk/node-neo4j-template.git cd node-neo4j-template npm install
You'll also need a local Neo4j 2.0 instance.
Install it via neo4j.org/download,
or if you're on a Mac,
brew install neo4j.
Start your local Neo4j instance (e.g.
neo4j start), then:
The app will now be accessible at http://localhost:3000/.
To run the tests:
This app is running on Heroku, using the free test version of the GrapheneDB add-on:
If you want to run your own instance similarly, it's just one click of a button away:
If you prefer to deploy this sample app manually, these are the steps:
heroku create [your-app-name] heroku addons:add graphenedb git push heroku master
There's already a Procfile here, and the code already checks for the
GRAPHENEDB_URL environment variables,
so your deploy should go off without a hitch!
If you're deploying in another way, the code also checks for a
environment variable to support pointing to any other Neo4j database.
The value of this variable should be set to the database root URL, and it can
contain HTTP Basic Auth info. E.g.